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

Side by Side Diff: webrtc/voice_engine/channel_proxy.cc

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Merge remote-tracking branch 'origin/master' into design-RtpTransportReceiveController 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/voice_engine/channel_proxy.h ('k') | no next file » | 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 66 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
67 channel()->SetNACKStatus(enable, max_packets); 67 channel()->SetNACKStatus(enable, max_packets);
68 } 68 }
69 69
70 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { 70 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) {
71 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 71 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
72 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); 72 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id);
73 RTC_DCHECK_EQ(0, error); 73 RTC_DCHECK_EQ(0, error);
74 } 74 }
75 75
76 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) {
77 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
78 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id);
79 RTC_DCHECK_EQ(0, error);
80 }
81
82 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { 76 void ChannelProxy::EnableSendTransportSequenceNumber(int id) {
83 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 77 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
84 channel()->EnableSendTransportSequenceNumber(id); 78 channel()->EnableSendTransportSequenceNumber(id);
85 } 79 }
86 80
87 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) {
88 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
89 channel()->EnableReceiveTransportSequenceNumber(id);
90 }
91
92 void ChannelProxy::RegisterSenderCongestionControlObjects( 81 void ChannelProxy::RegisterSenderCongestionControlObjects(
93 RtpTransportControllerSendInterface* transport, 82 RtpTransportControllerSendInterface* transport,
94 RtcpBandwidthObserver* bandwidth_observer) { 83 RtcpBandwidthObserver* bandwidth_observer) {
95 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 84 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
96 channel()->RegisterSenderCongestionControlObjects(transport, 85 channel()->RegisterSenderCongestionControlObjects(transport,
97 bandwidth_observer); 86 bandwidth_observer);
98 } 87 }
99 88
100 void ChannelProxy::RegisterReceiverCongestionControlObjects( 89 void ChannelProxy::RegisterReceiverCongestionControlObjects(
101 PacketRouter* packet_router) { 90 PacketRouter* packet_router) {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return channel()->GetSources(); 328 return channel()->GetSources();
340 } 329 }
341 330
342 Channel* ChannelProxy::channel() const { 331 Channel* ChannelProxy::channel() const {
343 RTC_DCHECK(channel_owner_.channel()); 332 RTC_DCHECK(channel_owner_.channel());
344 return channel_owner_.channel(); 333 return channel_owner_.channel();
345 } 334 }
346 335
347 } // namespace voe 336 } // namespace voe
348 } // namespace webrtc 337 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698