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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "content/browser/child_process_security_policy_impl.h" | 48 #include "content/browser/child_process_security_policy_impl.h" |
49 #include "content/browser/device_sensors/device_light_message_filter.h" | 49 #include "content/browser/device_sensors/device_light_message_filter.h" |
50 #include "content/browser/device_sensors/device_motion_message_filter.h" | 50 #include "content/browser/device_sensors/device_motion_message_filter.h" |
51 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 51 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
52 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 52 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
53 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 53 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
54 #include "content/browser/download/mhtml_generation_manager.h" | 54 #include "content/browser/download/mhtml_generation_manager.h" |
55 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 55 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
56 #include "content/browser/fileapi/fileapi_message_filter.h" | 56 #include "content/browser/fileapi/fileapi_message_filter.h" |
57 #include "content/browser/frame_host/render_frame_message_filter.h" | 57 #include "content/browser/frame_host/render_frame_message_filter.h" |
| 58 #include "content/browser/geofencing/geofencing_dispatcher_host.h" |
58 #include "content/browser/gpu/compositor_util.h" | 59 #include "content/browser/gpu/compositor_util.h" |
59 #include "content/browser/gpu/gpu_data_manager_impl.h" | 60 #include "content/browser/gpu/gpu_data_manager_impl.h" |
60 #include "content/browser/gpu/gpu_process_host.h" | 61 #include "content/browser/gpu/gpu_process_host.h" |
61 #include "content/browser/gpu/shader_disk_cache.h" | 62 #include "content/browser/gpu/shader_disk_cache.h" |
62 #include "content/browser/histogram_message_filter.h" | 63 #include "content/browser/histogram_message_filter.h" |
63 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 64 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
64 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 65 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
65 #include "content/browser/loader/resource_message_filter.h" | 66 #include "content/browser/loader/resource_message_filter.h" |
66 #include "content/browser/loader/resource_scheduler_filter.h" | 67 #include "content/browser/loader/resource_scheduler_filter.h" |
67 #include "content/browser/media/capture/audio_mirroring_manager.h" | 68 #include "content/browser/media/capture/audio_mirroring_manager.h" |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 switches::kEnableMemoryBenchmarking)) | 886 switches::kEnableMemoryBenchmarking)) |
886 AddFilter(new MemoryBenchmarkMessageFilter()); | 887 AddFilter(new MemoryBenchmarkMessageFilter()); |
887 #endif | 888 #endif |
888 AddFilter(new VibrationMessageFilter()); | 889 AddFilter(new VibrationMessageFilter()); |
889 AddFilter(new PushMessagingMessageFilter( | 890 AddFilter(new PushMessagingMessageFilter( |
890 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 891 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
891 AddFilter(new BatteryStatusMessageFilter()); | 892 AddFilter(new BatteryStatusMessageFilter()); |
892 #if defined(OS_ANDROID) | 893 #if defined(OS_ANDROID) |
893 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 894 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
894 #endif | 895 #endif |
| 896 AddFilter(new GeofencingDispatcherHost()); |
895 } | 897 } |
896 | 898 |
897 int RenderProcessHostImpl::GetNextRoutingID() { | 899 int RenderProcessHostImpl::GetNextRoutingID() { |
898 return widget_helper_->GetNextRoutingID(); | 900 return widget_helper_->GetNextRoutingID(); |
899 } | 901 } |
900 | 902 |
901 | 903 |
902 void RenderProcessHostImpl::ResumeDeferredNavigation( | 904 void RenderProcessHostImpl::ResumeDeferredNavigation( |
903 const GlobalRequestID& request_id) { | 905 const GlobalRequestID& request_id) { |
904 widget_helper_->ResumeDeferredNavigation(request_id); | 906 widget_helper_->ResumeDeferredNavigation(request_id); |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 if (worker_ref_count_ == 0) | 2250 if (worker_ref_count_ == 0) |
2249 Cleanup(); | 2251 Cleanup(); |
2250 } | 2252 } |
2251 | 2253 |
2252 void RenderProcessHostImpl::EnsureMojoActivated() { | 2254 void RenderProcessHostImpl::EnsureMojoActivated() { |
2253 mojo_activation_required_ = true; | 2255 mojo_activation_required_ = true; |
2254 MaybeActivateMojo(); | 2256 MaybeActivateMojo(); |
2255 } | 2257 } |
2256 | 2258 |
2257 } // namespace content | 2259 } // namespace content |
OLD | NEW |