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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 net::URLRequestContextGetter* GetURLRequestContext() override; | 56 net::URLRequestContextGetter* GetURLRequestContext() override; |
57 net::URLRequestContextGetter* GetMediaURLRequestContext() override; | 57 net::URLRequestContextGetter* GetMediaURLRequestContext() override; |
58 storage::QuotaManager* GetQuotaManager() override; | 58 storage::QuotaManager* GetQuotaManager() override; |
59 ChromeAppCacheService* GetAppCacheService() override; | 59 ChromeAppCacheService* GetAppCacheService() override; |
60 storage::FileSystemContext* GetFileSystemContext() override; | 60 storage::FileSystemContext* GetFileSystemContext() override; |
61 storage::DatabaseTracker* GetDatabaseTracker() override; | 61 storage::DatabaseTracker* GetDatabaseTracker() override; |
62 DOMStorageContextWrapper* GetDOMStorageContext() override; | 62 DOMStorageContextWrapper* GetDOMStorageContext() override; |
63 IndexedDBContextImpl* GetIndexedDBContext() override; | 63 IndexedDBContextImpl* GetIndexedDBContext() override; |
64 CacheStorageContextImpl* GetCacheStorageContext() override; | 64 CacheStorageContextImpl* GetCacheStorageContext() override; |
65 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; | 65 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; |
66 GeofencingManager* GetGeofencingManager() override; | |
67 HostZoomMap* GetHostZoomMap() override; | 66 HostZoomMap* GetHostZoomMap() override; |
68 HostZoomLevelContext* GetHostZoomLevelContext() override; | 67 HostZoomLevelContext* GetHostZoomLevelContext() override; |
69 ZoomLevelDelegate* GetZoomLevelDelegate() override; | 68 ZoomLevelDelegate* GetZoomLevelDelegate() override; |
70 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; | 69 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; |
71 | 70 |
72 BackgroundSyncContext* GetBackgroundSyncContext(); | 71 BackgroundSyncContext* GetBackgroundSyncContext(); |
73 | 72 |
74 // mojom::StoragePartitionService interface. | 73 // mojom::StoragePartitionService interface. |
75 void OpenLocalStorage( | 74 void OpenLocalStorage( |
76 const url::Origin& origin, | 75 const url::Origin& origin, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 storage::QuotaManager* quota_manager, | 164 storage::QuotaManager* quota_manager, |
166 ChromeAppCacheService* appcache_service, | 165 ChromeAppCacheService* appcache_service, |
167 storage::FileSystemContext* filesystem_context, | 166 storage::FileSystemContext* filesystem_context, |
168 storage::DatabaseTracker* database_tracker, | 167 storage::DatabaseTracker* database_tracker, |
169 DOMStorageContextWrapper* dom_storage_context, | 168 DOMStorageContextWrapper* dom_storage_context, |
170 IndexedDBContextImpl* indexed_db_context, | 169 IndexedDBContextImpl* indexed_db_context, |
171 CacheStorageContextImpl* cache_storage_context, | 170 CacheStorageContextImpl* cache_storage_context, |
172 ServiceWorkerContextWrapper* service_worker_context, | 171 ServiceWorkerContextWrapper* service_worker_context, |
173 WebRTCIdentityStore* webrtc_identity_store, | 172 WebRTCIdentityStore* webrtc_identity_store, |
174 storage::SpecialStoragePolicy* special_storage_policy, | 173 storage::SpecialStoragePolicy* special_storage_policy, |
175 GeofencingManager* geofencing_manager, | |
176 HostZoomLevelContext* host_zoom_level_context, | 174 HostZoomLevelContext* host_zoom_level_context, |
177 PlatformNotificationContextImpl* platform_notification_context, | 175 PlatformNotificationContextImpl* platform_notification_context, |
178 BackgroundSyncContext* background_sync_context); | 176 BackgroundSyncContext* background_sync_context); |
179 | 177 |
180 // We will never have both remove_origin be populated and a cookie_matcher. | 178 // We will never have both remove_origin be populated and a cookie_matcher. |
181 void ClearDataImpl(uint32_t remove_mask, | 179 void ClearDataImpl(uint32_t remove_mask, |
182 uint32_t quota_storage_remove_mask, | 180 uint32_t quota_storage_remove_mask, |
183 const GURL& remove_origin, | 181 const GURL& remove_origin, |
184 const OriginMatcherFunction& origin_matcher, | 182 const OriginMatcherFunction& origin_matcher, |
185 const CookieMatcherFunction& cookie_matcher, | 183 const CookieMatcherFunction& cookie_matcher, |
(...skipping 25 matching lines...) Expand all Loading... |
211 scoped_refptr<storage::QuotaManager> quota_manager_; | 209 scoped_refptr<storage::QuotaManager> quota_manager_; |
212 scoped_refptr<ChromeAppCacheService> appcache_service_; | 210 scoped_refptr<ChromeAppCacheService> appcache_service_; |
213 scoped_refptr<storage::FileSystemContext> filesystem_context_; | 211 scoped_refptr<storage::FileSystemContext> filesystem_context_; |
214 scoped_refptr<storage::DatabaseTracker> database_tracker_; | 212 scoped_refptr<storage::DatabaseTracker> database_tracker_; |
215 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; | 213 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
216 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 214 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
217 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; | 215 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; |
218 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 216 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
219 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 217 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
220 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 218 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
221 scoped_refptr<GeofencingManager> geofencing_manager_; | |
222 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; | 219 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; |
223 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; | 220 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; |
224 scoped_refptr<BackgroundSyncContext> background_sync_context_; | 221 scoped_refptr<BackgroundSyncContext> background_sync_context_; |
225 | 222 |
226 mojo::BindingSet<mojom::StoragePartitionService> bindings_; | 223 mojo::BindingSet<mojom::StoragePartitionService> bindings_; |
227 | 224 |
228 // Raw pointer that should always be valid. The BrowserContext owns the | 225 // Raw pointer that should always be valid. The BrowserContext owns the |
229 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 226 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
230 // BrowserContext is destroyed, |this| will be destroyed too. | 227 // BrowserContext is destroyed, |this| will be destroyed too. |
231 BrowserContext* browser_context_; | 228 BrowserContext* browser_context_; |
232 | 229 |
233 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 230 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
234 }; | 231 }; |
235 | 232 |
236 } // namespace content | 233 } // namespace content |
237 | 234 |
238 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 235 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
OLD | NEW |