Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: Added ChildProcess Ref Counting Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 #endif 951 #endif
951 #if defined(ENABLE_PLUGINS) 952 #if defined(ENABLE_PLUGINS)
952 AddFilter(new PepperRendererConnection(GetID())); 953 AddFilter(new PepperRendererConnection(GetID()));
953 #endif 954 #endif
954 AddFilter(new SpeechRecognitionDispatcherHost( 955 AddFilter(new SpeechRecognitionDispatcherHost(
955 GetID(), storage_partition_impl_->GetURLRequestContext())); 956 GetID(), storage_partition_impl_->GetURLRequestContext()));
956 AddFilter(new FileAPIMessageFilter( 957 AddFilter(new FileAPIMessageFilter(
957 GetID(), storage_partition_impl_->GetURLRequestContext(), 958 GetID(), storage_partition_impl_->GetURLRequestContext(),
958 storage_partition_impl_->GetFileSystemContext(), 959 storage_partition_impl_->GetFileSystemContext(),
959 blob_storage_context.get(), StreamContext::GetFor(browser_context))); 960 blob_storage_context.get(), StreamContext::GetFor(browser_context)));
961 AddFilter(new BlobDispatcherHost(blob_storage_context.get()));
960 AddFilter(new FileUtilitiesMessageFilter(GetID())); 962 AddFilter(new FileUtilitiesMessageFilter(GetID()));
961 AddFilter(new MimeRegistryMessageFilter()); 963 AddFilter(new MimeRegistryMessageFilter());
962 AddFilter( 964 AddFilter(
963 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); 965 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
964 #if defined(OS_MACOSX) 966 #if defined(OS_MACOSX)
965 AddFilter(new TextInputClientMessageFilter(GetID())); 967 AddFilter(new TextInputClientMessageFilter(GetID()));
966 #elif defined(OS_WIN) 968 #elif defined(OS_WIN)
967 AddFilter(new DWriteFontProxyMessageFilter()); 969 AddFilter(new DWriteFontProxyMessageFilter());
968 970
969 // The FontCacheDispatcher is required only when we're using GDI rendering. 971 // The FontCacheDispatcher is required only when we're using GDI rendering.
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2803 2805
2804 // Skip widgets in other processes. 2806 // Skip widgets in other processes.
2805 if (rvh->GetProcess()->GetID() != GetID()) 2807 if (rvh->GetProcess()->GetID() != GetID())
2806 continue; 2808 continue;
2807 2809
2808 rvh->OnWebkitPreferencesChanged(); 2810 rvh->OnWebkitPreferencesChanged();
2809 } 2811 }
2810 } 2812 }
2811 2813
2812 } // namespace content 2814 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698