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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Modified the rtc_event_log. Responded the comments. Created 3 years, 7 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // A Call instance can contain several send and/or receive streams. All streams 56 // A Call instance can contain several send and/or receive streams. All streams
57 // are assumed to have the same remote endpoint and will share bitrate estimates 57 // are assumed to have the same remote endpoint and will share bitrate estimates
58 // etc. 58 // etc.
59 class Call { 59 class Call {
60 public: 60 public:
61 struct Config { 61 struct Config {
62 explicit Config(RtcEventLog* event_log) : event_log(event_log) { 62 explicit Config(RtcEventLog* event_log) : event_log(event_log) {
63 RTC_DCHECK(event_log); 63 RTC_DCHECK(event_log);
64 } 64 }
65 65
66 static const int kDefaultStartBitrateBps; 66 static const int kDefaultStartBitrateBps = 300000;
67 67
68 // Bitrate config used until valid bitrate estimates are calculated. Also 68 // Bitrate config used until valid bitrate estimates are calculated. Also
69 // used to cap total bitrate used. 69 // used to cap total bitrate used.
70 struct BitrateConfig { 70 struct BitrateConfig {
71 int min_bitrate_bps = 0; 71 int min_bitrate_bps = 0;
72 int start_bitrate_bps = kDefaultStartBitrateBps; 72 int start_bitrate_bps = kDefaultStartBitrateBps;
73 int max_bitrate_bps = -1; 73 int max_bitrate_bps = -1;
74 } bitrate_config; 74 } bitrate_config;
75 75
76 // AudioState which is possibly shared between multiple calls. 76 // AudioState which is possibly shared between multiple calls.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 const rtc::NetworkRoute& network_route) = 0; 157 const rtc::NetworkRoute& network_route) = 0;
158 158
159 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; 159 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
160 160
161 virtual ~Call() {} 161 virtual ~Call() {}
162 }; 162 };
163 163
164 } // namespace webrtc 164 } // namespace webrtc
165 165
166 #endif // WEBRTC_CALL_CALL_H_ 166 #endif // WEBRTC_CALL_CALL_H_
OLDNEW
« webrtc/BUILD.gn ('K') | « webrtc/BUILD.gn ('k') | webrtc/call/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698