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