OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
7 | 7 |
8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 | 2346 |
2347 bool RenderProcessHostImpl::StartWebRTCEventLog( | 2347 bool RenderProcessHostImpl::StartWebRTCEventLog( |
2348 const base::FilePath& file_path) { | 2348 const base::FilePath& file_path) { |
2349 return webrtc_eventlog_host_.StartWebRTCEventLog(file_path); | 2349 return webrtc_eventlog_host_.StartWebRTCEventLog(file_path); |
2350 } | 2350 } |
2351 | 2351 |
2352 bool RenderProcessHostImpl::StopWebRTCEventLog() { | 2352 bool RenderProcessHostImpl::StopWebRTCEventLog() { |
2353 return webrtc_eventlog_host_.StopWebRTCEventLog(); | 2353 return webrtc_eventlog_host_.StopWebRTCEventLog(); |
2354 } | 2354 } |
2355 | 2355 |
| 2356 void RenderProcessHostImpl::SetEchoCanceller3(bool enable) { |
| 2357 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2358 |
| 2359 // Piggybacking on AEC dumps. |
| 2360 // TODO(hlundin): Change name for aec_dump_consumers_; |
| 2361 // http://crbug.com/709919. |
| 2362 for (std::vector<int>::iterator it = aec_dump_consumers_.begin(); |
| 2363 it != aec_dump_consumers_.end(); ++it) { |
| 2364 Send(new AudioProcessingMsg_EnableAec3(*it, enable)); |
| 2365 } |
| 2366 } |
| 2367 |
2356 void RenderProcessHostImpl::SetWebRtcLogMessageCallback( | 2368 void RenderProcessHostImpl::SetWebRtcLogMessageCallback( |
2357 base::Callback<void(const std::string&)> callback) { | 2369 base::Callback<void(const std::string&)> callback) { |
2358 #if BUILDFLAG(ENABLE_WEBRTC) | 2370 #if BUILDFLAG(ENABLE_WEBRTC) |
2359 BrowserMainLoop::GetInstance()->media_stream_manager()-> | 2371 BrowserMainLoop::GetInstance()->media_stream_manager()-> |
2360 RegisterNativeLogCallback(GetID(), callback); | 2372 RegisterNativeLogCallback(GetID(), callback); |
2361 #endif | 2373 #endif |
2362 } | 2374 } |
2363 | 2375 |
2364 void RenderProcessHostImpl::ClearWebRtcLogMessageCallback() { | 2376 void RenderProcessHostImpl::ClearWebRtcLogMessageCallback() { |
2365 #if BUILDFLAG(ENABLE_WEBRTC) | 2377 #if BUILDFLAG(ENABLE_WEBRTC) |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3075 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3087 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3076 | 3088 |
3077 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3089 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3078 // Capture the error message in a crash key value. | 3090 // Capture the error message in a crash key value. |
3079 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3091 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3080 bad_message::ReceivedBadMessage(render_process_id, | 3092 bad_message::ReceivedBadMessage(render_process_id, |
3081 bad_message::RPH_MOJO_PROCESS_ERROR); | 3093 bad_message::RPH_MOJO_PROCESS_ERROR); |
3082 } | 3094 } |
3083 | 3095 |
3084 } // namespace content | 3096 } // namespace content |
OLD | NEW |