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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fixes [builds, untested] Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: 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 07b62136020de5fa1de6b82357c7932892d87802..037a440cfc3dcb79daf22ec703dc9923596b1bd5 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -597,9 +597,20 @@ void RenderProcessHostImpl::CreateMessageFilters() {
channel_->AddFilter(new DOMStorageMessageFilter(
GetID(),
storage_partition_impl_->GetDOMStorageContext()));
+ {
+ FileAPIMessageFilter* file_api_message_filter = new FileAPIMessageFilter(
+ GetID(),
+ storage_partition_impl_->GetURLRequestContext(),
+ storage_partition_impl_->GetFileSystemContext(),
+ ChromeBlobStorageContext::GetFor(browser_context),
+ StreamContext::GetFor(browser_context));
+ channel_->AddFilter(file_api_message_filter);
channel_->AddFilter(new IndexedDBDispatcherHost(
GetID(),
- storage_partition_impl_->GetIndexedDBContext()));
+ storage_partition_impl_->GetURLRequestContext(),
+ storage_partition_impl_->GetIndexedDBContext(),
+ file_api_message_filter));
+ }
if (IsGuest()) {
if (!g_browser_plugin_geolocation_context.Get().get()) {
g_browser_plugin_geolocation_context.Get() =
@@ -632,12 +643,6 @@ void RenderProcessHostImpl::CreateMessageFilters() {
#endif
channel_->AddFilter(new SpeechRecognitionDispatcherHost(
GetID(), storage_partition_impl_->GetURLRequestContext()));
- channel_->AddFilter(new FileAPIMessageFilter(
- GetID(),
- storage_partition_impl_->GetURLRequestContext(),
- storage_partition_impl_->GetFileSystemContext(),
- ChromeBlobStorageContext::GetFor(browser_context),
- StreamContext::GetFor(browser_context)));
channel_->AddFilter(new OrientationMessageFilter());
channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
channel_->AddFilter(new MimeRegistryMessageFilter());

Powered by Google App Engine
This is Rietveld 408576698