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 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3056 Send(new AecDumpMsg_DisableAecDump()); | 3056 Send(new AecDumpMsg_DisableAecDump()); |
3057 } | 3057 } |
3058 | 3058 |
3059 base::FilePath RenderProcessHostImpl::GetAecDumpFilePathWithExtensions( | 3059 base::FilePath RenderProcessHostImpl::GetAecDumpFilePathWithExtensions( |
3060 const base::FilePath& file) { | 3060 const base::FilePath& file) { |
3061 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle()))) | 3061 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle()))) |
3062 .AddExtension(kAecDumpFileNameAddition); | 3062 .AddExtension(kAecDumpFileNameAddition); |
3063 } | 3063 } |
3064 #endif // BUILDFLAG(ENABLE_WEBRTC) | 3064 #endif // BUILDFLAG(ENABLE_WEBRTC) |
3065 | 3065 |
3066 void RenderProcessHostImpl::GetAudioOutputControllers( | |
3067 const GetAudioOutputControllersCallback& callback) const { | |
3068 audio_renderer_host()->GetOutputControllers(callback); | |
3069 } | |
3070 | |
3071 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { | 3066 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { |
3072 // We are updating all widgets including swapped out ones. | 3067 // We are updating all widgets including swapped out ones. |
3073 std::unique_ptr<RenderWidgetHostIterator> widgets( | 3068 std::unique_ptr<RenderWidgetHostIterator> widgets( |
3074 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); | 3069 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); |
3075 while (RenderWidgetHost* widget = widgets->GetNextHost()) { | 3070 while (RenderWidgetHost* widget = widgets->GetNextHost()) { |
3076 RenderViewHost* rvh = RenderViewHost::From(widget); | 3071 RenderViewHost* rvh = RenderViewHost::From(widget); |
3077 if (!rvh) | 3072 if (!rvh) |
3078 continue; | 3073 continue; |
3079 | 3074 |
3080 // Skip widgets in other processes. | 3075 // Skip widgets in other processes. |
(...skipping 10 matching lines...) Expand all Loading... |
3091 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3086 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3092 | 3087 |
3093 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3088 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
3094 // Capture the error message in a crash key value. | 3089 // Capture the error message in a crash key value. |
3095 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3090 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
3096 bad_message::ReceivedBadMessage(render_process_id, | 3091 bad_message::ReceivedBadMessage(render_process_id, |
3097 bad_message::RPH_MOJO_PROCESS_ERROR); | 3092 bad_message::RPH_MOJO_PROCESS_ERROR); |
3098 } | 3093 } |
3099 | 3094 |
3100 } // namespace content | 3095 } // namespace content |
OLD | NEW |