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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2059543002: bluetooth: Move FactoryWrapper to device and expose a function for testing in chooser controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix typo Created 4 years, 6 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 unified diff | Download patch
OLDNEW
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 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle()))) 2777 return file.AddExtension(IntToStringType(base::GetProcId(GetHandle())))
2778 .AddExtension(kEventLogFileNameAddition); 2778 .AddExtension(kEventLogFileNameAddition);
2779 } 2779 }
2780 #endif // defined(ENABLE_WEBRTC) 2780 #endif // defined(ENABLE_WEBRTC)
2781 2781
2782 void RenderProcessHostImpl::GetAudioOutputControllers( 2782 void RenderProcessHostImpl::GetAudioOutputControllers(
2783 const GetAudioOutputControllersCallback& callback) const { 2783 const GetAudioOutputControllersCallback& callback) const {
2784 audio_renderer_host()->GetOutputControllers(callback); 2784 audio_renderer_host()->GetOutputControllers(callback);
2785 } 2785 }
2786 2786
2787 BluetoothAdapterFactoryWrapper*
2788 RenderProcessHostImpl::GetBluetoothAdapterFactoryWrapper() {
2789 return &bluetooth_adapter_factory_wrapper_;
2790 }
2791
2792 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() { 2787 void RenderProcessHostImpl::RecomputeAndUpdateWebKitPreferences() {
2793 // We are updating all widgets including swapped out ones. 2788 // We are updating all widgets including swapped out ones.
2794 std::unique_ptr<RenderWidgetHostIterator> widgets( 2789 std::unique_ptr<RenderWidgetHostIterator> widgets(
2795 RenderWidgetHostImpl::GetAllRenderWidgetHosts()); 2790 RenderWidgetHostImpl::GetAllRenderWidgetHosts());
2796 while (RenderWidgetHost* widget = widgets->GetNextHost()) { 2791 while (RenderWidgetHost* widget = widgets->GetNextHost()) {
2797 RenderViewHost* rvh = RenderViewHost::From(widget); 2792 RenderViewHost* rvh = RenderViewHost::From(widget);
2798 if (!rvh) 2793 if (!rvh)
2799 continue; 2794 continue;
2800 2795
2801 // Skip widgets in other processes. 2796 // Skip widgets in other processes.
2802 if (rvh->GetProcess()->GetID() != GetID()) 2797 if (rvh->GetProcess()->GetID() != GetID())
2803 continue; 2798 continue;
2804 2799
2805 rvh->OnWebkitPreferencesChanged(); 2800 rvh->OnWebkitPreferencesChanged();
2806 } 2801 }
2807 } 2802 }
2808 2803
2809 } // namespace content 2804 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698