OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // Starts a WebRTC event log for each peerconnection on the render process. | 238 // Starts a WebRTC event log for each peerconnection on the render process. |
239 // A base file_path can be supplied, which will be extended to include several | 239 // A base file_path can be supplied, which will be extended to include several |
240 // identifiers to ensure uniqueness. If a recording was already in progress, | 240 // identifiers to ensure uniqueness. If a recording was already in progress, |
241 // this call will return false and have no other effect. | 241 // this call will return false and have no other effect. |
242 virtual bool StartWebRTCEventLog(const base::FilePath& file_path) = 0; | 242 virtual bool StartWebRTCEventLog(const base::FilePath& file_path) = 0; |
243 | 243 |
244 // Stops recording a WebRTC event log for each peerconnection on the render | 244 // Stops recording a WebRTC event log for each peerconnection on the render |
245 // process. If no recording was in progress, this call will return false. | 245 // process. If no recording was in progress, this call will return false. |
246 virtual bool StopWebRTCEventLog() = 0; | 246 virtual bool StopWebRTCEventLog() = 0; |
247 | 247 |
| 248 // Enables or disables WebRTC's echo canceller AEC3. Disabled implies |
| 249 // selecting the older AEC2. |
| 250 // Note: This will be removed once the AEC3 is fully rolled out and the old |
| 251 // AEC is deprecated. |
| 252 virtual void SetEchoCanceller3(bool enable) = 0; |
| 253 |
248 // When set, |callback| receives log messages regarding, for example, media | 254 // When set, |callback| receives log messages regarding, for example, media |
249 // devices (webcams, mics, etc) that were initially requested in the render | 255 // devices (webcams, mics, etc) that were initially requested in the render |
250 // process associated with this RenderProcessHost. | 256 // process associated with this RenderProcessHost. |
251 virtual void SetWebRtcLogMessageCallback( | 257 virtual void SetWebRtcLogMessageCallback( |
252 base::Callback<void(const std::string&)> callback) = 0; | 258 base::Callback<void(const std::string&)> callback) = 0; |
253 virtual void ClearWebRtcLogMessageCallback() = 0; | 259 virtual void ClearWebRtcLogMessageCallback() = 0; |
254 | 260 |
255 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, | 261 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, |
256 size_t header_length, | 262 size_t header_length, |
257 size_t packet_length, | 263 size_t packet_length, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 static void SetMaxRendererProcessCount(size_t count); | 415 static void SetMaxRendererProcessCount(size_t count); |
410 | 416 |
411 // Returns the current maximum number of renderer process hosts kept by the | 417 // Returns the current maximum number of renderer process hosts kept by the |
412 // content module. | 418 // content module. |
413 static size_t GetMaxRendererProcessCount(); | 419 static size_t GetMaxRendererProcessCount(); |
414 }; | 420 }; |
415 | 421 |
416 } // namespace content. | 422 } // namespace content. |
417 | 423 |
418 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ | 424 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |