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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 #endif | 957 #endif |
957 #if defined(ENABLE_PLUGINS) | 958 #if defined(ENABLE_PLUGINS) |
958 AddFilter(new PepperRendererConnection(GetID())); | 959 AddFilter(new PepperRendererConnection(GetID())); |
959 #endif | 960 #endif |
960 AddFilter(new SpeechRecognitionDispatcherHost( | 961 AddFilter(new SpeechRecognitionDispatcherHost( |
961 GetID(), storage_partition_impl_->GetURLRequestContext())); | 962 GetID(), storage_partition_impl_->GetURLRequestContext())); |
962 AddFilter(new FileAPIMessageFilter( | 963 AddFilter(new FileAPIMessageFilter( |
963 GetID(), storage_partition_impl_->GetURLRequestContext(), | 964 GetID(), storage_partition_impl_->GetURLRequestContext(), |
964 storage_partition_impl_->GetFileSystemContext(), | 965 storage_partition_impl_->GetFileSystemContext(), |
965 blob_storage_context.get(), StreamContext::GetFor(browser_context))); | 966 blob_storage_context.get(), StreamContext::GetFor(browser_context))); |
| 967 AddFilter(new BlobDispatcherHost(blob_storage_context.get())); |
966 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 968 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
967 AddFilter(new MimeRegistryMessageFilter()); | 969 AddFilter(new MimeRegistryMessageFilter()); |
968 AddFilter( | 970 AddFilter( |
969 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 971 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
970 #if defined(OS_MACOSX) | 972 #if defined(OS_MACOSX) |
971 AddFilter(new TextInputClientMessageFilter(GetID())); | 973 AddFilter(new TextInputClientMessageFilter(GetID())); |
972 #elif defined(OS_WIN) | 974 #elif defined(OS_WIN) |
973 AddFilter(new DWriteFontProxyMessageFilter()); | 975 AddFilter(new DWriteFontProxyMessageFilter()); |
974 | 976 |
975 // The FontCacheDispatcher is required only when we're using GDI rendering. | 977 // The FontCacheDispatcher is required only when we're using GDI rendering. |
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2819 | 2821 |
2820 // Skip widgets in other processes. | 2822 // Skip widgets in other processes. |
2821 if (rvh->GetProcess()->GetID() != GetID()) | 2823 if (rvh->GetProcess()->GetID() != GetID()) |
2822 continue; | 2824 continue; |
2823 | 2825 |
2824 rvh->OnWebkitPreferencesChanged(); | 2826 rvh->OnWebkitPreferencesChanged(); |
2825 } | 2827 } |
2826 } | 2828 } |
2827 | 2829 |
2828 } // namespace content | 2830 } // namespace content |
OLD | NEW |