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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class IndexedDBContext; 47 class IndexedDBContext;
48 class PlatformNotificationContext; 48 class PlatformNotificationContext;
49 class ServiceWorkerContext; 49 class ServiceWorkerContext;
50 50
51 #if !defined(OS_ANDROID) 51 #if !defined(OS_ANDROID)
52 class HostZoomLevelContext; 52 class HostZoomLevelContext;
53 class HostZoomMap; 53 class HostZoomMap;
54 class ZoomLevelDelegate; 54 class ZoomLevelDelegate;
55 #endif // !defined(OS_ANDROID) 55 #endif // !defined(OS_ANDROID)
56 56
57 namespace mojom {
58 class NetworkContext;
59 }
60
57 // Defines what persistent state a child process can access. 61 // Defines what persistent state a child process can access.
58 // 62 //
59 // The StoragePartition defines the view each child process has of the 63 // The StoragePartition defines the view each child process has of the
60 // persistent state inside the BrowserContext. This is used to implement 64 // persistent state inside the BrowserContext. This is used to implement
61 // isolated storage where a renderer with isolated storage cannot see 65 // isolated storage where a renderer with isolated storage cannot see
62 // the cookies, localStorage, etc., that normal web renderers have access to. 66 // the cookies, localStorage, etc., that normal web renderers have access to.
63 class CONTENT_EXPORT StoragePartition { 67 class CONTENT_EXPORT StoragePartition {
64 public: 68 public:
65 virtual base::FilePath GetPath() = 0; 69 virtual base::FilePath GetPath() = 0;
66 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; 70 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0;
67 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; 71 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0;
72 // Returns the NetworkContext associated with this storage partition. Must
73 // only be called when the network service is enabled.
74 virtual mojom::NetworkContext* GetNetworkContext() = 0;
68 virtual storage::QuotaManager* GetQuotaManager() = 0; 75 virtual storage::QuotaManager* GetQuotaManager() = 0;
69 virtual AppCacheService* GetAppCacheService() = 0; 76 virtual AppCacheService* GetAppCacheService() = 0;
70 virtual storage::FileSystemContext* GetFileSystemContext() = 0; 77 virtual storage::FileSystemContext* GetFileSystemContext() = 0;
71 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; 78 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0;
72 virtual DOMStorageContext* GetDOMStorageContext() = 0; 79 virtual DOMStorageContext* GetDOMStorageContext() = 0;
73 virtual IndexedDBContext* GetIndexedDBContext() = 0; 80 virtual IndexedDBContext* GetIndexedDBContext() = 0;
74 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; 81 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
75 virtual CacheStorageContext* GetCacheStorageContext() = 0; 82 virtual CacheStorageContext* GetCacheStorageContext() = 0;
76 #if !defined(OS_ANDROID) 83 #if !defined(OS_ANDROID)
77 virtual HostZoomMap* GetHostZoomMap() = 0; 84 virtual HostZoomMap* GetHostZoomMap() = 0;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Clear the bluetooth allowed devices map. For test use only. 191 // Clear the bluetooth allowed devices map. For test use only.
185 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; 192 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0;
186 193
187 protected: 194 protected:
188 virtual ~StoragePartition() {} 195 virtual ~StoragePartition() {}
189 }; 196 };
190 197
191 } // namespace content 198 } // namespace content
192 199
193 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ 200 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_
OLDNEW
« 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