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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 #endif | 956 #endif |
956 #if defined(ENABLE_PLUGINS) | 957 #if defined(ENABLE_PLUGINS) |
957 AddFilter(new PepperRendererConnection(GetID())); | 958 AddFilter(new PepperRendererConnection(GetID())); |
958 #endif | 959 #endif |
959 AddFilter(new SpeechRecognitionDispatcherHost( | 960 AddFilter(new SpeechRecognitionDispatcherHost( |
960 GetID(), storage_partition_impl_->GetURLRequestContext())); | 961 GetID(), storage_partition_impl_->GetURLRequestContext())); |
961 AddFilter(new FileAPIMessageFilter( | 962 AddFilter(new FileAPIMessageFilter( |
962 GetID(), storage_partition_impl_->GetURLRequestContext(), | 963 GetID(), storage_partition_impl_->GetURLRequestContext(), |
963 storage_partition_impl_->GetFileSystemContext(), | 964 storage_partition_impl_->GetFileSystemContext(), |
964 blob_storage_context.get(), StreamContext::GetFor(browser_context))); | 965 blob_storage_context.get(), StreamContext::GetFor(browser_context))); |
| 966 AddFilter(new BlobDispatcherHost(blob_storage_context.get())); |
965 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 967 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
966 AddFilter(new MimeRegistryMessageFilter()); | 968 AddFilter(new MimeRegistryMessageFilter()); |
967 AddFilter( | 969 AddFilter( |
968 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 970 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
969 #if defined(OS_MACOSX) | 971 #if defined(OS_MACOSX) |
970 AddFilter(new TextInputClientMessageFilter(GetID())); | 972 AddFilter(new TextInputClientMessageFilter(GetID())); |
971 #elif defined(OS_WIN) | 973 #elif defined(OS_WIN) |
972 AddFilter(new DWriteFontProxyMessageFilter()); | 974 AddFilter(new DWriteFontProxyMessageFilter()); |
973 | 975 |
974 // The FontCacheDispatcher is required only when we're using GDI rendering. | 976 // The FontCacheDispatcher is required only when we're using GDI rendering. |
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 | 2797 |
2796 // Skip widgets in other processes. | 2798 // Skip widgets in other processes. |
2797 if (rvh->GetProcess()->GetID() != GetID()) | 2799 if (rvh->GetProcess()->GetID() != GetID()) |
2798 continue; | 2800 continue; |
2799 | 2801 |
2800 rvh->OnWebkitPreferencesChanged(); | 2802 rvh->OnWebkitPreferencesChanged(); |
2801 } | 2803 } |
2802 } | 2804 } |
2803 | 2805 |
2804 } // namespace content | 2806 } // namespace content |
OLD | NEW |