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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 namespace storage { | 35 namespace storage { |
36 class DatabaseTracker; | 36 class DatabaseTracker; |
37 } | 37 } |
38 | 38 |
39 namespace content { | 39 namespace content { |
40 | 40 |
41 class AppCacheService; | 41 class AppCacheService; |
42 class BrowserContext; | 42 class BrowserContext; |
| 43 class HostZoomLevelContext; |
| 44 class HostZoomMap; |
43 class DOMStorageContext; | 45 class DOMStorageContext; |
44 class GeofencingManager; | 46 class GeofencingManager; |
45 class IndexedDBContext; | 47 class IndexedDBContext; |
46 class ServiceWorkerContext; | 48 class ServiceWorkerContext; |
| 49 class ZoomLevelDelegate; |
47 | 50 |
48 // Defines what persistent state a child process can access. | 51 // Defines what persistent state a child process can access. |
49 // | 52 // |
50 // The StoragePartition defines the view each child process has of the | 53 // The StoragePartition defines the view each child process has of the |
51 // persistent state inside the BrowserContext. This is used to implement | 54 // persistent state inside the BrowserContext. This is used to implement |
52 // isolated storage where a renderer with isolated storage cannot see | 55 // isolated storage where a renderer with isolated storage cannot see |
53 // the cookies, localStorage, etc., that normal web renderers have access to. | 56 // the cookies, localStorage, etc., that normal web renderers have access to. |
54 class CONTENT_EXPORT StoragePartition { | 57 class CONTENT_EXPORT StoragePartition { |
55 public: | 58 public: |
56 virtual base::FilePath GetPath() = 0; | 59 virtual base::FilePath GetPath() = 0; |
57 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 60 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
58 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 61 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
59 virtual storage::QuotaManager* GetQuotaManager() = 0; | 62 virtual storage::QuotaManager* GetQuotaManager() = 0; |
60 virtual AppCacheService* GetAppCacheService() = 0; | 63 virtual AppCacheService* GetAppCacheService() = 0; |
61 virtual storage::FileSystemContext* GetFileSystemContext() = 0; | 64 virtual storage::FileSystemContext* GetFileSystemContext() = 0; |
62 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; | 65 virtual storage::DatabaseTracker* GetDatabaseTracker() = 0; |
63 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 66 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
64 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 67 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
65 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; | 68 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; |
66 virtual GeofencingManager* GetGeofencingManager() = 0; | 69 virtual GeofencingManager* GetGeofencingManager() = 0; |
| 70 virtual HostZoomMap* GetHostZoomMap() = 0; |
| 71 virtual HostZoomLevelContext* GetHostZoomLevelContext() = 0; |
| 72 virtual ZoomLevelDelegate* GetZoomLevelDelegate() = 0; |
67 | 73 |
68 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; | 74 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; |
69 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; | 75 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; |
70 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; | 76 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; |
71 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; | 77 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; |
72 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; | 78 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; |
73 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5; | 79 static const uint32 REMOVE_DATA_MASK_SHADER_CACHE = 1 << 5; |
74 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6; | 80 static const uint32 REMOVE_DATA_MASK_WEBSQL = 1 << 6; |
75 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7; | 81 static const uint32 REMOVE_DATA_MASK_WEBRTC_IDENTITY = 1 << 7; |
76 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8; | 82 static const uint32 REMOVE_DATA_MASK_SERVICE_WORKERS = 1 << 8; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 const base::Time end, | 129 const base::Time end, |
124 const base::Closure& callback) = 0; | 130 const base::Closure& callback) = 0; |
125 | 131 |
126 protected: | 132 protected: |
127 virtual ~StoragePartition() {} | 133 virtual ~StoragePartition() {} |
128 }; | 134 }; |
129 | 135 |
130 } // namespace content | 136 } // namespace content |
131 | 137 |
132 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 138 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |