| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 #include "content/browser/child_process_security_policy_impl.h" | 60 #include "content/browser/child_process_security_policy_impl.h" |
| 61 #include "content/browser/device_sensors/device_light_message_filter.h" | 61 #include "content/browser/device_sensors/device_light_message_filter.h" |
| 62 #include "content/browser/device_sensors/device_motion_message_filter.h" | 62 #include "content/browser/device_sensors/device_motion_message_filter.h" |
| 63 #include "content/browser/device_sensors/device_orientation_absolute_message_fil
ter.h" | 63 #include "content/browser/device_sensors/device_orientation_absolute_message_fil
ter.h" |
| 64 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 64 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
| 65 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 65 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 66 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 66 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 67 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 67 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 68 #include "content/browser/fileapi/fileapi_message_filter.h" | 68 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 69 #include "content/browser/frame_host/render_frame_message_filter.h" | 69 #include "content/browser/frame_host/render_frame_message_filter.h" |
| 70 #include "content/browser/geofencing/geofencing_dispatcher_host.h" | |
| 71 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 70 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
| 72 #include "content/browser/gpu/compositor_util.h" | 71 #include "content/browser/gpu/compositor_util.h" |
| 73 #include "content/browser/gpu/gpu_data_manager_impl.h" | 72 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 74 #include "content/browser/gpu/gpu_process_host.h" | 73 #include "content/browser/gpu/gpu_process_host.h" |
| 75 #include "content/browser/gpu/shader_disk_cache.h" | 74 #include "content/browser/gpu/shader_disk_cache.h" |
| 76 #include "content/browser/histogram_message_filter.h" | 75 #include "content/browser/histogram_message_filter.h" |
| 77 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 76 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 78 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 77 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 79 #include "content/browser/loader/resource_message_filter.h" | 78 #include "content/browser/loader/resource_message_filter.h" |
| 80 #include "content/browser/loader/resource_scheduler_filter.h" | 79 #include "content/browser/loader/resource_scheduler_filter.h" |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 AddFilter(new DeviceOrientationMessageFilter()); | 998 AddFilter(new DeviceOrientationMessageFilter()); |
| 1000 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); | 999 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); |
| 1001 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 1000 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 1002 AddFilter(new HistogramMessageFilter()); | 1001 AddFilter(new HistogramMessageFilter()); |
| 1003 AddFilter(new MemoryMessageFilter(this)); | 1002 AddFilter(new MemoryMessageFilter(this)); |
| 1004 AddFilter(new PushMessagingMessageFilter( | 1003 AddFilter(new PushMessagingMessageFilter( |
| 1005 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 1004 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 1006 #if defined(OS_ANDROID) | 1005 #if defined(OS_ANDROID) |
| 1007 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 1006 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 1008 #endif | 1007 #endif |
| 1009 AddFilter(new GeofencingDispatcherHost( | |
| 1010 storage_partition_impl_->GetGeofencingManager())); | |
| 1011 | 1008 |
| 1012 bool enable_web_bluetooth = | 1009 bool enable_web_bluetooth = |
| 1013 browser_command_line.HasSwitch(switches::kEnableWebBluetooth); | 1010 browser_command_line.HasSwitch(switches::kEnableWebBluetooth); |
| 1014 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) | 1011 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) |
| 1015 enable_web_bluetooth = true; | 1012 enable_web_bluetooth = true; |
| 1016 #endif | 1013 #endif |
| 1017 | 1014 |
| 1018 if (enable_web_bluetooth) { | 1015 if (enable_web_bluetooth) { |
| 1019 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 1016 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
| 1020 AddFilter(bluetooth_dispatcher_host_.get()); | 1017 AddFilter(bluetooth_dispatcher_host_.get()); |
| (...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 | 2758 |
| 2762 // Skip widgets in other processes. | 2759 // Skip widgets in other processes. |
| 2763 if (rvh->GetProcess()->GetID() != GetID()) | 2760 if (rvh->GetProcess()->GetID() != GetID()) |
| 2764 continue; | 2761 continue; |
| 2765 | 2762 |
| 2766 rvh->OnWebkitPreferencesChanged(); | 2763 rvh->OnWebkitPreferencesChanged(); |
| 2767 } | 2764 } |
| 2768 } | 2765 } |
| 2769 | 2766 |
| 2770 } // namespace content | 2767 } // namespace content |
| OLD | NEW |