| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 45   int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id); | 45   int error = channel()->SetSendAbsoluteSenderTimeStatus(enable, id); | 
| 46   RTC_DCHECK_EQ(0, error); | 46   RTC_DCHECK_EQ(0, error); | 
| 47 } | 47 } | 
| 48 | 48 | 
| 49 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { | 49 void ChannelProxy::SetSendAudioLevelIndicationStatus(bool enable, int id) { | 
| 50   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 50   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| 51   int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); | 51   int error = channel()->SetSendAudioLevelIndicationStatus(enable, id); | 
| 52   RTC_DCHECK_EQ(0, error); | 52   RTC_DCHECK_EQ(0, error); | 
| 53 } | 53 } | 
| 54 | 54 | 
|  | 55 void ChannelProxy::SetSendTransportSequenceNumber(int id) { | 
|  | 56   RTC_DCHECK(channel_owner_.channel()); | 
|  | 57   channel()->SetSendTransportSequenceNumber(id); | 
|  | 58 } | 
|  | 59 | 
| 55 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) { | 60 void ChannelProxy::SetReceiveAbsoluteSenderTimeStatus(bool enable, int id) { | 
| 56   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 61   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| 57   int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id); | 62   int error = channel()->SetReceiveAbsoluteSenderTimeStatus(enable, id); | 
| 58   RTC_DCHECK_EQ(0, error); | 63   RTC_DCHECK_EQ(0, error); | 
| 59 } | 64 } | 
| 60 | 65 | 
| 61 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { | 66 void ChannelProxy::SetReceiveAudioLevelIndicationStatus(bool enable, int id) { | 
| 62   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 67   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| 63   int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); | 68   int error = channel()->SetReceiveAudioLevelIndicationStatus(enable, id); | 
| 64   RTC_DCHECK_EQ(0, error); | 69   RTC_DCHECK_EQ(0, error); | 
| 65 } | 70 } | 
| 66 | 71 | 
|  | 72 void ChannelProxy::SetCongestionControlObjects( | 
|  | 73     RtpPacketSender* rtp_packet_sender, | 
|  | 74     TransportFeedbackObserver* transport_feedback_observer, | 
|  | 75     PacketRouter* packet_router) { | 
|  | 76   channel()->SetCongestionControlObjects( | 
|  | 77       rtp_packet_sender, transport_feedback_observer, packet_router); | 
|  | 78 } | 
|  | 79 | 
| 67 CallStatistics ChannelProxy::GetRTCPStatistics() const { | 80 CallStatistics ChannelProxy::GetRTCPStatistics() const { | 
| 68   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 81   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| 69   CallStatistics stats = {0}; | 82   CallStatistics stats = {0}; | 
| 70   int error = channel()->GetRTPStatistics(stats); | 83   int error = channel()->GetRTPStatistics(stats); | 
| 71   RTC_DCHECK_EQ(0, error); | 84   RTC_DCHECK_EQ(0, error); | 
| 72   return stats; | 85   return stats; | 
| 73 } | 86 } | 
| 74 | 87 | 
| 75 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { | 88 std::vector<ReportBlock> ChannelProxy::GetRemoteRTCPReportBlocks() const { | 
| 76   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 89   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 105 | 118 | 
| 106 uint32_t ChannelProxy::GetDelayEstimate() const { | 119 uint32_t ChannelProxy::GetDelayEstimate() const { | 
| 107   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 120   RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 
| 108   return channel()->GetDelayEstimate(); | 121   return channel()->GetDelayEstimate(); | 
| 109 } | 122 } | 
| 110 | 123 | 
| 111 Channel* ChannelProxy::channel() const { | 124 Channel* ChannelProxy::channel() const { | 
| 112   RTC_DCHECK(channel_owner_.channel()); | 125   RTC_DCHECK(channel_owner_.channel()); | 
| 113   return channel_owner_.channel(); | 126   return channel_owner_.channel(); | 
| 114 } | 127 } | 
|  | 128 | 
| 115 }  // namespace voe | 129 }  // namespace voe | 
| 116 }  // namespace webrtc | 130 }  // namespace webrtc | 
| OLD | NEW | 
|---|