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

Unified Diff: content/browser/fileapi/fileapi_message_filter.cc

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make blob_storage_host a content/public interface with a content-private impl 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/fileapi/fileapi_message_filter.cc
diff --git a/content/browser/fileapi/fileapi_message_filter.cc b/content/browser/fileapi/fileapi_message_filter.cc
index b900124c5e39e507fd5805610d8b472e8aa9474f..497df0466fff4ac7f07638e5f825cfa49c24d93c 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -17,7 +17,7 @@
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "content/browser/child_process_security_policy_impl.h"
-#include "content/browser/fileapi/blob_storage_host.h"
+#include "content/browser/fileapi/blob_storage_host_impl.h"
#include "content/browser/fileapi/browser_file_system_helper.h"
#include "content/browser/fileapi/chrome_blob_storage_context.h"
#include "content/browser/streams/stream_registry.h"
@@ -116,7 +116,7 @@ void FileAPIMessageFilter::OnChannelConnected(int32 peer_pid) {
}
blob_storage_host_.reset(
- new BlobStorageHost(blob_storage_context_->context()));
+ new BlobStorageHostImpl(blob_storage_context_->context()));
operation_runner_ = context_->CreateFileSystemOperationRunner();
}
@@ -197,6 +197,12 @@ bool FileAPIMessageFilter::OnMessageReceived(
return handled;
}
+BlobStorageHost* FileAPIMessageFilter::GetBlobStorageHost() const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ DCHECK(blob_storage_host_.get());
+ return blob_storage_host_.get();
+}
+
FileAPIMessageFilter::~FileAPIMessageFilter() {}
void FileAPIMessageFilter::BadMessageReceived() {

Powered by Google App Engine
This is Rietveld 408576698