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