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