| 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 AddFilter(new BluetoothDispatcherHost()); | 935 AddFilter(new BluetoothDispatcherHost()); |
| 937 } | 936 } |
| 938 } | 937 } |
| 939 | 938 |
| 940 void RenderProcessHostImpl::RegisterMojoServices() { | 939 void RenderProcessHostImpl::RegisterMojoServices() { |
| 941 mojo_application_host_->service_registry()->AddService( | 940 mojo_application_host_->service_registry()->AddService( |
| 942 base::Bind(&device::BatteryMonitorImpl::Create)); | 941 base::Bind(&device::BatteryMonitorImpl::Create)); |
| 943 | 942 |
| 944 mojo_application_host_->service_registry()->AddService( | 943 mojo_application_host_->service_registry()->AddService( |
| 945 base::Bind(&device::VibrationManagerImpl::Create)); | 944 base::Bind(&device::VibrationManagerImpl::Create)); |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 switches::kEnableStaleWhileRevalidate, | 1278 switches::kEnableStaleWhileRevalidate, |
| 1280 switches::kEnableStatsTable, | 1279 switches::kEnableStatsTable, |
| 1281 switches::kEnableStrictSiteIsolation, | 1280 switches::kEnableStrictSiteIsolation, |
| 1282 switches::kEnableThreadedCompositing, | 1281 switches::kEnableThreadedCompositing, |
| 1283 switches::kEnableTouchDragDrop, | 1282 switches::kEnableTouchDragDrop, |
| 1284 switches::kEnableTouchEditing, | 1283 switches::kEnableTouchEditing, |
| 1285 switches::kEnableUnsafeES3APIs, | 1284 switches::kEnableUnsafeES3APIs, |
| 1286 switches::kEnableViewport, | 1285 switches::kEnableViewport, |
| 1287 switches::kEnableViewportMeta, | 1286 switches::kEnableViewportMeta, |
| 1288 switches::kEnableVtune, | 1287 switches::kEnableVtune, |
| 1288 switches::kEnableWebBluetooth, |
| 1289 switches::kEnableWebGLDraftExtensions, | 1289 switches::kEnableWebGLDraftExtensions, |
| 1290 switches::kEnableWebGLImageChromium, | 1290 switches::kEnableWebGLImageChromium, |
| 1291 switches::kExplicitlyAllowedPorts, | 1291 switches::kExplicitlyAllowedPorts, |
| 1292 switches::kForceDeviceScaleFactor, | 1292 switches::kForceDeviceScaleFactor, |
| 1293 switches::kForceDisplayList2dCanvas, | 1293 switches::kForceDisplayList2dCanvas, |
| 1294 switches::kFullMemoryCrashReport, | 1294 switches::kFullMemoryCrashReport, |
| 1295 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, | 1295 switches::kIgnoreResolutionLimitsForAcceleratedVideoDecode, |
| 1296 switches::kIPCConnectionTimeout, | 1296 switches::kIPCConnectionTimeout, |
| 1297 switches::kJavaScriptFlags, | 1297 switches::kJavaScriptFlags, |
| 1298 switches::kLoggingLevel, | 1298 switches::kLoggingLevel, |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2459 if (worker_ref_count_ == 0) | 2459 if (worker_ref_count_ == 0) |
| 2460 Cleanup(); | 2460 Cleanup(); |
| 2461 } | 2461 } |
| 2462 | 2462 |
| 2463 void RenderProcessHostImpl::GetAudioOutputControllers( | 2463 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2464 const GetAudioOutputControllersCallback& callback) const { | 2464 const GetAudioOutputControllersCallback& callback) const { |
| 2465 audio_renderer_host()->GetOutputControllers(callback); | 2465 audio_renderer_host()->GetOutputControllers(callback); |
| 2466 } | 2466 } |
| 2467 | 2467 |
| 2468 } // namespace content | 2468 } // namespace content |
| OLD | NEW |