| 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 25 matching lines...) Expand all Loading... |
| 36 #include "base/threading/thread_restrictions.h" | 36 #include "base/threading/thread_restrictions.h" |
| 37 #include "base/trace_event/trace_event.h" | 37 #include "base/trace_event/trace_event.h" |
| 38 #include "base/tracked_objects.h" | 38 #include "base/tracked_objects.h" |
| 39 #include "cc/base/switches.h" | 39 #include "cc/base/switches.h" |
| 40 #include "components/scheduler/common/scheduler_switches.h" | 40 #include "components/scheduler/common/scheduler_switches.h" |
| 41 #include "components/tracing/tracing_switches.h" | 41 #include "components/tracing/tracing_switches.h" |
| 42 #include "content/browser/appcache/appcache_dispatcher_host.h" | 42 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 43 #include "content/browser/appcache/chrome_appcache_service.h" | 43 #include "content/browser/appcache/chrome_appcache_service.h" |
| 44 #include "content/browser/background_sync/background_sync_service_impl.h" | 44 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 45 #include "content/browser/bad_message.h" | 45 #include "content/browser/bad_message.h" |
| 46 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 46 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" | 47 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
| 47 #include "content/browser/browser_child_process_host_impl.h" | 48 #include "content/browser/browser_child_process_host_impl.h" |
| 48 #include "content/browser/browser_main.h" | 49 #include "content/browser/browser_main.h" |
| 49 #include "content/browser/browser_main_loop.h" | 50 #include "content/browser/browser_main_loop.h" |
| 50 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 51 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| 51 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 52 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 52 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" | 53 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" |
| 53 #include "content/browser/child_process_security_policy_impl.h" | 54 #include "content/browser/child_process_security_policy_impl.h" |
| 54 #include "content/browser/device_sensors/device_light_message_filter.h" | 55 #include "content/browser/device_sensors/device_light_message_filter.h" |
| 55 #include "content/browser/device_sensors/device_motion_message_filter.h" | 56 #include "content/browser/device_sensors/device_motion_message_filter.h" |
| (...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 #if defined(ENABLE_PLUGINS) | 924 #if defined(ENABLE_PLUGINS) |
| 924 AddFilter(new PepperRendererConnection(GetID())); | 925 AddFilter(new PepperRendererConnection(GetID())); |
| 925 #endif | 926 #endif |
| 926 AddFilter(new SpeechRecognitionDispatcherHost( | 927 AddFilter(new SpeechRecognitionDispatcherHost( |
| 927 GetID(), storage_partition_impl_->GetURLRequestContext())); | 928 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 928 AddFilter(new FileAPIMessageFilter( | 929 AddFilter(new FileAPIMessageFilter( |
| 929 GetID(), storage_partition_impl_->GetURLRequestContext(), | 930 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 930 storage_partition_impl_->GetFileSystemContext(), | 931 storage_partition_impl_->GetFileSystemContext(), |
| 931 ChromeBlobStorageContext::GetFor(browser_context), | 932 ChromeBlobStorageContext::GetFor(browser_context), |
| 932 StreamContext::GetFor(browser_context))); | 933 StreamContext::GetFor(browser_context))); |
| 934 AddFilter(new BlobDispatcherHost( |
| 935 GetID(), ChromeBlobStorageContext::GetFor(browser_context))); |
| 933 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 936 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 934 AddFilter(new MimeRegistryMessageFilter()); | 937 AddFilter(new MimeRegistryMessageFilter()); |
| 935 AddFilter( | 938 AddFilter( |
| 936 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 939 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
| 937 #if defined(OS_MACOSX) | 940 #if defined(OS_MACOSX) |
| 938 AddFilter(new TextInputClientMessageFilter(GetID())); | 941 AddFilter(new TextInputClientMessageFilter(GetID())); |
| 939 #elif defined(OS_WIN) | 942 #elif defined(OS_WIN) |
| 940 // The FontCacheDispatcher is required only when we're using GDI rendering. | 943 // The FontCacheDispatcher is required only when we're using GDI rendering. |
| 941 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 944 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
| 942 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This | 945 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This |
| (...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2663 void RenderProcessHostImpl::GetAudioOutputControllers( | 2666 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2664 const GetAudioOutputControllersCallback& callback) const { | 2667 const GetAudioOutputControllersCallback& callback) const { |
| 2665 audio_renderer_host()->GetOutputControllers(callback); | 2668 audio_renderer_host()->GetOutputControllers(callback); |
| 2666 } | 2669 } |
| 2667 | 2670 |
| 2668 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { | 2671 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { |
| 2669 return bluetooth_dispatcher_host_.get(); | 2672 return bluetooth_dispatcher_host_.get(); |
| 2670 } | 2673 } |
| 2671 | 2674 |
| 2672 } // namespace content | 2675 } // namespace content |
| OLD | NEW |