Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/browser/appcache/chrome_appcache_service.h" 11 #include "content/browser/appcache/chrome_appcache_service.h"
12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
13 #include "content/browser/indexed_db/indexed_db_context_impl.h" 13 #include "content/browser/indexed_db/indexed_db_context_impl.h"
14 #include "content/browser/media/webrtc_identity_store.h" 14 #include "content/browser/media/webrtc_identity_store.h"
15 #include "content/browser/service_worker/service_worker_context_wrapper.h" 15 #include "content/browser/service_worker/service_worker_context_wrapper.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/public/browser/storage_partition.h" 17 #include "content/public/browser/storage_partition.h"
18 #include "storage/browser/quota/special_storage_policy.h" 18 #include "storage/browser/quota/special_storage_policy.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class StoragePartitionImpl : public StoragePartition { 22 class StoragePartitionImpl : public StoragePartition {
23 public: 23 public:
24 CONTENT_EXPORT virtual ~StoragePartitionImpl(); 24 CONTENT_EXPORT ~StoragePartitionImpl() override;
25 25
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 base::FilePath GetPath() override;
37 virtual net::URLRequestContextGetter* GetURLRequestContext() override; 37 net::URLRequestContextGetter* GetURLRequestContext() override;
38 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() override; 38 net::URLRequestContextGetter* GetMediaURLRequestContext() override;
39 virtual storage::QuotaManager* GetQuotaManager() override; 39 storage::QuotaManager* GetQuotaManager() override;
40 virtual ChromeAppCacheService* GetAppCacheService() override; 40 ChromeAppCacheService* GetAppCacheService() override;
41 virtual storage::FileSystemContext* GetFileSystemContext() override; 41 storage::FileSystemContext* GetFileSystemContext() override;
42 virtual storage::DatabaseTracker* GetDatabaseTracker() override; 42 storage::DatabaseTracker* GetDatabaseTracker() override;
43 virtual DOMStorageContextWrapper* GetDOMStorageContext() override; 43 DOMStorageContextWrapper* GetDOMStorageContext() override;
44 virtual IndexedDBContextImpl* GetIndexedDBContext() override; 44 IndexedDBContextImpl* GetIndexedDBContext() override;
45 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 45 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
46 46
47 virtual void ClearDataForOrigin( 47 void ClearDataForOrigin(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,
51 net::URLRequestContextGetter* request_context_getter, 51 const base::Closure& callback) override;
52 const base::Closure& callback) override; 52 void ClearData(uint32 remove_mask,
53 virtual void ClearData(uint32 remove_mask, 53 uint32 quota_storage_remove_mask,
54 uint32 quota_storage_remove_mask, 54 const GURL& storage_origin,
55 const GURL& storage_origin, 55 const OriginMatcherFunction& origin_matcher,
56 const OriginMatcherFunction& origin_matcher, 56 const base::Time begin,
57 const base::Time begin, 57 const base::Time end,
58 const base::Time end, 58 const base::Closure& callback) override;
59 const base::Closure& callback) override;
60 59
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,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<storage::SpecialStoragePolicy> special_storage_policy_; 158 scoped_refptr<storage::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_
OLDNEW
« no previous file with comments | « content/browser/startup_task_runner_unittest.cc ('k') | content/browser/storage_partition_impl_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698