| OLD | NEW |
| 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1047 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1047 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 1048 #if defined(OS_ANDROID) | 1048 #if defined(OS_ANDROID) |
| 1049 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1049 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1050 #endif | 1050 #endif |
| 1051 AddFilter(new GeofencingDispatcherHost( | 1051 AddFilter(new GeofencingDispatcherHost( |
| 1052 storage_partition_impl_->GetGeofencingManager())); | 1052 storage_partition_impl_->GetGeofencingManager())); |
| 1053 | 1053 |
| 1054 bool enable_web_bluetooth = | 1054 bool enable_web_bluetooth = |
| 1055 browser_command_line.HasSwitch(switches::kEnableWebBluetooth); | 1055 browser_command_line.HasSwitch(switches::kEnableWebBluetooth); |
| 1056 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 1056 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
| 1057 // TODO(https://crbug.com/584113) Enable Web Bluetooth Experiment. | 1057 enable_web_bluetooth = true; |
| 1058 // enable_web_bluetooth = true; | |
| 1059 #endif | 1058 #endif |
| 1060 | 1059 |
| 1061 if (enable_web_bluetooth) { | 1060 if (enable_web_bluetooth) { |
| 1062 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1061 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
| 1063 AddFilter(bluetooth_dispatcher_host_.get()); | 1062 AddFilter(bluetooth_dispatcher_host_.get()); |
| 1064 } | 1063 } |
| 1065 } | 1064 } |
| 1066 | 1065 |
| 1067 void RenderProcessHostImpl::RegisterMojoServices() { | 1066 void RenderProcessHostImpl::RegisterMojoServices() { |
| 1068 #if !defined(OS_ANDROID) | 1067 #if !defined(OS_ANDROID) |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 | 2791 |
| 2793 // Skip widgets in other processes. | 2792 // Skip widgets in other processes. |
| 2794 if (rvh->GetProcess()->GetID() != GetID()) | 2793 if (rvh->GetProcess()->GetID() != GetID()) |
| 2795 continue; | 2794 continue; |
| 2796 | 2795 |
| 2797 rvh->OnWebkitPreferencesChanged(); | 2796 rvh->OnWebkitPreferencesChanged(); |
| 2798 } | 2797 } |
| 2799 } | 2798 } |
| 2800 | 2799 |
| 2801 } // namespace content | 2800 } // namespace content |
| OLD | NEW |