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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Fix the issues. Make it ready for another round of review. Add a test. 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // A Call instance can contain several send and/or receive streams. All streams 58 // A Call instance can contain several send and/or receive streams. All streams
59 // are assumed to have the same remote endpoint and will share bitrate estimates 59 // are assumed to have the same remote endpoint and will share bitrate estimates
60 // etc. 60 // etc.
61 class Call { 61 class Call {
62 public: 62 public:
63 struct Config { 63 struct Config {
64 explicit Config(RtcEventLog* event_log) : event_log(event_log) { 64 explicit Config(RtcEventLog* event_log) : event_log(event_log) {
65 RTC_DCHECK(event_log); 65 RTC_DCHECK(event_log);
66 } 66 }
67 67
68 static const int kDefaultStartBitrateBps; 68 static const int kDefaultStartBitrateBps = 300000;
69 69
70 // Bitrate config used until valid bitrate estimates are calculated. Also 70 // Bitrate config used until valid bitrate estimates are calculated. Also
71 // used to cap total bitrate used. 71 // used to cap total bitrate used.
72 struct BitrateConfig { 72 struct BitrateConfig {
73 int min_bitrate_bps = 0; 73 int min_bitrate_bps = 0;
74 int start_bitrate_bps = kDefaultStartBitrateBps; 74 int start_bitrate_bps = kDefaultStartBitrateBps;
75 int max_bitrate_bps = -1; 75 int max_bitrate_bps = -1;
76 } bitrate_config; 76 } bitrate_config;
77 77
78 // AudioState which is possibly shared between multiple calls. 78 // AudioState which is possibly shared between multiple calls.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const rtc::NetworkRoute& network_route) = 0; 164 const rtc::NetworkRoute& network_route) = 0;
165 165
166 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0; 166 virtual void OnSentPacket(const rtc::SentPacket& sent_packet) = 0;
167 167
168 virtual ~Call() {} 168 virtual ~Call() {}
169 }; 169 };
170 170
171 } // namespace webrtc 171 } // namespace webrtc
172 172
173 #endif // WEBRTC_CALL_CALL_H_ 173 #endif // WEBRTC_CALL_CALL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698