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_BROWSER_STORAGE_PARTITION_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 // StoragePartition interface. | 35 // StoragePartition interface. |
36 virtual base::FilePath GetPath() OVERRIDE; | 36 virtual base::FilePath GetPath() OVERRIDE; |
37 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; | 37 virtual net::URLRequestContextGetter* GetURLRequestContext() OVERRIDE; |
38 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; | 38 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() OVERRIDE; |
39 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; | 39 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
40 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 40 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
41 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; | 41 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
42 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 42 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
43 virtual DOMStorageContextWrapper* GetDOMStorageContext() OVERRIDE; | 43 virtual DOMStorageContextWrapper* GetDOMStorageContext() OVERRIDE; |
44 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; | 44 virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE; |
| 45 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() OVERRIDE; |
45 | 46 |
46 virtual void ClearDataForOrigin( | 47 virtual void ClearDataForOrigin( |
47 uint32 remove_mask, | 48 uint32 remove_mask, |
48 uint32 quota_storage_remove_mask, | 49 uint32 quota_storage_remove_mask, |
49 const GURL& storage_origin, | 50 const GURL& storage_origin, |
50 net::URLRequestContextGetter* request_context_getter) OVERRIDE; | 51 net::URLRequestContextGetter* request_context_getter) OVERRIDE; |
51 virtual void ClearData(uint32 remove_mask, | 52 virtual void ClearData(uint32 remove_mask, |
52 uint32 quota_storage_remove_mask, | 53 uint32 quota_storage_remove_mask, |
53 const GURL& storage_origin, | 54 const GURL& storage_origin, |
54 const OriginMatcherFunction& origin_matcher, | 55 const OriginMatcherFunction& origin_matcher, |
55 const base::Time begin, | 56 const base::Time begin, |
56 const base::Time end, | 57 const base::Time end, |
57 const base::Closure& callback) OVERRIDE; | 58 const base::Closure& callback) OVERRIDE; |
58 | 59 |
59 ServiceWorkerContextWrapper* GetServiceWorkerContext(); | |
60 | |
61 WebRTCIdentityStore* GetWebRTCIdentityStore(); | 60 WebRTCIdentityStore* GetWebRTCIdentityStore(); |
62 | 61 |
63 struct DataDeletionHelper; | 62 struct DataDeletionHelper; |
64 struct QuotaManagedDataDeletionHelper; | 63 struct QuotaManagedDataDeletionHelper; |
65 | 64 |
66 private: | 65 private: |
67 friend class StoragePartitionImplMap; | 66 friend class StoragePartitionImplMap; |
68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); | 67 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); |
69 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
70 RemoveQuotaManagedDataForeverBoth); | 69 RemoveQuotaManagedDataForeverBoth); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 156 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 157 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
159 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; | 158 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; |
160 | 159 |
161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 160 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
162 }; | 161 }; |
163 | 162 |
164 } // namespace content | 163 } // namespace content |
165 | 164 |
166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 165 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |