| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| 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_motion_message_filter.h" | 49 #include "content/browser/device_sensors/device_motion_message_filter.h" |
| 50 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 50 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
| 51 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 51 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 52 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 52 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 53 #include "content/browser/download/mhtml_generation_manager.h" | 53 #include "content/browser/download/mhtml_generation_manager.h" |
| 54 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 54 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 55 #include "content/browser/fileapi/fileapi_message_filter.h" | 55 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 56 #include "content/browser/frame_host/render_frame_message_filter.h" | 56 #include "content/browser/frame_host/render_frame_message_filter.h" |
| 57 #include "content/browser/geofencing/geofencing_dispatcher_host.h" |
| 57 #include "content/browser/gpu/compositor_util.h" | 58 #include "content/browser/gpu/compositor_util.h" |
| 58 #include "content/browser/gpu/gpu_data_manager_impl.h" | 59 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 59 #include "content/browser/gpu/gpu_process_host.h" | 60 #include "content/browser/gpu/gpu_process_host.h" |
| 60 #include "content/browser/gpu/shader_disk_cache.h" | 61 #include "content/browser/gpu/shader_disk_cache.h" |
| 61 #include "content/browser/histogram_message_filter.h" | 62 #include "content/browser/histogram_message_filter.h" |
| 62 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 63 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 63 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 64 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 64 #include "content/browser/loader/resource_message_filter.h" | 65 #include "content/browser/loader/resource_message_filter.h" |
| 65 #include "content/browser/loader/resource_scheduler_filter.h" | 66 #include "content/browser/loader/resource_scheduler_filter.h" |
| 66 #include "content/browser/media/capture/audio_mirroring_manager.h" | 67 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 switches::kEnableMemoryBenchmarking)) | 868 switches::kEnableMemoryBenchmarking)) |
| 868 AddFilter(new MemoryBenchmarkMessageFilter()); | 869 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 869 #endif | 870 #endif |
| 870 AddFilter(new VibrationMessageFilter()); | 871 AddFilter(new VibrationMessageFilter()); |
| 871 AddFilter(new PushMessagingMessageFilter( | 872 AddFilter(new PushMessagingMessageFilter( |
| 872 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 873 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 873 AddFilter(new BatteryStatusMessageFilter()); | 874 AddFilter(new BatteryStatusMessageFilter()); |
| 874 #if defined(OS_ANDROID) | 875 #if defined(OS_ANDROID) |
| 875 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 876 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 876 #endif | 877 #endif |
| 878 AddFilter(new GeofencingDispatcherHost()); |
| 877 } | 879 } |
| 878 | 880 |
| 879 int RenderProcessHostImpl::GetNextRoutingID() { | 881 int RenderProcessHostImpl::GetNextRoutingID() { |
| 880 return widget_helper_->GetNextRoutingID(); | 882 return widget_helper_->GetNextRoutingID(); |
| 881 } | 883 } |
| 882 | 884 |
| 883 | 885 |
| 884 void RenderProcessHostImpl::ResumeDeferredNavigation( | 886 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 885 const GlobalRequestID& request_id) { | 887 const GlobalRequestID& request_id) { |
| 886 widget_helper_->ResumeDeferredNavigation(request_id); | 888 widget_helper_->ResumeDeferredNavigation(request_id); |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2225 if (worker_ref_count_ == 0) | 2227 if (worker_ref_count_ == 0) |
| 2226 Cleanup(); | 2228 Cleanup(); |
| 2227 } | 2229 } |
| 2228 | 2230 |
| 2229 void RenderProcessHostImpl::EnsureMojoActivated() { | 2231 void RenderProcessHostImpl::EnsureMojoActivated() { |
| 2230 mojo_activation_required_ = true; | 2232 mojo_activation_required_ = true; |
| 2231 MaybeActivateMojo(); | 2233 MaybeActivateMojo(); |
| 2232 } | 2234 } |
| 2233 | 2235 |
| 2234 } // namespace content | 2236 } // namespace content |
| OLD | NEW |