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

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

Issue 2828953002: [IndexedDB] Hold referenced to IDB::put blobs in the IDBRequest (Closed)
Patch Set: Created 3 years, 8 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 #endif 1108 #endif
1109 #if BUILDFLAG(ENABLE_PLUGINS) 1109 #if BUILDFLAG(ENABLE_PLUGINS)
1110 AddFilter(new PepperRendererConnection(GetID())); 1110 AddFilter(new PepperRendererConnection(GetID()));
1111 #endif 1111 #endif
1112 AddFilter(new SpeechRecognitionDispatcherHost( 1112 AddFilter(new SpeechRecognitionDispatcherHost(
1113 GetID(), storage_partition_impl_->GetURLRequestContext())); 1113 GetID(), storage_partition_impl_->GetURLRequestContext()));
1114 AddFilter(new FileAPIMessageFilter( 1114 AddFilter(new FileAPIMessageFilter(
1115 GetID(), storage_partition_impl_->GetURLRequestContext(), 1115 GetID(), storage_partition_impl_->GetURLRequestContext(),
1116 storage_partition_impl_->GetFileSystemContext(), 1116 storage_partition_impl_->GetFileSystemContext(),
1117 blob_storage_context.get(), StreamContext::GetFor(browser_context))); 1117 blob_storage_context.get(), StreamContext::GetFor(browser_context)));
1118 AddFilter(new BlobDispatcherHost( 1118
1119 GetID(), blob_storage_context, 1119 scoped_refptr<BlobDispatcherHost> blob_dispatcher_host =
1120 make_scoped_refptr(storage_partition_impl_->GetFileSystemContext()))); 1120 new BlobDispatcherHost(
1121 GetID(), blob_storage_context,
1122 make_scoped_refptr(storage_partition_impl_->GetFileSystemContext()));
1123 AddFilter(blob_dispatcher_host.get());
1124 indexed_db_factory_->SetBlobDispatcherHost(std::move(blob_dispatcher_host));
1125
1121 AddFilter(new FileUtilitiesMessageFilter(GetID())); 1126 AddFilter(new FileUtilitiesMessageFilter(GetID()));
1122 AddFilter( 1127 AddFilter(
1123 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); 1128 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
1124 #if defined(OS_MACOSX) 1129 #if defined(OS_MACOSX)
1125 AddFilter(new TextInputClientMessageFilter()); 1130 AddFilter(new TextInputClientMessageFilter());
1126 #elif defined(OS_WIN) 1131 #elif defined(OS_WIN)
1127 AddFilter(new DWriteFontProxyMessageFilter()); 1132 AddFilter(new DWriteFontProxyMessageFilter());
1128 1133
1129 // The FontCacheDispatcher is required only when we're using GDI rendering. 1134 // The FontCacheDispatcher is required only when we're using GDI rendering.
1130 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache 1135 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache
(...skipping 1954 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3090 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3086 3091
3087 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3092 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3088 // Capture the error message in a crash key value. 3093 // Capture the error message in a crash key value.
3089 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3094 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3090 bad_message::ReceivedBadMessage(render_process_id, 3095 bad_message::ReceivedBadMessage(render_process_id,
3091 bad_message::RPH_MOJO_PROCESS_ERROR); 3096 bad_message::RPH_MOJO_PROCESS_ERROR);
3092 } 3097 }
3093 3098
3094 } // namespace content 3099 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698