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

Side by Side Diff: webrtc/call/call.h

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Rebase. Created 3 years, 6 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/BUILD.gn ('k') | webrtc/call/call.cc » ('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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_CALL_CALL_H_ 10 #ifndef WEBRTC_CALL_CALL_H_
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // A Call instance can contain several send and/or receive streams. All streams 73 // A Call instance can contain several send and/or receive streams. All streams
74 // are assumed to have the same remote endpoint and will share bitrate estimates 74 // are assumed to have the same remote endpoint and will share bitrate estimates
75 // etc. 75 // etc.
76 class Call { 76 class Call {
77 public: 77 public:
78 struct Config { 78 struct Config {
79 explicit Config(RtcEventLog* event_log) : event_log(event_log) { 79 explicit Config(RtcEventLog* event_log) : event_log(event_log) {
80 RTC_DCHECK(event_log); 80 RTC_DCHECK(event_log);
81 } 81 }
82 82
83 static const int kDefaultStartBitrateBps; 83 static constexpr int kDefaultStartBitrateBps = 300000;
84 84
85 // Bitrate config used until valid bitrate estimates are calculated. Also 85 // Bitrate config used until valid bitrate estimates are calculated. Also
86 // used to cap total bitrate used. This comes from the remote connection. 86 // used to cap total bitrate used. This comes from the remote connection.
87 struct BitrateConfig { 87 struct BitrateConfig {
88 int min_bitrate_bps = 0; 88 int min_bitrate_bps = 0;
89 int start_bitrate_bps = kDefaultStartBitrateBps; 89 int start_bitrate_bps = kDefaultStartBitrateBps;
90 int max_bitrate_bps = -1; 90 int max_bitrate_bps = -1;
91 } bitrate_config; 91 } bitrate_config;
92 92
93 // The local client's bitrate preferences. The actual configuration used 93 // The local client's bitrate preferences. The actual configuration used
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const rtc::NetworkRoute& network_route) = 0; 198 const rtc::NetworkRoute& network_route) = 0;
199 199
200 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; 200 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
201 201
202 virtual ~Call() {} 202 virtual ~Call() {}
203 }; 203 };
204 204
205 } // namespace webrtc 205 } // namespace webrtc
206 206
207 #endif // WEBRTC_CALL_CALL_H_ 207 #endif // WEBRTC_CALL_CALL_H_
OLDNEW
« no previous file with comments | « webrtc/call/BUILD.gn ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698