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

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

Issue 787953004: bluetooth: Use BluetoothAdapter in BluetoothDispatcherHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: virtual/override replaced Created 5 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 885 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
886 #if defined(OS_ANDROID) 886 #if defined(OS_ANDROID)
887 AddFilter(new ScreenOrientationMessageFilterAndroid()); 887 AddFilter(new ScreenOrientationMessageFilterAndroid());
888 #endif 888 #endif
889 AddFilter(new GeofencingDispatcherHost( 889 AddFilter(new GeofencingDispatcherHost(
890 storage_partition_impl_->GetGeofencingManager())); 890 storage_partition_impl_->GetGeofencingManager()));
891 AddFilter(new NavigatorConnectDispatcherHost( 891 AddFilter(new NavigatorConnectDispatcherHost(
892 storage_partition_impl_->GetServiceWorkerContext(), 892 storage_partition_impl_->GetServiceWorkerContext(),
893 storage_partition_impl_->GetNavigatorConnectContext())); 893 storage_partition_impl_->GetNavigatorConnectContext()));
894 if (browser_command_line.HasSwitch( 894 if (browser_command_line.HasSwitch(
895 switches::kEnableExperimentalWebPlatformFeatures)) 895 switches::kEnableExperimentalWebPlatformFeatures)) {
896 AddFilter(new BluetoothDispatcherHost()); 896 scoped_refptr<BluetoothDispatcherHost> bluetooth_dispatcher_host(
897 BluetoothDispatcherHost::Create());
898 AddFilter(bluetooth_dispatcher_host.get());
899 }
897 } 900 }
898 901
899 void RenderProcessHostImpl::RegisterMojoServices() { 902 void RenderProcessHostImpl::RegisterMojoServices() {
900 mojo_application_host_->service_registry()->AddService( 903 mojo_application_host_->service_registry()->AddService(
901 base::Bind(&device::BatteryMonitorImpl::Create)); 904 base::Bind(&device::BatteryMonitorImpl::Create));
902 905
903 mojo_application_host_->service_registry()->AddService( 906 mojo_application_host_->service_registry()->AddService(
904 base::Bind(&device::VibrationManagerImpl::Create)); 907 base::Bind(&device::VibrationManagerImpl::Create));
905 908
906 mojo_application_host_->service_registry()->AddService( 909 mojo_application_host_->service_registry()->AddService(
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 2362
2360 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2363 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2364 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2362 DCHECK_GT(worker_ref_count_, 0); 2365 DCHECK_GT(worker_ref_count_, 0);
2363 --worker_ref_count_; 2366 --worker_ref_count_;
2364 if (worker_ref_count_ == 0) 2367 if (worker_ref_count_ == 0)
2365 Cleanup(); 2368 Cleanup();
2366 } 2369 }
2367 2370
2368 } // namespace content 2371 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/child/bluetooth/bluetooth_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698