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" |
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/host_zoom_level_context.h" | 13 #include "content/browser/host_zoom_level_context.h" |
14 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 14 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
15 #include "content/browser/media/webrtc_identity_store.h" | 15 #include "content/browser/media/webrtc_identity_store.h" |
| 16 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" |
16 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 17 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
18 #include "content/public/browser/storage_partition.h" | 19 #include "content/public/browser/storage_partition.h" |
19 #include "storage/browser/quota/special_storage_policy.h" | 20 #include "storage/browser/quota/special_storage_policy.h" |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 | 23 |
23 class StoragePartitionImpl : public StoragePartition { | 24 class StoragePartitionImpl : public StoragePartition { |
24 public: | 25 public: |
25 CONTENT_EXPORT ~StoragePartitionImpl() override; | 26 CONTENT_EXPORT ~StoragePartitionImpl() override; |
(...skipping 15 matching lines...) Expand all Loading... |
41 ChromeAppCacheService* GetAppCacheService() override; | 42 ChromeAppCacheService* GetAppCacheService() override; |
42 storage::FileSystemContext* GetFileSystemContext() override; | 43 storage::FileSystemContext* GetFileSystemContext() override; |
43 storage::DatabaseTracker* GetDatabaseTracker() override; | 44 storage::DatabaseTracker* GetDatabaseTracker() override; |
44 DOMStorageContextWrapper* GetDOMStorageContext() override; | 45 DOMStorageContextWrapper* GetDOMStorageContext() override; |
45 IndexedDBContextImpl* GetIndexedDBContext() override; | 46 IndexedDBContextImpl* GetIndexedDBContext() override; |
46 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; | 47 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; |
47 GeofencingManager* GetGeofencingManager() override; | 48 GeofencingManager* GetGeofencingManager() override; |
48 HostZoomMap* GetHostZoomMap() override; | 49 HostZoomMap* GetHostZoomMap() override; |
49 HostZoomLevelContext* GetHostZoomLevelContext() override; | 50 HostZoomLevelContext* GetHostZoomLevelContext() override; |
50 ZoomLevelDelegate* GetZoomLevelDelegate() override; | 51 ZoomLevelDelegate* GetZoomLevelDelegate() override; |
51 NavigatorConnectContext* GetNavigatorConnectContext() override; | 52 NavigatorConnectContextImpl* GetNavigatorConnectContext() override; |
52 | 53 |
53 void ClearDataForOrigin(uint32 remove_mask, | 54 void ClearDataForOrigin(uint32 remove_mask, |
54 uint32 quota_storage_remove_mask, | 55 uint32 quota_storage_remove_mask, |
55 const GURL& storage_origin, | 56 const GURL& storage_origin, |
56 net::URLRequestContextGetter* request_context_getter, | 57 net::URLRequestContextGetter* request_context_getter, |
57 const base::Closure& callback) override; | 58 const base::Closure& callback) override; |
58 void ClearData(uint32 remove_mask, | 59 void ClearData(uint32 remove_mask, |
59 uint32 quota_storage_remove_mask, | 60 uint32 quota_storage_remove_mask, |
60 const GURL& storage_origin, | 61 const GURL& storage_origin, |
61 const OriginMatcherFunction& origin_matcher, | 62 const OriginMatcherFunction& origin_matcher, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 ChromeAppCacheService* appcache_service, | 123 ChromeAppCacheService* appcache_service, |
123 storage::FileSystemContext* filesystem_context, | 124 storage::FileSystemContext* filesystem_context, |
124 storage::DatabaseTracker* database_tracker, | 125 storage::DatabaseTracker* database_tracker, |
125 DOMStorageContextWrapper* dom_storage_context, | 126 DOMStorageContextWrapper* dom_storage_context, |
126 IndexedDBContextImpl* indexed_db_context, | 127 IndexedDBContextImpl* indexed_db_context, |
127 ServiceWorkerContextWrapper* service_worker_context, | 128 ServiceWorkerContextWrapper* service_worker_context, |
128 WebRTCIdentityStore* webrtc_identity_store, | 129 WebRTCIdentityStore* webrtc_identity_store, |
129 storage::SpecialStoragePolicy* special_storage_policy, | 130 storage::SpecialStoragePolicy* special_storage_policy, |
130 GeofencingManager* geofencing_manager, | 131 GeofencingManager* geofencing_manager, |
131 HostZoomLevelContext* host_zoom_level_context, | 132 HostZoomLevelContext* host_zoom_level_context, |
132 NavigatorConnectContext* navigator_connect_context); | 133 NavigatorConnectContextImpl* navigator_connect_context); |
133 | 134 |
134 void ClearDataImpl(uint32 remove_mask, | 135 void ClearDataImpl(uint32 remove_mask, |
135 uint32 quota_storage_remove_mask, | 136 uint32 quota_storage_remove_mask, |
136 const GURL& remove_origin, | 137 const GURL& remove_origin, |
137 const OriginMatcherFunction& origin_matcher, | 138 const OriginMatcherFunction& origin_matcher, |
138 net::URLRequestContextGetter* rq_context, | 139 net::URLRequestContextGetter* rq_context, |
139 const base::Time begin, | 140 const base::Time begin, |
140 const base::Time end, | 141 const base::Time end, |
141 const base::Closure& callback); | 142 const base::Closure& callback); |
142 | 143 |
(...skipping 21 matching lines...) Expand all Loading... |
164 scoped_refptr<ChromeAppCacheService> appcache_service_; | 165 scoped_refptr<ChromeAppCacheService> appcache_service_; |
165 scoped_refptr<storage::FileSystemContext> filesystem_context_; | 166 scoped_refptr<storage::FileSystemContext> filesystem_context_; |
166 scoped_refptr<storage::DatabaseTracker> database_tracker_; | 167 scoped_refptr<storage::DatabaseTracker> database_tracker_; |
167 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; | 168 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
168 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 169 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
169 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 170 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
170 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 171 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
171 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 172 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
172 scoped_refptr<GeofencingManager> geofencing_manager_; | 173 scoped_refptr<GeofencingManager> geofencing_manager_; |
173 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; | 174 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; |
174 scoped_refptr<NavigatorConnectContext> navigator_connect_context_; | 175 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; |
175 | 176 |
176 // Raw pointer that should always be valid. The BrowserContext owns the | 177 // Raw pointer that should always be valid. The BrowserContext owns the |
177 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 178 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
178 // BrowserContext is destroyed, |this| will be destroyed too. | 179 // BrowserContext is destroyed, |this| will be destroyed too. |
179 BrowserContext* browser_context_; | 180 BrowserContext* browser_context_; |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 182 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
182 }; | 183 }; |
183 | 184 |
184 } // namespace content | 185 } // namespace content |
185 | 186 |
186 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 187 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |