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 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle()))) | 2786 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle()))) |
2787 .AddExtension(kEventLogFileNameAddition); | 2787 .AddExtension(kEventLogFileNameAddition); |
2788 } | 2788 } |
2789 #endif // defined(ENABLE_WEBRTC) | 2789 #endif // defined(ENABLE_WEBRTC) |
2790 | 2790 |
2791 void RenderProcessHostImpl::GetAudioOutputControllers( | 2791 void RenderProcessHostImpl::GetAudioOutputControllers( |
2792 const GetAudioOutputControllersCallback& callback) const { | 2792 const GetAudioOutputControllersCallback& callback) const { |
2793 audio_renderer_host()->GetOutputControllers(callback); | 2793 audio_renderer_host()->GetOutputControllers(callback); |
2794 } | 2794 } |
2795 | 2795 |
2796 BluetoothAdapterFactoryWrapper* | |
2797 RenderProcessHostImpl::GetBluetoothAdapterFactoryWrapper() { | |
2798 return &bluetooth_adapter_factory_wrapper_; | |
2799 } | |
2800 | |
2801 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { | 2796 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { |
2802 // We are updating all widgets including swapped out ones. | 2797 // We are updating all widgets including swapped out ones. |
2803 std::unique_ptr<RenderWidgetHostIterator> widgets( | 2798 std::unique_ptr<RenderWidgetHostIterator> widgets( |
2804 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); | 2799 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); |
2805 while (RenderWidgetHost* widget = widgets->GetNextHost()) { | 2800 while (RenderWidgetHost* widget = widgets->GetNextHost()) { |
2806 RenderViewHost* rvh = RenderViewHost::From(widget); | 2801 RenderViewHost* rvh = RenderViewHost::From(widget); |
2807 if (!rvh) | 2802 if (!rvh) |
2808 continue; | 2803 continue; |
2809 | 2804 |
2810 // Skip widgets in other processes. | 2805 // Skip widgets in other processes. |
(...skipping 19 matching lines...) Expand all Loading... |
2830 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2825 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2831 | 2826 |
2832 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2827 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2833 // enough information here so that we can determine what the bad message was. | 2828 // enough information here so that we can determine what the bad message was. |
2834 base::debug::Alias(&error); | 2829 base::debug::Alias(&error); |
2835 bad_message::ReceivedBadMessage(process.get(), | 2830 bad_message::ReceivedBadMessage(process.get(), |
2836 bad_message::RPH_MOJO_PROCESS_ERROR); | 2831 bad_message::RPH_MOJO_PROCESS_ERROR); |
2837 } | 2832 } |
2838 | 2833 |
2839 } // namespace content | 2834 } // namespace content |
OLD | NEW |