OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 rtp_packet_sender, transport_feedback_observer, packet_router, | 85 rtp_packet_sender, transport_feedback_observer, packet_router, |
86 bandwidth_observer); | 86 bandwidth_observer); |
87 } | 87 } |
88 | 88 |
89 void ChannelProxy::RegisterReceiverCongestionControlObjects( | 89 void ChannelProxy::RegisterReceiverCongestionControlObjects( |
90 PacketRouter* packet_router) { | 90 PacketRouter* packet_router) { |
91 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 91 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
92 channel()->RegisterReceiverCongestionControlObjects(packet_router); | 92 channel()->RegisterReceiverCongestionControlObjects(packet_router); |
93 } | 93 } |
94 | 94 |
95 void ChannelProxy::ResetCongestionControlObjects() { | 95 void ChannelProxy::ResetSenderCongestionControlObjects() { |
96 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 96 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
97 channel()->ResetCongestionControlObjects(); | 97 channel()->ResetSenderCongestionControlObjects(); |
| 98 } |
| 99 |
| 100 void ChannelProxy::ResetReceiverCongestionControlObjects() { |
| 101 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 102 channel()->ResetReceiverCongestionControlObjects(); |
98 } | 103 } |
99 | 104 |
100 CallStatistics ChannelProxy::GetRTCPStatistics() const { | 105 CallStatistics ChannelProxy::GetRTCPStatistics() const { |
101 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 106 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
102 CallStatistics stats = {0}; | 107 CallStatistics stats = {0}; |
103 int error = channel()->GetRTPStatistics(stats); | 108 int error = channel()->GetRTPStatistics(stats); |
104 RTC_DCHECK_EQ(0, error); | 109 RTC_DCHECK_EQ(0, error); |
105 return stats; | 110 return stats; |
106 } | 111 } |
107 | 112 |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 channel()->OnRecoverableUplinkPacketLossRate(recoverable_packet_loss_rate); | 384 channel()->OnRecoverableUplinkPacketLossRate(recoverable_packet_loss_rate); |
380 } | 385 } |
381 | 386 |
382 Channel* ChannelProxy::channel() const { | 387 Channel* ChannelProxy::channel() const { |
383 RTC_DCHECK(channel_owner_.channel()); | 388 RTC_DCHECK(channel_owner_.channel()); |
384 return channel_owner_.channel(); | 389 return channel_owner_.channel(); |
385 } | 390 } |
386 | 391 |
387 } // namespace voe | 392 } // namespace voe |
388 } // namespace webrtc | 393 } // namespace webrtc |
OLD | NEW |