| 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 11 matching lines...) Expand all Loading... |
| 22 #include <string> | 22 #include <string> |
| 23 #include <vector> | 23 #include <vector> |
| 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 RtcpBandwidthObserver; | 30 class RtcpBandwidthObserver; |
| 31 class RtcpRttStats; | 31 class RtcpRttStats; |
| 32 class RtpContributingSource; |
| 32 class RtpPacketSender; | 33 class RtpPacketSender; |
| 33 class RtpPacketReceived; | 34 class RtpPacketReceived; |
| 34 class RtpReceiver; | 35 class RtpReceiver; |
| 35 class RtpRtcp; | 36 class RtpRtcp; |
| 36 class RtpTransportControllerSendInterface; | 37 class RtpTransportControllerSendInterface; |
| 37 class Transport; | 38 class Transport; |
| 38 class TransportFeedbackObserver; | 39 class TransportFeedbackObserver; |
| 39 | 40 |
| 40 namespace voe { | 41 namespace voe { |
| 41 | 42 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual bool SetVADStatus(bool enable); | 114 virtual bool SetVADStatus(bool enable); |
| 114 virtual bool SetCodecFECStatus(bool enable); | 115 virtual bool SetCodecFECStatus(bool enable); |
| 115 virtual bool SetOpusDtx(bool enable); | 116 virtual bool SetOpusDtx(bool enable); |
| 116 virtual bool SetOpusMaxPlaybackRate(int frequency_hz); | 117 virtual bool SetOpusMaxPlaybackRate(int frequency_hz); |
| 117 virtual bool SetSendCodec(const CodecInst& codec_inst); | 118 virtual bool SetSendCodec(const CodecInst& codec_inst); |
| 118 virtual bool SetSendCNPayloadType(int type, PayloadFrequencies frequency); | 119 virtual bool SetSendCNPayloadType(int type, PayloadFrequencies frequency); |
| 119 virtual void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); | 120 virtual void OnTwccBasedUplinkPacketLossRate(float packet_loss_rate); |
| 120 virtual void OnRecoverableUplinkPacketLossRate( | 121 virtual void OnRecoverableUplinkPacketLossRate( |
| 121 float recoverable_packet_loss_rate); | 122 float recoverable_packet_loss_rate); |
| 122 virtual void RegisterLegacyReceiveCodecs(); | 123 virtual void RegisterLegacyReceiveCodecs(); |
| 124 virtual const std::vector<RtpContributingSource*>& GetContributingSources(); |
| 123 | 125 |
| 124 private: | 126 private: |
| 125 Channel* channel() const; | 127 Channel* channel() const; |
| 126 | 128 |
| 127 // Thread checkers document and lock usage of some methods on voe::Channel to | 129 // Thread checkers document and lock usage of some methods on voe::Channel to |
| 128 // specific threads we know about. The goal is to eventually split up | 130 // specific threads we know about. The goal is to eventually split up |
| 129 // voe::Channel into parts with single-threaded semantics, and thereby reduce | 131 // voe::Channel into parts with single-threaded semantics, and thereby reduce |
| 130 // the need for locks. | 132 // the need for locks. |
| 131 rtc::ThreadChecker worker_thread_checker_; | 133 rtc::ThreadChecker worker_thread_checker_; |
| 132 rtc::ThreadChecker module_process_thread_checker_; | 134 rtc::ThreadChecker module_process_thread_checker_; |
| 133 // Methods accessed from audio and video threads are checked for sequential- | 135 // Methods accessed from audio and video threads are checked for sequential- |
| 134 // only access. We don't necessarily own and control these threads, so thread | 136 // only access. We don't necessarily own and control these threads, so thread |
| 135 // checkers cannot be used. E.g. Chromium may transfer "ownership" from one | 137 // checkers cannot be used. E.g. Chromium may transfer "ownership" from one |
| 136 // audio thread to another, but access is still sequential. | 138 // audio thread to another, but access is still sequential. |
| 137 rtc::RaceChecker audio_thread_race_checker_; | 139 rtc::RaceChecker audio_thread_race_checker_; |
| 138 rtc::RaceChecker video_capture_thread_race_checker_; | 140 rtc::RaceChecker video_capture_thread_race_checker_; |
| 139 ChannelOwner channel_owner_; | 141 ChannelOwner channel_owner_; |
| 140 | 142 |
| 141 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); | 143 RTC_DISALLOW_COPY_AND_ASSIGN(ChannelProxy); |
| 142 }; | 144 }; |
| 143 } // namespace voe | 145 } // namespace voe |
| 144 } // namespace webrtc | 146 } // namespace webrtc |
| 145 | 147 |
| 146 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ | 148 #endif // WEBRTC_VOICE_ENGINE_CHANNEL_PROXY_H_ |
| OLD | NEW |