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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 #include "content/browser/gpu/gpu_process_host.h" | 66 #include "content/browser/gpu/gpu_process_host.h" |
67 #include "content/browser/gpu/shader_disk_cache.h" | 67 #include "content/browser/gpu/shader_disk_cache.h" |
68 #include "content/browser/histogram_message_filter.h" | 68 #include "content/browser/histogram_message_filter.h" |
69 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 69 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
70 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 70 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
71 #include "content/browser/loader/resource_message_filter.h" | 71 #include "content/browser/loader/resource_message_filter.h" |
72 #include "content/browser/loader/resource_scheduler_filter.h" | 72 #include "content/browser/loader/resource_scheduler_filter.h" |
73 #include "content/browser/media/capture/audio_mirroring_manager.h" | 73 #include "content/browser/media/capture/audio_mirroring_manager.h" |
74 #include "content/browser/media/media_internals.h" | 74 #include "content/browser/media/media_internals.h" |
75 #include "content/browser/media/midi_host.h" | 75 #include "content/browser/media/midi_host.h" |
| 76 #include "content/browser/memory/memory_message_filter.h" |
76 #include "content/browser/message_port_message_filter.h" | 77 #include "content/browser/message_port_message_filter.h" |
77 #include "content/browser/mime_registry_message_filter.h" | 78 #include "content/browser/mime_registry_message_filter.h" |
78 #include "content/browser/mojo/mojo_application_host.h" | 79 #include "content/browser/mojo/mojo_application_host.h" |
79 #include "content/browser/navigator_connect/service_port_service_impl.h" | 80 #include "content/browser/navigator_connect/service_port_service_impl.h" |
80 #include "content/browser/notifications/notification_message_filter.h" | 81 #include "content/browser/notifications/notification_message_filter.h" |
81 #include "content/browser/permissions/permission_service_context.h" | 82 #include "content/browser/permissions/permission_service_context.h" |
82 #include "content/browser/permissions/permission_service_impl.h" | 83 #include "content/browser/permissions/permission_service_impl.h" |
83 #include "content/browser/profiler_message_filter.h" | 84 #include "content/browser/profiler_message_filter.h" |
84 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 85 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
85 #include "content/browser/quota_dispatcher_host.h" | 86 #include "content/browser/quota_dispatcher_host.h" |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 AddFilter(new GamepadBrowserMessageFilter()); | 954 AddFilter(new GamepadBrowserMessageFilter()); |
954 AddFilter(new DeviceLightMessageFilter()); | 955 AddFilter(new DeviceLightMessageFilter()); |
955 AddFilter(new DeviceMotionMessageFilter()); | 956 AddFilter(new DeviceMotionMessageFilter()); |
956 AddFilter(new DeviceOrientationMessageFilter()); | 957 AddFilter(new DeviceOrientationMessageFilter()); |
957 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 958 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
958 AddFilter(new HistogramMessageFilter()); | 959 AddFilter(new HistogramMessageFilter()); |
959 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 960 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
960 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 961 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
961 AddFilter(new MemoryBenchmarkMessageFilter()); | 962 AddFilter(new MemoryBenchmarkMessageFilter()); |
962 #endif | 963 #endif |
| 964 AddFilter(new MemoryMessageFilter()); |
963 AddFilter(new PushMessagingMessageFilter( | 965 AddFilter(new PushMessagingMessageFilter( |
964 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 966 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
965 #if defined(OS_ANDROID) | 967 #if defined(OS_ANDROID) |
966 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 968 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
967 #endif | 969 #endif |
968 AddFilter(new GeofencingDispatcherHost( | 970 AddFilter(new GeofencingDispatcherHost( |
969 storage_partition_impl_->GetGeofencingManager())); | 971 storage_partition_impl_->GetGeofencingManager())); |
970 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 972 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
971 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 973 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
972 AddFilter(bluetooth_dispatcher_host_.get()); | 974 AddFilter(bluetooth_dispatcher_host_.get()); |
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 void RenderProcessHostImpl::GetAudioOutputControllers( | 2560 void RenderProcessHostImpl::GetAudioOutputControllers( |
2559 const GetAudioOutputControllersCallback& callback) const { | 2561 const GetAudioOutputControllersCallback& callback) const { |
2560 audio_renderer_host()->GetOutputControllers(callback); | 2562 audio_renderer_host()->GetOutputControllers(callback); |
2561 } | 2563 } |
2562 | 2564 |
2563 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2565 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
2564 return bluetooth_dispatcher_host_.get(); | 2566 return bluetooth_dispatcher_host_.get(); |
2565 } | 2567 } |
2566 | 2568 |
2567 } // namespace content | 2569 } // namespace content |
OLD | NEW |