Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: webrtc/common_types.cc

Issue 2997883002: Video/Screenshare loopback tool.
Patch Set: Rebase Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/common_types.h" 11 #include "webrtc/common_types.h"
12 12
13 #include <string.h> 13 #include <string.h>
14 #include <algorithm> 14 #include <algorithm>
15 #include <limits> 15 #include <limits>
16 #include <type_traits> 16 #include <type_traits>
17 17
18 #include "webrtc/rtc_base/checks.h" 18 #include "webrtc/rtc_base/checks.h"
19 #include "webrtc/rtc_base/stringutils.h" 19 #include "webrtc/rtc_base/stringutils.h"
20 20
21 int64_t start_time = -1;
22
21 namespace webrtc { 23 namespace webrtc {
22 24
23 StreamDataCounters::StreamDataCounters() : first_packet_time_ms(-1) {} 25 StreamDataCounters::StreamDataCounters() : first_packet_time_ms(-1) {}
24 26
25 constexpr size_t StreamId::kMaxSize; 27 constexpr size_t StreamId::kMaxSize;
26 28
27 bool StreamId::IsLegalName(rtc::ArrayView<const char> name) { 29 bool StreamId::IsLegalName(rtc::ArrayView<const char> name) {
28 return (name.size() <= kMaxSize && name.size() > 0 && 30 return (name.size() <= kMaxSize && name.size() > 0 &&
29 std::all_of(name.data(), name.data() + name.size(), isalnum)); 31 std::all_of(name.data(), name.data() + name.size(), isalnum));
30 } 32 }
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 oss << " ]"; 261 oss << " ]";
260 return oss.str(); 262 return oss.str();
261 } 263 }
262 264
263 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const { 265 std::ostream& BitrateAllocation::operator<<(std::ostream& os) const {
264 os << ToString(); 266 os << ToString();
265 return os; 267 return os;
266 } 268 }
267 269
268 } // namespace webrtc 270 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698