Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2004 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 // Indicates whether any channels exist. | 104 // Indicates whether any channels exist. |
| 105 bool has_channels() const { | 105 bool has_channels() const { |
| 106 return (!voice_channels_.empty() || !video_channels_.empty()); | 106 return (!voice_channels_.empty() || !video_channels_.empty()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool GetOutputVolume(int* level); | 109 bool GetOutputVolume(int* level); |
| 110 bool SetOutputVolume(int level); | 110 bool SetOutputVolume(int level); |
| 111 // RTX will be enabled/disabled in engines that support it. The supporting | 111 // RTX will be enabled/disabled in engines that support it. The supporting |
| 112 // engines will start offering an RTX codec. Must be called before Init(). | 112 // engines will start offering an RTX codec. Must be called before Init(). |
| 113 bool SetVideoRtxEnabled(bool enable); | 113 bool SetVideoRtxEnabled(bool enable); |
| 114 bool SetCryptoOptions(const rtc::CryptoOptions& crypto_options); | |
| 114 | 115 |
| 115 // Starts/stops the local microphone and enables polling of the input level. | 116 // Starts/stops the local microphone and enables polling of the input level. |
| 116 bool capturing() const { return capturing_; } | 117 bool capturing() const { return capturing_; } |
| 117 | 118 |
| 118 // The operations below occur on the main thread. | 119 // The operations below occur on the main thread. |
| 119 | 120 |
| 120 // Starts AEC dump using existing file, with a specified maximum file size in | 121 // Starts AEC dump using existing file, with a specified maximum file size in |
| 121 // bytes. When the limit is reached, logging will stop and the file will be | 122 // bytes. When the limit is reached, logging will stop and the file will be |
| 122 // closed. If max_size_bytes is set to <= 0, no limit will be used. | 123 // closed. If max_size_bytes is set to <= 0, no limit will be used. |
| 123 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); | 124 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 bool initialized_; | 168 bool initialized_; |
| 168 rtc::Thread* main_thread_; | 169 rtc::Thread* main_thread_; |
| 169 rtc::Thread* worker_thread_; | 170 rtc::Thread* worker_thread_; |
| 170 | 171 |
| 171 VoiceChannels voice_channels_; | 172 VoiceChannels voice_channels_; |
| 172 VideoChannels video_channels_; | 173 VideoChannels video_channels_; |
| 173 DataChannels data_channels_; | 174 DataChannels data_channels_; |
| 174 | 175 |
| 175 int audio_output_volume_; | 176 int audio_output_volume_; |
| 176 bool enable_rtx_; | 177 bool enable_rtx_; |
| 178 rtc::CryptoOptions crypto_options_; | |
|
mattdr
2016/05/06 22:34:14
Again, I'd prefer to have a more explicit default
joachim
2016/05/09 23:21:40
Done.
| |
| 177 | 179 |
| 178 bool capturing_; | 180 bool capturing_; |
| 179 }; | 181 }; |
| 180 | 182 |
| 181 } // namespace cricket | 183 } // namespace cricket |
| 182 | 184 |
| 183 #endif // WEBRTC_PC_CHANNELMANAGER_H_ | 185 #endif // WEBRTC_PC_CHANNELMANAGER_H_ |
| OLD | NEW |