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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { | 72 void ChannelProxy::EnableSendTransportSequenceNumber(int id) { |
73 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 73 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
74 channel()->EnableSendTransportSequenceNumber(id); | 74 channel()->EnableSendTransportSequenceNumber(id); |
75 } | 75 } |
76 | 76 |
77 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) { | 77 void ChannelProxy::EnableReceiveTransportSequenceNumber(int id) { |
78 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 78 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
79 channel()->EnableReceiveTransportSequenceNumber(id); | 79 channel()->EnableReceiveTransportSequenceNumber(id); |
80 } | 80 } |
81 | 81 |
82 void ChannelProxy::SetCongestionControlObjects( | 82 void ChannelProxy::RegisterSenderCongestionControlObjects( |
83 RtpPacketSender* rtp_packet_sender, | 83 RtpPacketSender* rtp_packet_sender, |
84 TransportFeedbackObserver* transport_feedback_observer, | 84 TransportFeedbackObserver* transport_feedback_observer, |
85 PacketRouter* packet_router) { | 85 PacketRouter* packet_router) { |
86 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 86 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
87 channel()->SetCongestionControlObjects( | 87 channel()->RegisterSenderCongestionControlObjects( |
88 rtp_packet_sender, transport_feedback_observer, packet_router); | 88 rtp_packet_sender, transport_feedback_observer, packet_router); |
89 } | 89 } |
90 | 90 |
| 91 void ChannelProxy::RegisterReceiverCongestionControlObjects( |
| 92 PacketRouter* packet_router) { |
| 93 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 94 channel()->RegisterReceiverCongestionControlObjects(packet_router); |
| 95 } |
| 96 |
| 97 void ChannelProxy::ResetCongestionControlObjects() { |
| 98 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| 99 channel()->ResetCongestionControlObjects(); |
| 100 } |
| 101 |
91 CallStatistics ChannelProxy::GetRTCPStatistics() const { | 102 CallStatistics ChannelProxy::GetRTCPStatistics() const { |
92 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 103 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
93 CallStatistics stats = {0}; | 104 CallStatistics stats = {0}; |
94 int error = channel()->GetRTPStatistics(stats); | 105 int error = channel()->GetRTPStatistics(stats); |
95 RTC_DCHECK_EQ(0, error); | 106 RTC_DCHECK_EQ(0, error); |
96 return stats; | 107 return stats; |
97 } | 108 } |
98 | 109 |
99 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { | 110 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { |
100 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 111 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 channel()->SetSink(std::move(sink)); | 160 channel()->SetSink(std::move(sink)); |
150 } | 161 } |
151 | 162 |
152 Channel* ChannelProxy::channel() const { | 163 Channel* ChannelProxy::channel() const { |
153 RTC_DCHECK(channel_owner_.channel()); | 164 RTC_DCHECK(channel_owner_.channel()); |
154 return channel_owner_.channel(); | 165 return channel_owner_.channel(); |
155 } | 166 } |
156 | 167 |
157 } // namespace voe | 168 } // namespace voe |
158 } // namespace webrtc | 169 } // namespace webrtc |
OLD | NEW |