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; |