| 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 16 matching lines...) Expand all Loading... |
| 27 class AudioSinkInterface; | 27 class AudioSinkInterface; |
| 28 class PacketRouter; | 28 class PacketRouter; |
| 29 class RtcEventLog; | 29 class RtcEventLog; |
| 30 class RtcpRttStats; | 30 class RtcpRttStats; |
| 31 class RtpPacketSender; | 31 class RtpPacketSender; |
| 32 class RtpReceiver; | 32 class RtpReceiver; |
| 33 class RtpRtcp; | 33 class RtpRtcp; |
| 34 class Transport; | 34 class Transport; |
| 35 class TransportFeedbackObserver; | 35 class TransportFeedbackObserver; |
| 36 | 36 |
| 37 namespace rtcp { |
| 38 class TransportFeedback; |
| 39 } // namespace rtcp |
| 40 |
| 37 namespace voe { | 41 namespace voe { |
| 38 | 42 |
| 39 class Channel; | 43 class Channel; |
| 40 | 44 |
| 41 // This class provides the "view" of a voe::Channel that we need to implement | 45 // This class provides the "view" of a voe::Channel that we need to implement |
| 42 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 46 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
| 43 // purposes: | 47 // purposes: |
| 44 // 1. Allow mocking just the interfaces used, instead of the entire | 48 // 1. Allow mocking just the interfaces used, instead of the entire |
| 45 // voe::Channel class. | 49 // voe::Channel class. |
| 46 // 2. Provide a refined interface for the stream classes, including assumptions | 50 // 2. Provide a refined interface for the stream classes, including assumptions |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void DisassociateSendChannel(); | 107 virtual void DisassociateSendChannel(); |
| 104 virtual void GetRtpRtcp(RtpRtcp** rtp_rtcp, | 108 virtual void GetRtpRtcp(RtpRtcp** rtp_rtcp, |
| 105 RtpReceiver** rtp_receiver) const; | 109 RtpReceiver** rtp_receiver) const; |
| 106 virtual void GetDelayEstimate(int* jitter_buffer_delay_ms, | 110 virtual void GetDelayEstimate(int* jitter_buffer_delay_ms, |
| 107 int* playout_buffer_delay_ms) const; | 111 int* playout_buffer_delay_ms) const; |
| 108 virtual uint32_t GetPlayoutTimestamp() const; | 112 virtual uint32_t GetPlayoutTimestamp() const; |
| 109 virtual void SetMinimumPlayoutDelay(int delay_ms); | 113 virtual void SetMinimumPlayoutDelay(int delay_ms); |
| 110 | 114 |
| 111 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | 115 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); |
| 112 | 116 |
| 117 void HandleTransportFeedback( |
| 118 const std::vector<uint16_t>& packets_sent_since_last_feedback, |
| 119 const rtcp::TransportFeedback& feedback); |
| 120 |
| 113 private: | 121 private: |
| 114 Channel* channel() const; | 122 Channel* channel() const; |
| 115 | 123 |
| 116 rtc::ThreadChecker thread_checker_; | 124 rtc::ThreadChecker thread_checker_; |
| 117 rtc::RaceChecker race_checker_; | 125 rtc::RaceChecker race_checker_; |
| 118 ChannelOwner channel_owner_; | 126 ChannelOwner channel_owner_; |
| 119 | 127 |
| 120 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 128 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
| 121 }; | 129 }; |
| 122 } // namespace voe | 130 } // namespace voe |
| 123 } // namespace webrtc | 131 } // namespace webrtc |
| 124 | 132 |
| 125 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 133 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |