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

Unified Diff: content/browser/storage_partition_impl.h

Issue 2976323002: Hook up ProfileIOData's URLRequestContext to a NetworkService. (Closed)
Patch Set: Response to comments Created 3 years, 5 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.h
diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
index a0df88a7ff3426333ea0f84e7d7d8f5aed271f17..63e0970227e92718608b58dca1c5c2394e3a44d9 100644
--- a/content/browser/storage_partition_impl.h
+++ b/content/browser/storage_partition_impl.h
@@ -73,6 +73,7 @@ class CONTENT_EXPORT StoragePartitionImpl
base::FilePath GetPath() override;
net::URLRequestContextGetter* GetURLRequestContext() override;
net::URLRequestContextGetter* GetMediaURLRequestContext() override;
+ mojom::NetworkContext* GetNetworkContext() override;
storage::QuotaManager* GetQuotaManager() override;
ChromeAppCacheService* GetAppCacheService() override;
storage::FileSystemContext* GetFileSystemContext() override;
@@ -127,10 +128,6 @@ class CONTENT_EXPORT StoragePartitionImpl
const url::Origin& origin,
mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override;
- // Returns the NetworkContext associated with this storage partition. Only
- // used when the network service is enabled.
- mojom::NetworkContext* network_context() { return network_context_.get(); }
-
scoped_refptr<URLLoaderFactoryGetter> url_loader_factory_getter() {
return url_loader_factory_getter_;
}
@@ -256,6 +253,10 @@ class CONTENT_EXPORT StoragePartitionImpl
scoped_refptr<BlobRegistryWrapper> blob_registry_;
mojo::BindingSet<mojom::StoragePartitionService> bindings_;
+
+ // When the network service is enabled, this is the NetworkContext used to
+ // make requests for the StoragePartition. When it's disabled, this is
+ // nullptr.
mojom::NetworkContextPtr network_context_;
// Raw pointer that should always be valid. The BrowserContext owns the
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698