Chromium Code Reviews| 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" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace appcache { | 15 namespace content { |
|
jam
2014/06/25 21:51:14
ditto
| |
| 16 class AppCacheService; | 16 class AppCacheService; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace fileapi { | 19 namespace fileapi { |
| 20 class FileSystemContext; | 20 class FileSystemContext; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace net { | 23 namespace net { |
| 24 class URLRequestContextGetter; | 24 class URLRequestContextGetter; |
| 25 } | 25 } |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 45 // The StoragePartition defines the view each child process has of the | 45 // The StoragePartition defines the view each child process has of the |
| 46 // persistent state inside the BrowserContext. This is used to implement | 46 // persistent state inside the BrowserContext. This is used to implement |
| 47 // isolated storage where a renderer with isolated storage cannot see | 47 // isolated storage where a renderer with isolated storage cannot see |
| 48 // the cookies, localStorage, etc., that normal web renderers have access to. | 48 // the cookies, localStorage, etc., that normal web renderers have access to. |
| 49 class StoragePartition { | 49 class StoragePartition { |
| 50 public: | 50 public: |
| 51 virtual base::FilePath GetPath() = 0; | 51 virtual base::FilePath GetPath() = 0; |
| 52 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 52 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 53 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 53 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
| 54 virtual quota::QuotaManager* GetQuotaManager() = 0; | 54 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 55 virtual appcache::AppCacheService* GetAppCacheService() = 0; | 55 virtual AppCacheService* GetAppCacheService() = 0; |
| 56 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 56 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |
| 57 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 57 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 58 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 58 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| 59 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 59 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| 60 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; | 60 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; |
| 61 | 61 |
| 62 enum RemoveDataMask { | 62 enum RemoveDataMask { |
| 63 REMOVE_DATA_MASK_APPCACHE = 1 << 0, | 63 REMOVE_DATA_MASK_APPCACHE = 1 << 0, |
| 64 REMOVE_DATA_MASK_COOKIES = 1 << 1, | 64 REMOVE_DATA_MASK_COOKIES = 1 << 1, |
| 65 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, | 65 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 const base::Time end, | 121 const base::Time end, |
| 122 const base::Closure& callback) = 0; | 122 const base::Closure& callback) = 0; |
| 123 | 123 |
| 124 protected: | 124 protected: |
| 125 virtual ~StoragePartition() {} | 125 virtual ~StoragePartition() {} |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace content | 128 } // namespace content |
| 129 | 129 |
| 130 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 130 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |