From 2aba99da8333d9fe2df2b1bea3bbd0cef5ed5079 Mon Sep 17 00:00:00 2001 From: "tzik@chromium.org" Date: Wed, 29 Feb 2012 08:13:32 +0000 Subject: Merge BlobMessageFilter and FileSystemDispatcherHost into FileAndBlobMessageFilter. So that we can handle files and blobs in a unified way. BUG=115603 TEST="existing tests should pass" Review URL: http://codereview.chromium.org/9514010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124152 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/renderer_host/render_process_host_impl.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'content/browser/renderer_host/render_process_host_impl.cc') diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc index 90dc78d..2717a4e 100644 --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc @@ -46,7 +46,7 @@ #include "content/browser/chrome_blob_storage_context.h" #include "content/browser/device_orientation/message_filter.h" #include "content/browser/download/mhtml_generation_manager.h" -#include "content/browser/file_system/file_system_dispatcher_host.h" +#include "content/browser/file_system/file_and_blob_message_filter.h" #include "content/browser/geolocation/geolocation_dispatcher_host.h" #include "content/browser/gpu/gpu_data_manager_impl.h" #include "content/browser/gpu/gpu_process_host.h" @@ -57,7 +57,6 @@ #include "content/browser/mime_registry_message_filter.h" #include "content/browser/plugin_service_impl.h" #include "content/browser/profiler_message_filter.h" -#include "content/browser/renderer_host/blob_message_filter.h" #include "content/browser/renderer_host/clipboard_message_filter.h" #include "content/browser/renderer_host/database_message_filter.h" #include "content/browser/renderer_host/file_utilities_message_filter.h" @@ -500,13 +499,12 @@ void RenderProcessHostImpl::CreateMessageFilters() { browser_context->GetSpeechInputPreferences(), content::BrowserMainLoop::GetAudioManager())); #endif - channel_->AddFilter(new FileSystemDispatcherHost( + channel_->AddFilter(new FileAndBlobMessageFilter( + GetID(), browser_context->GetRequestContext(), BrowserContext::GetFileSystemContext(browser_context), ChromeBlobStorageContext::GetFor(browser_context))); channel_->AddFilter(new device_orientation::MessageFilter()); - channel_->AddFilter(new BlobMessageFilter(GetID(), - ChromeBlobStorageContext::GetFor(browser_context))); channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); channel_->AddFilter(new MimeRegistryMessageFilter()); channel_->AddFilter(new DatabaseMessageFilter( -- cgit v1.1