| 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 27 matching lines...) Expand all Loading... |
| 38 #include "base/trace_event/trace_event.h" | 38 #include "base/trace_event/trace_event.h" |
| 39 #include "base/tracked_objects.h" | 39 #include "base/tracked_objects.h" |
| 40 #include "build/build_config.h" | 40 #include "build/build_config.h" |
| 41 #include "cc/base/switches.h" | 41 #include "cc/base/switches.h" |
| 42 #include "components/scheduler/common/scheduler_switches.h" | 42 #include "components/scheduler/common/scheduler_switches.h" |
| 43 #include "components/tracing/tracing_switches.h" | 43 #include "components/tracing/tracing_switches.h" |
| 44 #include "content/browser/appcache/appcache_dispatcher_host.h" | 44 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 45 #include "content/browser/appcache/chrome_appcache_service.h" | 45 #include "content/browser/appcache/chrome_appcache_service.h" |
| 46 #include "content/browser/background_sync/background_sync_service_impl.h" | 46 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 47 #include "content/browser/bad_message.h" | 47 #include "content/browser/bad_message.h" |
| 48 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 48 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" | 49 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
| 49 #include "content/browser/browser_child_process_host_impl.h" | 50 #include "content/browser/browser_child_process_host_impl.h" |
| 50 #include "content/browser/browser_main.h" | 51 #include "content/browser/browser_main.h" |
| 51 #include "content/browser/browser_main_loop.h" | 52 #include "content/browser/browser_main_loop.h" |
| 52 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 53 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| 53 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 54 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 54 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" | 55 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" |
| 55 #include "content/browser/child_process_security_policy_impl.h" | 56 #include "content/browser/child_process_security_policy_impl.h" |
| 56 #include "content/browser/device_sensors/device_light_message_filter.h" | 57 #include "content/browser/device_sensors/device_light_message_filter.h" |
| 57 #include "content/browser/device_sensors/device_motion_message_filter.h" | 58 #include "content/browser/device_sensors/device_motion_message_filter.h" |
| (...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 #if defined(ENABLE_PLUGINS) | 953 #if defined(ENABLE_PLUGINS) |
| 953 AddFilter(new PepperRendererConnection(GetID())); | 954 AddFilter(new PepperRendererConnection(GetID())); |
| 954 #endif | 955 #endif |
| 955 AddFilter(new SpeechRecognitionDispatcherHost( | 956 AddFilter(new SpeechRecognitionDispatcherHost( |
| 956 GetID(), storage_partition_impl_->GetURLRequestContext())); | 957 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 957 AddFilter(new FileAPIMessageFilter( | 958 AddFilter(new FileAPIMessageFilter( |
| 958 GetID(), storage_partition_impl_->GetURLRequestContext(), | 959 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 959 storage_partition_impl_->GetFileSystemContext(), | 960 storage_partition_impl_->GetFileSystemContext(), |
| 960 ChromeBlobStorageContext::GetFor(browser_context), | 961 ChromeBlobStorageContext::GetFor(browser_context), |
| 961 StreamContext::GetFor(browser_context))); | 962 StreamContext::GetFor(browser_context))); |
| 963 AddFilter(new BlobDispatcherHost( |
| 964 ChromeBlobStorageContext::GetFor(browser_context))); |
| 962 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 965 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 963 AddFilter(new MimeRegistryMessageFilter()); | 966 AddFilter(new MimeRegistryMessageFilter()); |
| 964 AddFilter( | 967 AddFilter( |
| 965 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 968 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
| 966 #if defined(OS_MACOSX) | 969 #if defined(OS_MACOSX) |
| 967 AddFilter(new TextInputClientMessageFilter(GetID())); | 970 AddFilter(new TextInputClientMessageFilter(GetID())); |
| 968 #elif defined(OS_WIN) | 971 #elif defined(OS_WIN) |
| 969 AddFilter(new DWriteFontProxyMessageFilter()); | 972 AddFilter(new DWriteFontProxyMessageFilter()); |
| 970 | 973 |
| 971 // The FontCacheDispatcher is required only when we're using GDI rendering. | 974 // The FontCacheDispatcher is required only when we're using GDI rendering. |
| (...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2800 void RenderProcessHostImpl::GetAudioOutputControllers( | 2803 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2801 const GetAudioOutputControllersCallback& callback) const { | 2804 const GetAudioOutputControllersCallback& callback) const { |
| 2802 audio_renderer_host()->GetOutputControllers(callback); | 2805 audio_renderer_host()->GetOutputControllers(callback); |
| 2803 } | 2806 } |
| 2804 | 2807 |
| 2805 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2808 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2806 return bluetooth_dispatcher_host_.get(); | 2809 return bluetooth_dispatcher_host_.get(); |
| 2807 } | 2810 } |
| 2808 | 2811 |
| 2809 } // namespace content | 2812 } // namespace content |
| OLD | NEW |