| 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 |
| 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 11 #ifndef WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 12 #define WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/constructormagic.h" | 14 #include "webrtc/base/constructormagic.h" |
| 15 #include "webrtc/base/thread_checker.h" | 15 #include "webrtc/base/thread_checker.h" |
| 16 #include "webrtc/voice_engine/channel_manager.h" | 16 #include "webrtc/voice_engine/channel_manager.h" |
| 17 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 17 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
| 18 | 18 |
| 19 #include <memory> | 19 #include <memory> |
| 20 #include <string> | 20 #include <string> |
| 21 #include <vector> | 21 #include <vector> |
| 22 | 22 |
| 23 namespace webrtc { | 23 namespace webrtc { |
| 24 | 24 |
| 25 class AudioSinkInterface; | 25 class AudioSinkInterface; |
| 26 class PacketRouter; | 26 class PacketRouter; |
| 27 class RtcEventLog; | 27 class RtcEventLog; |
| 28 class RtcpRttStats; | |
| 29 class RtpPacketSender; | 28 class RtpPacketSender; |
| 30 class Transport; | 29 class Transport; |
| 31 class TransportFeedbackObserver; | 30 class TransportFeedbackObserver; |
| 32 | 31 |
| 33 namespace voe { | 32 namespace voe { |
| 34 | 33 |
| 35 class Channel; | 34 class Channel; |
| 36 | 35 |
| 37 // This class provides the "view" of a voe::Channel that we need to implement | 36 // This class provides the "view" of a voe::Channel that we need to implement |
| 38 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 37 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 const PacketTime& packet_time); | 84 const PacketTime& packet_time); |
| 86 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length); | 85 virtual bool ReceivedRTCPPacket(const uint8_t* packet, size_t length); |
| 87 | 86 |
| 88 virtual const rtc::scoped_refptr<AudioDecoderFactory>& | 87 virtual const rtc::scoped_refptr<AudioDecoderFactory>& |
| 89 GetAudioDecoderFactory() const; | 88 GetAudioDecoderFactory() const; |
| 90 | 89 |
| 91 virtual void SetChannelOutputVolumeScaling(float scaling); | 90 virtual void SetChannelOutputVolumeScaling(float scaling); |
| 92 | 91 |
| 93 virtual void SetRtcEventLog(RtcEventLog* event_log); | 92 virtual void SetRtcEventLog(RtcEventLog* event_log); |
| 94 | 93 |
| 95 virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats); | |
| 96 | |
| 97 private: | 94 private: |
| 98 Channel* channel() const; | 95 Channel* channel() const; |
| 99 | 96 |
| 100 rtc::ThreadChecker thread_checker_; | 97 rtc::ThreadChecker thread_checker_; |
| 101 ChannelOwner channel_owner_; | 98 ChannelOwner channel_owner_; |
| 102 | 99 |
| 103 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 100 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
| 104 }; | 101 }; |
| 105 } // namespace voe | 102 } // namespace voe |
| 106 } // namespace webrtc | 103 } // namespace webrtc |
| 107 | 104 |
| 108 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 105 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |