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

Unified Diff: content/browser/blob_storage/chrome_blob_storage_context.cc

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 years, 7 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/blob_storage/chrome_blob_storage_context.cc
diff --git a/content/browser/blob_storage/chrome_blob_storage_context.cc b/content/browser/blob_storage/chrome_blob_storage_context.cc
index 92a2e8941c0fcca57d09b8133c65809a37972168..c5d61a4a52c430a4960745bf78c7387446138c17 100644
--- a/content/browser/blob_storage/chrome_blob_storage_context.cc
+++ b/content/browser/blob_storage/chrome_blob_storage_context.cc
@@ -24,6 +24,7 @@
#include "storage/browser/blob/blob_data_builder.h"
#include "storage/browser/blob/blob_data_handle.h"
#include "storage/browser/blob/blob_memory_controller.h"
+#include "storage/browser/blob/blob_registry_impl.h"
#include "storage/browser/blob/blob_storage_context.h"
using base::FilePath;
@@ -131,6 +132,7 @@ void ChromeBlobStorageContext::InitializeOnIOThread(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
context_.reset(new BlobStorageContext(std::move(blob_storage_dir),
std::move(file_task_runner)));
+ blob_registry_ = base::MakeUnique<storage::BlobRegistryImpl>(context_.get());
// Signal the BlobMemoryController when it's appropriate to calculate its
// storage limits.
BrowserThread::PostAfterStartupTask(
@@ -179,6 +181,12 @@ std::unique_ptr<BlobHandle> ChromeBlobStorageContext::CreateFileBackedBlob(
return blob_handle;
}
+void ChromeBlobStorageContext::BindBlobRegistry(
+ const service_manager::BindSourceInfo& source_info,
+ storage::mojom::BlobRegistryRequest request) {
+ blob_registry_->Bind(source_info, std::move(request));
+}
+
ChromeBlobStorageContext::~ChromeBlobStorageContext() {}
void ChromeBlobStorageContext::DeleteOnCorrectThread() const {
« no previous file with comments | « content/browser/blob_storage/chrome_blob_storage_context.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698