| 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 VOICE_ENGINE_CHANNEL_PROXY_H_ | 11 #ifndef VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 12 #define VOICE_ENGINE_CHANNEL_PROXY_H_ | 12 #define VOICE_ENGINE_CHANNEL_PROXY_H_ |
| 13 | 13 |
| 14 #include "api/audio/audio_mixer.h" | 14 #include "api/audio/audio_mixer.h" |
| 15 #include "api/audio_codecs/audio_encoder.h" | 15 #include "api/audio_codecs/audio_encoder.h" |
| 16 #include "api/rtpreceiverinterface.h" | 16 #include "api/rtpreceiverinterface.h" |
| 17 #include "call/rtp_packet_sink_interface.h" | 17 #include "call/rtp_packet_sink_interface.h" |
| 18 #include "rtc_base/constructormagic.h" | 18 #include "rtc_base/constructormagic.h" |
| 19 #include "rtc_base/race_checker.h" | 19 #include "rtc_base/race_checker.h" |
| 20 #include "rtc_base/thread_checker.h" | 20 #include "rtc_base/thread_checker.h" |
| 21 #include "voice_engine/channel.h" |
| 21 #include "voice_engine/channel_manager.h" | 22 #include "voice_engine/channel_manager.h" |
| 22 #include "voice_engine/include/voe_rtp_rtcp.h" | |
| 23 | 23 |
| 24 #include <memory> | 24 #include <memory> |
| 25 #include <string> | 25 #include <string> |
| 26 #include <vector> | 26 #include <vector> |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 class AudioSinkInterface; | 30 class AudioSinkInterface; |
| 31 class PacketRouter; | 31 class PacketRouter; |
| 32 class RtcEventLog; | 32 class RtcEventLog; |
| 33 class RtcpBandwidthObserver; | 33 class RtcpBandwidthObserver; |
| 34 class RtcpRttStats; | 34 class RtcpRttStats; |
| 35 class RtpPacketSender; | 35 class RtpPacketSender; |
| 36 class RtpPacketReceived; | 36 class RtpPacketReceived; |
| 37 class RtpReceiver; | 37 class RtpReceiver; |
| 38 class RtpRtcp; | 38 class RtpRtcp; |
| 39 class RtpTransportControllerSendInterface; | 39 class RtpTransportControllerSendInterface; |
| 40 class Transport; | 40 class Transport; |
| 41 class TransportFeedbackObserver; | 41 class TransportFeedbackObserver; |
| 42 | 42 |
| 43 namespace voe { | 43 namespace voe { |
| 44 | 44 |
| 45 class Channel; | |
| 46 | |
| 47 // This class provides the "view" of a voe::Channel that we need to implement | 45 // This class provides the "view" of a voe::Channel that we need to implement |
| 48 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 46 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
| 49 // purposes: | 47 // purposes: |
| 50 // 1. Allow mocking just the interfaces used, instead of the entire | 48 // 1. Allow mocking just the interfaces used, instead of the entire |
| 51 // voe::Channel class. | 49 // voe::Channel class. |
| 52 // 2. Provide a refined interface for the stream classes, including assumptions | 50 // 2. Provide a refined interface for the stream classes, including assumptions |
| 53 // on return values and input adaptation. | 51 // on return values and input adaptation. |
| 54 class ChannelProxy : public RtpPacketSinkInterface { | 52 class ChannelProxy : public RtpPacketSinkInterface { |
| 55 public: | 53 public: |
| 56 ChannelProxy(); | 54 ChannelProxy(); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 rtc::RaceChecker audio_thread_race_checker_; | 138 rtc::RaceChecker audio_thread_race_checker_; |
| 141 rtc::RaceChecker video_capture_thread_race_checker_; | 139 rtc::RaceChecker video_capture_thread_race_checker_; |
| 142 ChannelOwner channel_owner_; | 140 ChannelOwner channel_owner_; |
| 143 | 141 |
| 144 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 142 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
| 145 }; | 143 }; |
| 146 } // namespace voe | 144 } // namespace voe |
| 147 } // namespace webrtc | 145 } // namespace webrtc |
| 148 | 146 |
| 149 #endif // VOICE_ENGINE_CHANNEL_PROXY_H_ | 147 #endif // VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |