| 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" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "components/webmessaging/broadcast_channel_provider.h" |
| 15 #include "content/browser/appcache/chrome_appcache_service.h" | 16 #include "content/browser/appcache/chrome_appcache_service.h" |
| 16 #include "content/browser/background_sync/background_sync_context.h" | 17 #include "content/browser/background_sync/background_sync_context.h" |
| 17 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 18 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 18 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 19 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 19 #include "content/browser/host_zoom_level_context.h" | 20 #include "content/browser/host_zoom_level_context.h" |
| 20 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 21 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 21 #include "content/browser/media/webrtc/webrtc_identity_store.h" | 22 #include "content/browser/media/webrtc/webrtc_identity_store.h" |
| 22 #include "content/browser/notifications/platform_notification_context_impl.h" | 23 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 23 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 24 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
| 24 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 DOMStorageContextWrapper* GetDOMStorageContext() override; | 63 DOMStorageContextWrapper* GetDOMStorageContext() override; |
| 63 IndexedDBContextImpl* GetIndexedDBContext() override; | 64 IndexedDBContextImpl* GetIndexedDBContext() override; |
| 64 CacheStorageContextImpl* GetCacheStorageContext() override; | 65 CacheStorageContextImpl* GetCacheStorageContext() override; |
| 65 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; | 66 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; |
| 66 HostZoomMap* GetHostZoomMap() override; | 67 HostZoomMap* GetHostZoomMap() override; |
| 67 HostZoomLevelContext* GetHostZoomLevelContext() override; | 68 HostZoomLevelContext* GetHostZoomLevelContext() override; |
| 68 ZoomLevelDelegate* GetZoomLevelDelegate() override; | 69 ZoomLevelDelegate* GetZoomLevelDelegate() override; |
| 69 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; | 70 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; |
| 70 | 71 |
| 71 BackgroundSyncContext* GetBackgroundSyncContext(); | 72 BackgroundSyncContext* GetBackgroundSyncContext(); |
| 73 webmessaging::BroadcastChannelProvider* GetBroadcastChannelProvider(); |
| 72 | 74 |
| 73 // mojom::StoragePartitionService interface. | 75 // mojom::StoragePartitionService interface. |
| 74 void OpenLocalStorage( | 76 void OpenLocalStorage( |
| 75 const url::Origin& origin, | 77 const url::Origin& origin, |
| 76 mojom::LevelDBObserverPtr observer, | 78 mojom::LevelDBObserverPtr observer, |
| 77 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; | 79 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; |
| 78 | 80 |
| 79 void ClearDataForOrigin(uint32_t remove_mask, | 81 void ClearDataForOrigin(uint32_t remove_mask, |
| 80 uint32_t quota_storage_remove_mask, | 82 uint32_t quota_storage_remove_mask, |
| 81 const GURL& storage_origin, | 83 const GURL& storage_origin, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 storage::FileSystemContext* filesystem_context, | 168 storage::FileSystemContext* filesystem_context, |
| 167 storage::DatabaseTracker* database_tracker, | 169 storage::DatabaseTracker* database_tracker, |
| 168 DOMStorageContextWrapper* dom_storage_context, | 170 DOMStorageContextWrapper* dom_storage_context, |
| 169 IndexedDBContextImpl* indexed_db_context, | 171 IndexedDBContextImpl* indexed_db_context, |
| 170 CacheStorageContextImpl* cache_storage_context, | 172 CacheStorageContextImpl* cache_storage_context, |
| 171 ServiceWorkerContextWrapper* service_worker_context, | 173 ServiceWorkerContextWrapper* service_worker_context, |
| 172 WebRTCIdentityStore* webrtc_identity_store, | 174 WebRTCIdentityStore* webrtc_identity_store, |
| 173 storage::SpecialStoragePolicy* special_storage_policy, | 175 storage::SpecialStoragePolicy* special_storage_policy, |
| 174 HostZoomLevelContext* host_zoom_level_context, | 176 HostZoomLevelContext* host_zoom_level_context, |
| 175 PlatformNotificationContextImpl* platform_notification_context, | 177 PlatformNotificationContextImpl* platform_notification_context, |
| 176 BackgroundSyncContext* background_sync_context); | 178 BackgroundSyncContext* background_sync_context, |
| 179 scoped_refptr<webmessaging::BroadcastChannelProvider> |
| 180 broadcast_channel_provider); |
| 177 | 181 |
| 178 // We will never have both remove_origin be populated and a cookie_matcher. | 182 // We will never have both remove_origin be populated and a cookie_matcher. |
| 179 void ClearDataImpl(uint32_t remove_mask, | 183 void ClearDataImpl(uint32_t remove_mask, |
| 180 uint32_t quota_storage_remove_mask, | 184 uint32_t quota_storage_remove_mask, |
| 181 const GURL& remove_origin, | 185 const GURL& remove_origin, |
| 182 const OriginMatcherFunction& origin_matcher, | 186 const OriginMatcherFunction& origin_matcher, |
| 183 const CookieMatcherFunction& cookie_matcher, | 187 const CookieMatcherFunction& cookie_matcher, |
| 184 net::URLRequestContextGetter* rq_context, | 188 net::URLRequestContextGetter* rq_context, |
| 185 const base::Time begin, | 189 const base::Time begin, |
| 186 const base::Time end, | 190 const base::Time end, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 212 scoped_refptr<storage::DatabaseTracker> database_tracker_; | 216 scoped_refptr<storage::DatabaseTracker> database_tracker_; |
| 213 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; | 217 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
| 214 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 218 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 215 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; | 219 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; |
| 216 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 220 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| 217 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 221 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
| 218 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 222 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
| 219 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; | 223 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; |
| 220 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; | 224 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; |
| 221 scoped_refptr<BackgroundSyncContext> background_sync_context_; | 225 scoped_refptr<BackgroundSyncContext> background_sync_context_; |
| 226 scoped_refptr<webmessaging::BroadcastChannelProvider> |
| 227 broadcast_channel_provider_; |
| 222 | 228 |
| 223 mojo::BindingSet<mojom::StoragePartitionService> bindings_; | 229 mojo::BindingSet<mojom::StoragePartitionService> bindings_; |
| 224 | 230 |
| 225 // Raw pointer that should always be valid. The BrowserContext owns the | 231 // Raw pointer that should always be valid. The BrowserContext owns the |
| 226 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 232 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
| 227 // BrowserContext is destroyed, |this| will be destroyed too. | 233 // BrowserContext is destroyed, |this| will be destroyed too. |
| 228 BrowserContext* browser_context_; | 234 BrowserContext* browser_context_; |
| 229 | 235 |
| 230 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 236 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 231 }; | 237 }; |
| 232 | 238 |
| 233 } // namespace content | 239 } // namespace content |
| 234 | 240 |
| 235 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 241 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |