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 15 matching lines...) Expand all Loading... |
26 // Quota managed data uses a different bitmask for types than | 26 // Quota managed data uses a different bitmask for types than |
27 // StoragePartition uses. This method generates that mask. | 27 // StoragePartition uses. This method generates that mask. |
28 CONTENT_EXPORT static int GenerateQuotaClientMask(uint32 remove_mask); | 28 CONTENT_EXPORT static int GenerateQuotaClientMask(uint32 remove_mask); |
29 | 29 |
30 CONTENT_EXPORT void OverrideQuotaManagerForTesting( | 30 CONTENT_EXPORT void OverrideQuotaManagerForTesting( |
31 storage::QuotaManager* quota_manager); | 31 storage::QuotaManager* quota_manager); |
32 CONTENT_EXPORT void OverrideSpecialStoragePolicyForTesting( | 32 CONTENT_EXPORT void OverrideSpecialStoragePolicyForTesting( |
33 storage::SpecialStoragePolicy* special_storage_policy); | 33 storage::SpecialStoragePolicy* special_storage_policy); |
34 | 34 |
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 storage::QuotaManager* GetQuotaManager() OVERRIDE; | 39 virtual storage::QuotaManager* GetQuotaManager() override; |
40 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 40 virtual ChromeAppCacheService* GetAppCacheService() override; |
41 virtual storage::FileSystemContext* GetFileSystemContext() OVERRIDE; | 41 virtual storage::FileSystemContext* GetFileSystemContext() override; |
42 virtual storage::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 42 virtual storage::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 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() override; |
46 | 46 |
47 virtual void ClearDataForOrigin( | 47 virtual void ClearDataForOrigin( |
48 uint32 remove_mask, | 48 uint32 remove_mask, |
49 uint32 quota_storage_remove_mask, | 49 uint32 quota_storage_remove_mask, |
50 const GURL& storage_origin, | 50 const GURL& storage_origin, |
51 net::URLRequestContextGetter* request_context_getter, | 51 net::URLRequestContextGetter* request_context_getter, |
52 const base::Closure& callback) OVERRIDE; | 52 const base::Closure& callback) override; |
53 virtual void ClearData(uint32 remove_mask, | 53 virtual void ClearData(uint32 remove_mask, |
54 uint32 quota_storage_remove_mask, | 54 uint32 quota_storage_remove_mask, |
55 const GURL& storage_origin, | 55 const GURL& storage_origin, |
56 const OriginMatcherFunction& origin_matcher, | 56 const OriginMatcherFunction& origin_matcher, |
57 const base::Time begin, | 57 const base::Time begin, |
58 const base::Time end, | 58 const base::Time end, |
59 const base::Closure& callback) OVERRIDE; | 59 const base::Closure& callback) override; |
60 | 60 |
61 WebRTCIdentityStore* GetWebRTCIdentityStore(); | 61 WebRTCIdentityStore* GetWebRTCIdentityStore(); |
62 | 62 |
63 struct DataDeletionHelper; | 63 struct DataDeletionHelper; |
64 struct QuotaManagedDataDeletionHelper; | 64 struct QuotaManagedDataDeletionHelper; |
65 | 65 |
66 private: | 66 private: |
67 friend class StoragePartitionImplMap; | 67 friend class StoragePartitionImplMap; |
68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); | 68 FRIEND_TEST_ALL_PREFIXES(StoragePartitionShaderClearTest, ClearShaderCache); |
69 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, | 69 FRIEND_TEST_ALL_PREFIXES(StoragePartitionImplTest, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 157 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
159 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 159 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace content | 164 } // namespace content |
165 | 165 |
166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |