Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: webrtc/voice_engine/channel_proxy.h

Issue 2685673003: Define RtpTransportControllerSendInterface. (Closed)
Patch Set: Comment improvements. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 rtc::RaceChecker audio_thread_race_checker_; 132 rtc::RaceChecker audio_thread_race_checker_;
134 rtc::RaceChecker video_capture_thread_race_checker_; 133 rtc::RaceChecker video_capture_thread_race_checker_;
135 ChannelOwner channel_owner_; 134 ChannelOwner channel_owner_;
136 135
137 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); 136 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy);
138 }; 137 };
139 } // namespace voe 138 } // namespace voe
140 } // namespace webrtc 139 } // namespace webrtc
141 140
142 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ 141 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698