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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2801853005: Create a private API for controlling WebRTC's AEC3 (Closed)
Patch Set: Fixing typo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/common/media/aec_dump_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 4c027b5d7ced1fa4e29c050b8b678f756e070691..4e46323b434566bca98e70228060efacca5d6180 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2353,6 +2353,18 @@ bool RenderProcessHostImpl::StopWebRTCEventLog() {
return webrtc_eventlog_host_.StopWebRTCEventLog();
}
+void RenderProcessHostImpl::SetEchoCanceller3(bool enable) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+
+ // Piggybacking on AEC dumps.
+ // TODO(hlundin): Change name for aec_dump_consumers_;
+ // http://crbug.com/709919.
+ for (std::vector<int>::iterator it = aec_dump_consumers_.begin();
+ it != aec_dump_consumers_.end(); ++it) {
+ Send(new AudioProcessingMsg_EnableAec3(*it, enable));
+ }
+}
+
void RenderProcessHostImpl::SetWebRtcLogMessageCallback(
base::Callback<void(const std::string&)> callback) {
#if BUILDFLAG(ENABLE_WEBRTC)
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/common/media/aec_dump_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698