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

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

Issue 2709723003: Initial implementation of RtpTransportControllerReceive and related interfaces.
Patch Set: Rebased. Created 3 years, 8 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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 59 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
60 channel()->SetNACKStatus(enable, max_packets); 60 channel()->SetNACKStatus(enable, max_packets);
61 } 61 }
62 62
63 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { 63 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) {
64 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 64 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
65 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); 65 int error = channel()->SetSendAudioLevelIndicationStatus(enable, id);
66 RTC_DCHECK_EQ(0, error); 66 RTC_DCHECK_EQ(0, error);
67 } 67 }
68 68
69 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) {
70 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
71 int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id);
72 RTC_DCHECK_EQ(0, error);
73 }
74
75 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { 69 void ChannelProxy::EnableSendTransportSequenceNumber(int id) {
76 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 70 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
77 channel()->EnableSendTransportSequenceNumber(id); 71 channel()->EnableSendTransportSequenceNumber(id);
78 } 72 }
79 73
80 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) {
81 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
82 channel()->EnableReceiveTransportSequenceNumber(id);
83 }
84
85 void ChannelProxy::RegisterSenderCongestionControlObjects( 74 void ChannelProxy::RegisterSenderCongestionControlObjects(
86 RtpTransportControllerSendInterface* transport, 75 RtpTransportControllerSendInterface* transport,
87 RtcpBandwidthObserver* bandwidth_observer) { 76 RtcpBandwidthObserver* bandwidth_observer) {
88 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 77 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
89 channel()->RegisterSenderCongestionControlObjects(transport, 78 channel()->RegisterSenderCongestionControlObjects(transport,
90 bandwidth_observer); 79 bandwidth_observer);
91 } 80 }
92 81
93 void ChannelProxy::RegisterReceiverCongestionControlObjects( 82 void ChannelProxy::RegisterReceiverCongestionControlObjects(
94 PacketRouter* packet_router) { 83 PacketRouter* packet_router) {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 return channel()->GetSources(); 396 return channel()->GetSources();
408 } 397 }
409 398
410 Channel* ChannelProxy::channel() const { 399 Channel* ChannelProxy::channel() const {
411 RTC_DCHECK(channel_owner_.channel()); 400 RTC_DCHECK(channel_owner_.channel());
412 return channel_owner_.channel(); 401 return channel_owner_.channel();
413 } 402 }
414 403
415 } // namespace voe 404 } // namespace voe
416 } // namespace webrtc 405 } // namespace webrtc
OLDNEW
« webrtc/call/rtp_transport_controller_receive.cc ('K') | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698