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

Unified Diff: content/public/browser/storage_partition.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
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/public/common/resource_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/storage_partition.h
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h
index 60e5c7dc3574f1286d21e1bfc946bc1711d815e4..cf270b89418688cca11026e8b5d060f0666a2e7d 100644
--- a/content/public/browser/storage_partition.h
+++ b/content/public/browser/storage_partition.h
@@ -54,6 +54,10 @@ class HostZoomMap;
class ZoomLevelDelegate;
#endif // !defined(OS_ANDROID)
+namespace mojom {
+class NetworkContext;
+}
+
// Defines what persistent state a child process can access.
//
// The StoragePartition defines the view each child process has of the
@@ -65,6 +69,9 @@ class CONTENT_EXPORT StoragePartition {
virtual base::FilePath GetPath() = 0;
virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
+ // Returns the NetworkContext associated with this storage partition. Must
+ // only be called when the network service is enabled.
+ virtual mojom::NetworkContext* GetNetworkContext() = 0;
virtual storage::QuotaManager* GetQuotaManager() = 0;
virtual AppCacheService* GetAppCacheService() = 0;
virtual storage::FileSystemContext* GetFileSystemContext() = 0;
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/public/common/resource_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698