Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: content/public/browser/render_process_host.h

Issue 2801853005: Create a private API for controlling WebRTC's AEC3 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
Henrik Grunell 2017/04/10 08:13:28 This will be removed at some later point when full
hlundin-chromium 2017/04/10 10:10:16 Done.
249 // selecting the older AEC2.
250 virtual void SetEchoCanceller3(bool enable) = 0;
251
248 // When set, |callback| receives log messages regarding, for example, media 252 // When set, |callback| receives log messages regarding, for example, media
249 // devices (webcams, mics, etc) that were initially requested in the render 253 // devices (webcams, mics, etc) that were initially requested in the render
250 // process associated with this RenderProcessHost. 254 // process associated with this RenderProcessHost.
251 virtual void SetWebRtcLogMessageCallback( 255 virtual void SetWebRtcLogMessageCallback(
252 base::Callback<void(const std::string&)> callback) = 0; 256 base::Callback<void(const std::string&)> callback) = 0;
253 virtual void ClearWebRtcLogMessageCallback() = 0; 257 virtual void ClearWebRtcLogMessageCallback() = 0;
254 258
255 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header, 259 typedef base::Callback<void(std::unique_ptr<uint8_t[]> packet_header,
256 size_t header_length, 260 size_t header_length,
257 size_t packet_length, 261 size_t packet_length,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 static void SetMaxRendererProcessCount(size_t count); 413 static void SetMaxRendererProcessCount(size_t count);
410 414
411 // Returns the current maximum number of renderer process hosts kept by the 415 // Returns the current maximum number of renderer process hosts kept by the
412 // content module. 416 // content module.
413 static size_t GetMaxRendererProcessCount(); 417 static size_t GetMaxRendererProcessCount();
414 }; 418 };
415 419
416 } // namespace content. 420 } // namespace content.
417 421
418 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_ 422 #endif // CONTENT_PUBLIC_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698