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

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

Issue 2854123003: Build WebRTC with data channel only. (Closed)
Patch Set: Try to make work internallly. 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
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 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h" 53 #include "webrtc/system_wrappers/include/rw_lock_wrapper.h"
54 #include "webrtc/system_wrappers/include/trace.h" 54 #include "webrtc/system_wrappers/include/trace.h"
55 #include "webrtc/video/call_stats.h" 55 #include "webrtc/video/call_stats.h"
56 #include "webrtc/video/send_delay_stats.h" 56 #include "webrtc/video/send_delay_stats.h"
57 #include "webrtc/video/stats_counter.h" 57 #include "webrtc/video/stats_counter.h"
58 #include "webrtc/video/video_receive_stream.h" 58 #include "webrtc/video/video_receive_stream.h"
59 #include "webrtc/video/video_send_stream.h" 59 #include "webrtc/video/video_send_stream.h"
60 60
61 namespace webrtc { 61 namespace webrtc {
62 62
63 const int Call::Config::kDefaultStartBitrateBps = 300000;
64
65 namespace { 63 namespace {
66 64
67 // TODO(nisse): This really begs for a shared context struct. 65 // TODO(nisse): This really begs for a shared context struct.
68 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions, 66 bool UseSendSideBwe(const std::vector<RtpExtension>& extensions,
69 bool transport_cc) { 67 bool transport_cc) {
70 if (!transport_cc) 68 if (!transport_cc)
71 return false; 69 return false;
72 for (const auto& extension : extensions) { 70 for (const auto& extension : extensions) {
73 if (extension.uri == RtpExtension::kTransportSequenceNumberUri) 71 if (extension.uri == RtpExtension::kTransportSequenceNumberUri)
74 return true; 72 return true;
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { 1389 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) {
1392 receive_side_cc_.OnReceivedPacket( 1390 receive_side_cc_.OnReceivedPacket(
1393 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), 1391 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(),
1394 header); 1392 header);
1395 } 1393 }
1396 } 1394 }
1397 1395
1398 } // namespace internal 1396 } // namespace internal
1399 1397
1400 } // namespace webrtc 1398 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/call/call.h ('k') | webrtc/call/callfactory.h » ('j') | webrtc/pc/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698