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/browser_plugin/browser_plugin_message_filter.h" | 48 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
49 #include "content/browser/child_process_security_policy_impl.h" | 49 #include "content/browser/child_process_security_policy_impl.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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 switches::kEnableMemoryBenchmarking)) | 894 switches::kEnableMemoryBenchmarking)) |
894 AddFilter(new MemoryBenchmarkMessageFilter()); | 895 AddFilter(new MemoryBenchmarkMessageFilter()); |
895 #endif | 896 #endif |
896 AddFilter(new VibrationMessageFilter()); | 897 AddFilter(new VibrationMessageFilter()); |
897 AddFilter(new PushMessagingMessageFilter( | 898 AddFilter(new PushMessagingMessageFilter( |
898 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 899 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
899 AddFilter(new BatteryStatusMessageFilter()); | 900 AddFilter(new BatteryStatusMessageFilter()); |
900 #if defined(OS_ANDROID) | 901 #if defined(OS_ANDROID) |
901 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 902 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
902 #endif | 903 #endif |
| 904 AddFilter(new GeofencingDispatcherHost()); |
903 } | 905 } |
904 | 906 |
905 int RenderProcessHostImpl::GetNextRoutingID() { | 907 int RenderProcessHostImpl::GetNextRoutingID() { |
906 return widget_helper_->GetNextRoutingID(); | 908 return widget_helper_->GetNextRoutingID(); |
907 } | 909 } |
908 | 910 |
909 | 911 |
910 void RenderProcessHostImpl::ResumeDeferredNavigation( | 912 void RenderProcessHostImpl::ResumeDeferredNavigation( |
911 const GlobalRequestID& request_id) { | 913 const GlobalRequestID& request_id) { |
912 widget_helper_->ResumeDeferredNavigation(request_id); | 914 widget_helper_->ResumeDeferredNavigation(request_id); |
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2365 } | 2367 } |
2366 | 2368 |
2367 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( | 2369 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( |
2368 gfx::GpuMemoryBufferType type, | 2370 gfx::GpuMemoryBufferType type, |
2369 const gfx::GpuMemoryBufferId& id) { | 2371 const gfx::GpuMemoryBufferId& id) { |
2370 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2372 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2371 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); | 2373 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); |
2372 } | 2374 } |
2373 | 2375 |
2374 } // namespace content | 2376 } // namespace content |
OLD | NEW |