| OLD | NEW |
| 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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 AddFilter(new PushMessagingMessageFilter( | 924 AddFilter(new PushMessagingMessageFilter( |
| 925 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 925 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 926 #if defined(OS_ANDROID) | 926 #if defined(OS_ANDROID) |
| 927 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 927 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 928 #endif | 928 #endif |
| 929 AddFilter(new GeofencingDispatcherHost( | 929 AddFilter(new GeofencingDispatcherHost( |
| 930 storage_partition_impl_->GetGeofencingManager())); | 930 storage_partition_impl_->GetGeofencingManager())); |
| 931 AddFilter(new NavigatorConnectDispatcherHost( | 931 AddFilter(new NavigatorConnectDispatcherHost( |
| 932 storage_partition_impl_->GetNavigatorConnectContext(), | 932 storage_partition_impl_->GetNavigatorConnectContext(), |
| 933 message_port_message_filter_.get())); | 933 message_port_message_filter_.get())); |
| 934 if (browser_command_line.HasSwitch( | 934 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
| 935 switches::kEnableExperimentalWebPlatformFeatures)) { | |
| 936 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(); | 935 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(); |
| 937 AddFilter(bluetooth_dispatcher_host_.get()); | 936 AddFilter(bluetooth_dispatcher_host_.get()); |
| 938 } | 937 } |
| 939 } | 938 } |
| 940 | 939 |
| 941 void RenderProcessHostImpl::RegisterMojoServices() { | 940 void RenderProcessHostImpl::RegisterMojoServices() { |
| 942 mojo_application_host_->service_registry()->AddService( | 941 mojo_application_host_->service_registry()->AddService( |
| 943 base::Bind(&device::BatteryMonitorImpl::Create)); | 942 base::Bind(&device::BatteryMonitorImpl::Create)); |
| 944 | 943 |
| 945 mojo_application_host_->service_registry()->AddService( | 944 mojo_application_host_->service_registry()->AddService( |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 switches::kEnableStaleWhileRevalidate, | 1273 switches::kEnableStaleWhileRevalidate, |
| 1275 switches::kEnableStatsTable, | 1274 switches::kEnableStatsTable, |
| 1276 switches::kEnableStrictSiteIsolation, | 1275 switches::kEnableStrictSiteIsolation, |
| 1277 switches::kEnableThreadedCompositing, | 1276 switches::kEnableThreadedCompositing, |
| 1278 switches::kEnableTouchDragDrop, | 1277 switches::kEnableTouchDragDrop, |
| 1279 switches::kEnableTouchEditing, | 1278 switches::kEnableTouchEditing, |
| 1280 switches::kEnableUnsafeES3APIs, | 1279 switches::kEnableUnsafeES3APIs, |
| 1281 switches::kEnableViewport, | 1280 switches::kEnableViewport, |
| 1282 switches::kEnableViewportMeta, | 1281 switches::kEnableViewportMeta, |
| 1283 switches::kEnableVtune, | 1282 switches::kEnableVtune, |
| 1283 switches::kEnableWebBluetooth, |
| 1284 switches::kEnableWebGLDraftExtensions, | 1284 switches::kEnableWebGLDraftExtensions, |
| 1285 switches::kEnableWebGLImageChromium, | 1285 switches::kEnableWebGLImageChromium, |
| 1286 switches::kExplicitlyAllowedPorts, | 1286 switches::kExplicitlyAllowedPorts, |
| 1287 switches::kForceDeviceScaleFactor, | 1287 switches::kForceDeviceScaleFactor, |
| 1288 switches::kForceDisplayList2dCanvas, | 1288 switches::kForceDisplayList2dCanvas, |
| 1289 switches::kFullMemoryCrashReport, | 1289 switches::kFullMemoryCrashReport, |
| 1290 switches::kIPCConnectionTimeout, | 1290 switches::kIPCConnectionTimeout, |
| 1291 switches::kJavaScriptFlags, | 1291 switches::kJavaScriptFlags, |
| 1292 switches::kLoggingLevel, | 1292 switches::kLoggingLevel, |
| 1293 switches::kMainFrameResizesAreOrientationChanges, | 1293 switches::kMainFrameResizesAreOrientationChanges, |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 void RenderProcessHostImpl::GetAudioOutputControllers( | 2459 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2460 const GetAudioOutputControllersCallback& callback) const { | 2460 const GetAudioOutputControllersCallback& callback) const { |
| 2461 audio_renderer_host()->GetOutputControllers(callback); | 2461 audio_renderer_host()->GetOutputControllers(callback); |
| 2462 } | 2462 } |
| 2463 | 2463 |
| 2464 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2464 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2465 return bluetooth_dispatcher_host_.get(); | 2465 return bluetooth_dispatcher_host_.get(); |
| 2466 } | 2466 } |
| 2467 | 2467 |
| 2468 } // namespace content | 2468 } // namespace content |
| OLD | NEW |