| 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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 AddFilter(new GamepadBrowserMessageFilter()); | 949 AddFilter(new GamepadBrowserMessageFilter()); |
| 949 AddFilter(new DeviceLightMessageFilter()); | 950 AddFilter(new DeviceLightMessageFilter()); |
| 950 AddFilter(new DeviceMotionMessageFilter()); | 951 AddFilter(new DeviceMotionMessageFilter()); |
| 951 AddFilter(new DeviceOrientationMessageFilter()); | 952 AddFilter(new DeviceOrientationMessageFilter()); |
| 952 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 953 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 953 AddFilter(new HistogramMessageFilter()); | 954 AddFilter(new HistogramMessageFilter()); |
| 954 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 955 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 955 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) | 956 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) |
| 956 AddFilter(new MemoryBenchmarkMessageFilter()); | 957 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 957 #endif | 958 #endif |
| 959 AddFilter(new memory::MemoryMessageFilter()); |
| 958 AddFilter(new PushMessagingMessageFilter( | 960 AddFilter(new PushMessagingMessageFilter( |
| 959 GetID(), storage_partition_impl_->GetServiceWorkerContext())); | 961 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 960 #if defined(OS_ANDROID) | 962 #if defined(OS_ANDROID) |
| 961 AddFilter(new ScreenOrientationMessageFilterAndroid()); | 963 AddFilter(new ScreenOrientationMessageFilterAndroid()); |
| 962 #endif | 964 #endif |
| 963 AddFilter(new GeofencingDispatcherHost( | 965 AddFilter(new GeofencingDispatcherHost( |
| 964 storage_partition_impl_->GetGeofencingManager())); | 966 storage_partition_impl_->GetGeofencingManager())); |
| 965 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { | 967 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { |
| 966 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); | 968 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); |
| 967 AddFilter(bluetooth_dispatcher_host_.get()); | 969 AddFilter(bluetooth_dispatcher_host_.get()); |
| (...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 void RenderProcessHostImpl::GetAudioOutputControllers( | 2581 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2580 const GetAudioOutputControllersCallback& callback) const { | 2582 const GetAudioOutputControllersCallback& callback) const { |
| 2581 audio_renderer_host()->GetOutputControllers(callback); | 2583 audio_renderer_host()->GetOutputControllers(callback); |
| 2582 } | 2584 } |
| 2583 | 2585 |
| 2584 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2586 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2585 return bluetooth_dispatcher_host_.get(); | 2587 return bluetooth_dispatcher_host_.get(); |
| 2586 } | 2588 } |
| 2587 | 2589 |
| 2588 } // namespace content | 2590 } // namespace content |
| OLD | NEW |