| 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 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2336 | 2336 |
| 2337 bool RenderProcessHostImpl::StartWebRTCEventLog( | 2337 bool RenderProcessHostImpl::StartWebRTCEventLog( |
| 2338 const base::FilePath& file_path) { | 2338 const base::FilePath& file_path) { |
| 2339 return webrtc_eventlog_host_.StartWebRTCEventLog(file_path); | 2339 return webrtc_eventlog_host_.StartWebRTCEventLog(file_path); |
| 2340 } | 2340 } |
| 2341 | 2341 |
| 2342 bool RenderProcessHostImpl::StopWebRTCEventLog() { | 2342 bool RenderProcessHostImpl::StopWebRTCEventLog() { |
| 2343 return webrtc_eventlog_host_.StopWebRTCEventLog(); | 2343 return webrtc_eventlog_host_.StopWebRTCEventLog(); |
| 2344 } | 2344 } |
| 2345 | 2345 |
| 2346 void RenderProcessHostImpl::SetEchoCanceller3(bool enable) { |
| 2347 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2348 |
| 2349 // Piggybacking on AEC dumps. |
| 2350 // TODO(hlundin): Change name for aec_dump_consumers_; |
| 2351 // http://crbug.com/709919. |
| 2352 for (std::vector<int>::iterator it = aec_dump_consumers_.begin(); |
| 2353 it != aec_dump_consumers_.end(); ++it) { |
| 2354 Send(new AudioProcessingMsg_EnableAec3(*it, enable)); |
| 2355 } |
| 2356 } |
| 2357 |
| 2346 void RenderProcessHostImpl::SetWebRtcLogMessageCallback( | 2358 void RenderProcessHostImpl::SetWebRtcLogMessageCallback( |
| 2347 base::Callback<void(const std::string&)> callback) { | 2359 base::Callback<void(const std::string&)> callback) { |
| 2348 #if BUILDFLAG(ENABLE_WEBRTC) | 2360 #if BUILDFLAG(ENABLE_WEBRTC) |
| 2349 BrowserMainLoop::GetInstance()->media_stream_manager()-> | 2361 BrowserMainLoop::GetInstance()->media_stream_manager()-> |
| 2350 RegisterNativeLogCallback(GetID(), callback); | 2362 RegisterNativeLogCallback(GetID(), callback); |
| 2351 #endif | 2363 #endif |
| 2352 } | 2364 } |
| 2353 | 2365 |
| 2354 void RenderProcessHostImpl::ClearWebRtcLogMessageCallback() { | 2366 void RenderProcessHostImpl::ClearWebRtcLogMessageCallback() { |
| 2355 #if BUILDFLAG(ENABLE_WEBRTC) | 2367 #if BUILDFLAG(ENABLE_WEBRTC) |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3060 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3072 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3061 | 3073 |
| 3062 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3074 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3063 // Capture the error message in a crash key value. | 3075 // Capture the error message in a crash key value. |
| 3064 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3076 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3065 bad_message::ReceivedBadMessage(render_process_id, | 3077 bad_message::ReceivedBadMessage(render_process_id, |
| 3066 bad_message::RPH_MOJO_PROCESS_ERROR); | 3078 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3067 } | 3079 } |
| 3068 | 3080 |
| 3069 } // namespace content | 3081 } // namespace content |
| OLD | NEW |