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

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

Issue 1228113004: Put the RenderFrame's ID into a per-frame WebBluetooth, and plumb that back to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store-request-device-state-in-dispatcher
Patch Set: Rebase Created 5 years, 5 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 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 AddFilter(new MemoryBenchmarkMessageFilter()); 923 AddFilter(new MemoryBenchmarkMessageFilter());
924 #endif 924 #endif
925 AddFilter(new PushMessagingMessageFilter( 925 AddFilter(new PushMessagingMessageFilter(
926 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 926 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
927 #if defined(OS_ANDROID) 927 #if defined(OS_ANDROID)
928 AddFilter(new ScreenOrientationMessageFilterAndroid()); 928 AddFilter(new ScreenOrientationMessageFilterAndroid());
929 #endif 929 #endif
930 AddFilter(new GeofencingDispatcherHost( 930 AddFilter(new GeofencingDispatcherHost(
931 storage_partition_impl_->GetGeofencingManager())); 931 storage_partition_impl_->GetGeofencingManager()));
932 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { 932 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) {
933 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(); 933 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID());
934 AddFilter(bluetooth_dispatcher_host_.get()); 934 AddFilter(bluetooth_dispatcher_host_.get());
935 } 935 }
936 } 936 }
937 937
938 void RenderProcessHostImpl::RegisterMojoServices() { 938 void RenderProcessHostImpl::RegisterMojoServices() {
939 mojo_application_host_->service_registry()->AddService( 939 mojo_application_host_->service_registry()->AddService(
940 base::Bind(&device::BatteryMonitorImpl::Create)); 940 base::Bind(&device::BatteryMonitorImpl::Create));
941 941
942 mojo_application_host_->service_registry()->AddService( 942 mojo_application_host_->service_registry()->AddService(
943 base::Bind(&device::VibrationManagerImpl::Create)); 943 base::Bind(&device::VibrationManagerImpl::Create));
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2510 void RenderProcessHostImpl::GetAudioOutputControllers( 2510 void RenderProcessHostImpl::GetAudioOutputControllers(
2511 const GetAudioOutputControllersCallback& callback) const { 2511 const GetAudioOutputControllersCallback& callback) const {
2512 audio_renderer_host()->GetOutputControllers(callback); 2512 audio_renderer_host()->GetOutputControllers(callback);
2513 } 2513 }
2514 2514
2515 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2515 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2516 return bluetooth_dispatcher_host_.get(); 2516 return bluetooth_dispatcher_host_.get();
2517 } 2517 }
2518 2518
2519 } // namespace content 2519 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/common/bluetooth/bluetooth_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698