| 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/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class Time; | 19 class Time; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace fileapi { | 22 namespace storage { |
| 23 class FileSystemContext; | 23 class FileSystemContext; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace net { | 26 namespace net { |
| 27 class URLRequestContextGetter; | 27 class URLRequestContextGetter; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace quota { | 30 namespace quota { |
| 31 class QuotaManager; | 31 class QuotaManager; |
| 32 class SpecialStoragePolicy; | 32 class SpecialStoragePolicy; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 50 // persistent state inside the BrowserContext. This is used to implement | 50 // persistent state inside the BrowserContext. This is used to implement |
| 51 // isolated storage where a renderer with isolated storage cannot see | 51 // isolated storage where a renderer with isolated storage cannot see |
| 52 // the cookies, localStorage, etc., that normal web renderers have access to. | 52 // the cookies, localStorage, etc., that normal web renderers have access to. |
| 53 class CONTENT_EXPORT StoragePartition { | 53 class CONTENT_EXPORT StoragePartition { |
| 54 public: | 54 public: |
| 55 virtual base::FilePath GetPath() = 0; | 55 virtual base::FilePath GetPath() = 0; |
| 56 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; | 56 virtual net::URLRequestContextGetter* GetURLRequestContext() = 0; |
| 57 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; | 57 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() = 0; |
| 58 virtual quota::QuotaManager* GetQuotaManager() = 0; | 58 virtual quota::QuotaManager* GetQuotaManager() = 0; |
| 59 virtual AppCacheService* GetAppCacheService() = 0; | 59 virtual AppCacheService* GetAppCacheService() = 0; |
| 60 virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; | 60 virtual storage::FileSystemContext* GetFileSystemContext() = 0; |
| 61 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 61 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 62 virtual DOMStorageContext* GetDOMStorageContext() = 0; | 62 virtual DOMStorageContext* GetDOMStorageContext() = 0; |
| 63 virtual IndexedDBContext* GetIndexedDBContext() = 0; | 63 virtual IndexedDBContext* GetIndexedDBContext() = 0; |
| 64 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; | 64 virtual ServiceWorkerContext* GetServiceWorkerContext() = 0; |
| 65 | 65 |
| 66 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; | 66 static const uint32 REMOVE_DATA_MASK_APPCACHE = 1 << 0; |
| 67 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; | 67 static const uint32 REMOVE_DATA_MASK_COOKIES = 1 << 1; |
| 68 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; | 68 static const uint32 REMOVE_DATA_MASK_FILE_SYSTEMS = 1 << 2; |
| 69 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; | 69 static const uint32 REMOVE_DATA_MASK_INDEXEDDB = 1 << 3; |
| 70 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; | 70 static const uint32 REMOVE_DATA_MASK_LOCAL_STORAGE = 1 << 4; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const base::Time end, | 122 const base::Time end, |
| 123 const base::Closure& callback) = 0; | 123 const base::Closure& callback) = 0; |
| 124 | 124 |
| 125 protected: | 125 protected: |
| 126 virtual ~StoragePartition() {} | 126 virtual ~StoragePartition() {} |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace content | 129 } // namespace content |
| 130 | 130 |
| 131 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 131 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
| OLD | NEW |