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 14 matching lines...) Expand all Loading... |
25 namespace webrtc { | 25 namespace webrtc { |
26 | 26 |
27 class AudioSinkInterface; | 27 class AudioSinkInterface; |
28 class PacketRouter; | 28 class PacketRouter; |
29 class RtcEventLog; | 29 class RtcEventLog; |
30 class RtcpBandwidthObserver; | 30 class RtcpBandwidthObserver; |
31 class RtcpRttStats; | 31 class RtcpRttStats; |
32 class RtpPacketSender; | 32 class RtpPacketSender; |
33 class RtpReceiver; | 33 class RtpReceiver; |
34 class RtpRtcp; | 34 class RtpRtcp; |
| 35 class RtpTransportControllerSendInterface; |
35 class Transport; | 36 class Transport; |
36 class TransportFeedbackObserver; | 37 class TransportFeedbackObserver; |
37 | 38 |
38 namespace voe { | 39 namespace voe { |
39 | 40 |
40 class Channel; | 41 class Channel; |
41 | 42 |
42 // This class provides the "view" of a voe::Channel that we need to implement | 43 // This class provides the "view" of a voe::Channel that we need to implement |
43 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 44 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
44 // purposes: | 45 // purposes: |
45 // 1. Allow mocking just the interfaces used, instead of the entire | 46 // 1. Allow mocking just the interfaces used, instead of the entire |
46 // voe::Channel class. | 47 // voe::Channel class. |
47 // 2. Provide a refined interface for the stream classes, including assumptions | 48 // 2. Provide a refined interface for the stream classes, including assumptions |
48 // on return values and input adaptation. | 49 // on return values and input adaptation. |
49 class ChannelProxy { | 50 class ChannelProxy { |
50 public: | 51 public: |
51 ChannelProxy(); | 52 ChannelProxy(); |
52 explicit ChannelProxy(const ChannelOwner& channel_owner); | 53 explicit ChannelProxy(const ChannelOwner& channel_owner); |
53 virtual ~ChannelProxy(); | 54 virtual ~ChannelProxy(); |
54 | 55 |
55 virtual void SetRTCPStatus(bool enable); | 56 virtual void SetRTCPStatus(bool enable); |
56 virtual void SetLocalSSRC(uint32_t ssrc); | 57 virtual void SetLocalSSRC(uint32_t ssrc); |
57 virtual void SetRTCP_CNAME(const std::string& c_name); | 58 virtual void SetRTCP_CNAME(const std::string& c_name); |
58 virtual void SetNACKStatus(bool enable, int max_packets); | 59 virtual void SetNACKStatus(bool enable, int max_packets); |
59 virtual void SetSendAudioLevelIndicationStatus(bool enable, int id); | 60 virtual void SetSendAudioLevelIndicationStatus(bool enable, int id); |
60 virtual void SetReceiveAudioLevelIndicationStatus(bool enable, int id); | 61 virtual void SetReceiveAudioLevelIndicationStatus(bool enable, int id); |
61 virtual void EnableSendTransportSequenceNumber(int id); | 62 virtual void EnableSendTransportSequenceNumber(int id); |
62 virtual void EnableReceiveTransportSequenceNumber(int id); | 63 virtual void EnableReceiveTransportSequenceNumber(int id); |
63 virtual void RegisterSenderCongestionControlObjects( | 64 virtual void RegisterSenderCongestionControlObjects( |
64 RtpPacketSender* rtp_packet_sender, | 65 RtpTransportControllerSendInterface* transport, |
65 TransportFeedbackObserver* transport_feedback_observer, | |
66 PacketRouter* packet_router, | |
67 RtcpBandwidthObserver* bandwidth_observer); | 66 RtcpBandwidthObserver* bandwidth_observer); |
68 virtual void RegisterReceiverCongestionControlObjects( | 67 virtual void RegisterReceiverCongestionControlObjects( |
69 PacketRouter* packet_router); | 68 PacketRouter* packet_router); |
70 virtual void ResetCongestionControlObjects(); | 69 virtual void ResetCongestionControlObjects(); |
71 virtual CallStatistics GetRTCPStatistics() const; | 70 virtual CallStatistics GetRTCPStatistics() const; |
72 virtual std::vector<ReportBlock> GetRemoteRTCPReportBlocks() const; | 71 virtual std::vector<ReportBlock> GetRemoteRTCPReportBlocks() const; |
73 virtual NetworkStatistics GetNetworkStatistics() const; | 72 virtual NetworkStatistics GetNetworkStatistics() const; |
74 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; | 73 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; |
75 virtual int32_t GetSpeechOutputLevelFullRange() const; | 74 virtual int32_t GetSpeechOutputLevelFullRange() const; |
76 virtual uint32_t GetDelayEstimate() const; | 75 virtual uint32_t GetDelayEstimate() const; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 rtc::ThreadChecker thread_checker_; | 124 rtc::ThreadChecker thread_checker_; |
126 rtc::RaceChecker race_checker_; | 125 rtc::RaceChecker race_checker_; |
127 ChannelOwner channel_owner_; | 126 ChannelOwner channel_owner_; |
128 | 127 |
129 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 128 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
130 }; | 129 }; |
131 } // namespace voe | 130 } // namespace voe |
132 } // namespace webrtc | 131 } // namespace webrtc |
133 | 132 |
134 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 133 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
OLD | NEW |