| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 301 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 302 channel()->SetRtcpRttStats(rtcp_rtt_stats); | 302 channel()->SetRtcpRttStats(rtcp_rtt_stats); |
| 303 } | 303 } |
| 304 | 304 |
| 305 bool ChannelProxy::GetRecCodec(CodecInst* codec_inst) const { | 305 bool ChannelProxy::GetRecCodec(CodecInst* codec_inst) const { |
| 306 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 306 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 307 return channel()->GetRecCodec(*codec_inst) == 0; | 307 return channel()->GetRecCodec(*codec_inst) == 0; |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ChannelProxy::OnTwccBasedUplinkPacketLossRate(float packet_loss_rate) { | 310 void ChannelProxy::OnTwccBasedUplinkPacketLossRate(float packet_loss_rate) { |
| 311 // TODO(elad.alon): This fails in UT; fix and uncomment. | 311 // TODO(eladalon): This fails in UT; fix and uncomment. |
| 312 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405 | 312 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405 |
| 313 // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 313 // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 314 channel()->OnTwccBasedUplinkPacketLossRate(packet_loss_rate); | 314 channel()->OnTwccBasedUplinkPacketLossRate(packet_loss_rate); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void ChannelProxy::OnRecoverableUplinkPacketLossRate( | 317 void ChannelProxy::OnRecoverableUplinkPacketLossRate( |
| 318 float recoverable_packet_loss_rate) { | 318 float recoverable_packet_loss_rate) { |
| 319 // TODO(elad.alon): This fails in UT; fix and uncomment. | 319 // TODO(eladalon): This fails in UT; fix and uncomment. |
| 320 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405 | 320 // See: https://bugs.chromium.org/p/webrtc/issues/detail?id=7405 |
| 321 // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 321 // RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 322 channel()->OnRecoverableUplinkPacketLossRate(recoverable_packet_loss_rate); | 322 channel()->OnRecoverableUplinkPacketLossRate(recoverable_packet_loss_rate); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void ChannelProxy::RegisterLegacyReceiveCodecs() { | 325 void ChannelProxy::RegisterLegacyReceiveCodecs() { |
| 326 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 326 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 327 channel()->RegisterLegacyReceiveCodecs(); | 327 channel()->RegisterLegacyReceiveCodecs(); |
| 328 } | 328 } |
| 329 | 329 |
| 330 std::vector<RtpSource> ChannelProxy::GetSources() const { | 330 std::vector<RtpSource> ChannelProxy::GetSources() const { |
| 331 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 331 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 332 return channel()->GetSources(); | 332 return channel()->GetSources(); |
| 333 } | 333 } |
| 334 | 334 |
| 335 Channel* ChannelProxy::channel() const { | 335 Channel* ChannelProxy::channel() const { |
| 336 RTC_DCHECK(channel_owner_.channel()); | 336 RTC_DCHECK(channel_owner_.channel()); |
| 337 return channel_owner_.channel(); | 337 return channel_owner_.channel(); |
| 338 } | 338 } |
| 339 | 339 |
| 340 } // namespace voe | 340 } // namespace voe |
| 341 } // namespace webrtc | 341 } // namespace webrtc |
| OLD | NEW |