| 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/thread_checker.h" | 14 #include "webrtc/base/thread_checker.h" |
| 15 #include "webrtc/voice_engine/channel_manager.h" | 15 #include "webrtc/voice_engine/channel_manager.h" |
| 16 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 16 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
| 17 | 17 |
| 18 #include <memory> | 18 #include <memory> |
| 19 #include <string> | 19 #include <string> |
| 20 #include <vector> | 20 #include <vector> |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 class AudioSinkInterface; | 24 class AudioSinkInterface; |
| 25 class PacketRouter; | 25 class PacketRouter; |
| 26 class RtcEventLog; |
| 26 class RtpPacketSender; | 27 class RtpPacketSender; |
| 27 class TransportFeedbackObserver; | 28 class TransportFeedbackObserver; |
| 28 | 29 |
| 29 namespace voe { | 30 namespace voe { |
| 30 | 31 |
| 31 class Channel; | 32 class Channel; |
| 32 | 33 |
| 33 // This class provides the "view" of a voe::Channel that we need to implement | 34 // This class provides the "view" of a voe::Channel that we need to implement |
| 34 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two | 35 // webrtc::AudioSendStream and webrtc::AudioReceiveStream. It serves two |
| 35 // purposes: | 36 // purposes: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 65 virtual NetworkStatistics GetNetworkStatistics() const; | 66 virtual NetworkStatistics GetNetworkStatistics() const; |
| 66 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; | 67 virtual AudioDecodingCallStats GetDecodingCallStatistics() const; |
| 67 virtual int32_t GetSpeechOutputLevelFullRange() const; | 68 virtual int32_t GetSpeechOutputLevelFullRange() const; |
| 68 virtual uint32_t GetDelayEstimate() const; | 69 virtual uint32_t GetDelayEstimate() const; |
| 69 | 70 |
| 70 virtual bool SetSendTelephoneEventPayloadType(int payload_type); | 71 virtual bool SetSendTelephoneEventPayloadType(int payload_type); |
| 71 virtual bool SendTelephoneEventOutband(uint8_t event, uint32_t duration_ms); | 72 virtual bool SendTelephoneEventOutband(uint8_t event, uint32_t duration_ms); |
| 72 | 73 |
| 73 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink); | 74 virtual void SetSink(std::unique_ptr<AudioSinkInterface> sink); |
| 74 | 75 |
| 76 virtual void SetRtcEventLog(RtcEventLog* event_log); |
| 77 |
| 75 private: | 78 private: |
| 76 Channel* channel() const; | 79 Channel* channel() const; |
| 77 | 80 |
| 78 rtc::ThreadChecker thread_checker_; | 81 rtc::ThreadChecker thread_checker_; |
| 79 ChannelOwner channel_owner_; | 82 ChannelOwner channel_owner_; |
| 80 }; | 83 }; |
| 81 } // namespace voe | 84 } // namespace voe |
| 82 } // namespace webrtc | 85 } // namespace webrtc |
| 83 | 86 |
| 84 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 87 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |