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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2906543002: Add support for reading blobs when using the network service. (Closed)
Patch Set: review comment 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/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 01dc70688f27b2b916a3fbd5694569667fabb006..31aa3040eee30f08dbc6123d05cd2559f729fdc1 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -516,6 +516,9 @@ std::unique_ptr<StoragePartitionImpl> StoragePartitionImpl::Create(
partition->bluetooth_allowed_devices_map_ = new BluetoothAllowedDevicesMap();
+ partition->blob_url_loader_factory_ =
+ new BlobURLLoaderFactory(partition.get());
+
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableNetworkService)) {
mojom::NetworkServicePtr network_service;
@@ -623,6 +626,10 @@ StoragePartitionImpl::GetBluetoothAllowedDevicesMap() {
return bluetooth_allowed_devices_map_.get();
}
+BlobURLLoaderFactory* StoragePartitionImpl::GetBlobURLLoaderFactory() {
+ return blob_url_loader_factory_.get();
+}
+
void StoragePartitionImpl::OpenLocalStorage(
const url::Origin& origin,
mojo::InterfaceRequest<mojom::LevelDBWrapper> request) {

Powered by Google App Engine
This is Rietveld 408576698