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

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

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create Blobs on browser-process, eliminating two IPC copies. Created 6 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 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 5ce5e599bde2418bc37fd530267810ddcb7cc4df..07f273dc88d9fae46e763b797716438760ae9784 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -715,12 +715,13 @@ void RenderProcessHostImpl::CreateMessageFilters() {
#endif
AddFilter(new SpeechRecognitionDispatcherHost(
IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
- AddFilter(new FileAPIMessageFilter(
+ fileapi_message_filter_ = new FileAPIMessageFilter(
GetID(),
storage_partition_impl_->GetURLRequestContext(),
storage_partition_impl_->GetFileSystemContext(),
ChromeBlobStorageContext::GetFor(browser_context),
- StreamContext::GetFor(browser_context)));
+ StreamContext::GetFor(browser_context));
+ AddFilter(fileapi_message_filter_);
AddFilter(new FileUtilitiesMessageFilter(GetID()));
AddFilter(new MimeRegistryMessageFilter());
AddFilter(new DatabaseMessageFilter(
@@ -840,6 +841,10 @@ void RenderProcessHostImpl::NotifyTimezoneChange() {
Send(new ViewMsg_TimezoneChange());
}
+BlobStorageHost* RenderProcessHostImpl::GetBlobStorageHost() const {
+ return fileapi_message_filter_->GetBlobStorageHost();
+}
+
void RenderProcessHostImpl::AddRoute(
int32 routing_id,
IPC::Listener* listener) {

Powered by Google App Engine
This is Rietveld 408576698