OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 namespace content { | 41 namespace content { |
42 | 42 |
43 class AppCacheService; | 43 class AppCacheService; |
44 class BrowserContext; | 44 class BrowserContext; |
45 class CacheStorageContext; | 45 class CacheStorageContext; |
46 class DOMStorageContext; | 46 class DOMStorageContext; |
47 class HostZoomLevelContext; | 47 class HostZoomLevelContext; |
48 class HostZoomMap; | 48 class HostZoomMap; |
49 class IndexedDBContext; | 49 class IndexedDBContext; |
| 50 class PaymentAppContext; |
50 class PlatformNotificationContext; | 51 class PlatformNotificationContext; |
51 class ServiceWorkerContext; | 52 class ServiceWorkerContext; |
52 class ZoomLevelDelegate; | 53 class ZoomLevelDelegate; |
53 | 54 |
54 // Defines what persistent state a child process can access. | 55 // Defines what persistent state a child process can access. |
55 // | 56 // |
56 // The StoragePartition defines the view each child process has of the | 57 // The StoragePartition defines the view each child process has of the |
57 // persistent state inside the BrowserContext. This is used to implement | 58 // persistent state inside the BrowserContext. This is used to implement |
58 // isolated storage where a renderer with isolated storage cannot see | 59 // isolated storage where a renderer with isolated storage cannot see |
59 // the cookies, localStorage, etc., that normal web renderers have access to. | 60 // the cookies, localStorage, etc., that normal web renderers have access to. |
60 class CONTENT_EXPORT StoragePartition { | 61 class CONTENT_EXPORT StoragePartition { |
61 public: | 62 public: |
62 virtual base::FilePath GetPath() = 0; | 63 virtual base::FilePath GetPath() = 0; |
63 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 64 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
64 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 65 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
65 virtual storage::QuotaManager* GetQuotaManager() = 0; | 66 virtual storage::QuotaManager* GetQuotaManager() = 0; |
66 virtual AppCacheService* GetAppCacheService() = 0; | 67 virtual AppCacheService* GetAppCacheService() = 0; |
67 virtual storage::FileSystemContext* GetFileSystemContext() = 0; | 68 virtual storage::FileSystemContext* GetFileSystemContext() = 0; |
68 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; | 69 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; |
69 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 70 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
70 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 71 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
71 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; | 72 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; |
72 virtual CacheStorageContext* GetCacheStorageContext() = 0; | 73 virtual CacheStorageContext* GetCacheStorageContext() = 0; |
73 virtual HostZoomMap* GetHostZoomMap() = 0; | 74 virtual HostZoomMap* GetHostZoomMap() = 0; |
74 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; | 75 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; |
75 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; | 76 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; |
76 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; | 77 virtual PlatformNotificationContext* GetPlatformNotificationContext() = 0; |
| 78 virtual PaymentAppContext* GetPaymentAppContext() = 0; |
77 | 79 |
78 enum : uint32_t { | 80 enum : uint32_t { |
79 REMOVE_DATA_MASK_APPCACHE = 1 << 0, | 81 REMOVE_DATA_MASK_APPCACHE = 1 << 0, |
80 REMOVE_DATA_MASK_COOKIES = 1 << 1, | 82 REMOVE_DATA_MASK_COOKIES = 1 << 1, |
81 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, | 83 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, |
82 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, | 84 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3, |
83 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, | 85 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4, |
84 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, | 86 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5, |
85 REMOVE_DATA_MASK_WEBSQL = 1 << 6, | 87 REMOVE_DATA_MASK_WEBSQL = 1 << 6, |
86 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 7, | 88 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 7, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // unwritten data has been written out to the filesystem. | 168 // unwritten data has been written out to the filesystem. |
167 virtual void Flush() = 0; | 169 virtual void Flush() = 0; |
168 | 170 |
169 protected: | 171 protected: |
170 virtual ~StoragePartition() {} | 172 virtual ~StoragePartition() {} |
171 }; | 173 }; |
172 | 174 |
173 } // namespace content | 175 } // namespace content |
174 | 176 |
175 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 177 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |