| 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 "content/browser/appcache/chrome_appcache_service.h" | 15 #include "content/browser/appcache/chrome_appcache_service.h" |
| 16 #include "content/browser/background_sync/background_sync_context_impl.h" | 16 #include "content/browser/background_sync/background_sync_context_impl.h" |
| 17 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 17 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 18 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 18 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 19 #include "content/browser/host_zoom_level_context.h" | 19 #include "content/browser/host_zoom_level_context.h" |
| 20 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 20 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 21 #include "content/browser/media/webrtc/webrtc_identity_store.h" | 21 #include "content/browser/media/webrtc/webrtc_identity_store.h" |
| 22 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" | 22 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" |
| 23 #include "content/browser/notifications/platform_notification_context_impl.h" | 23 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 24 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 24 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
| 25 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
| 26 #include "content/common/storage_partition_service.mojom.h" | 26 #include "content/common/storage_partition_service.mojom.h" |
| 27 #include "content/public/browser/storage_partition.h" | 27 #include "content/public/browser/storage_partition.h" |
| 28 #include "mojo/public/cpp/bindings/weak_binding_set.h" | 28 #include "mojo/public/cpp/bindings/binding_set.h" |
| 29 #include "storage/browser/quota/special_storage_policy.h" | 29 #include "storage/browser/quota/special_storage_policy.h" |
| 30 | 30 |
| 31 namespace content { | 31 namespace content { |
| 32 | 32 |
| 33 class StoragePartitionImpl : public StoragePartition, | 33 class StoragePartitionImpl : public StoragePartition, |
| 34 public StoragePartitionService { | 34 public StoragePartitionService { |
| 35 public: | 35 public: |
| 36 CONTENT_EXPORT ~StoragePartitionImpl() override; | 36 CONTENT_EXPORT ~StoragePartitionImpl() override; |
| 37 | 37 |
| 38 // Quota managed data uses a different bitmask for types than | 38 // Quota managed data uses a different bitmask for types than |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; | 199 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; |
| 200 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 200 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| 201 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; | 201 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; |
| 202 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 202 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
| 203 scoped_refptr<GeofencingManager> geofencing_manager_; | 203 scoped_refptr<GeofencingManager> geofencing_manager_; |
| 204 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; | 204 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; |
| 205 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; | 205 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; |
| 206 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; | 206 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; |
| 207 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_; | 207 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_; |
| 208 | 208 |
| 209 mojo::WeakBindingSet<StoragePartitionService> bindings_; | 209 mojo::BindingSet<StoragePartitionService> bindings_; |
| 210 | 210 |
| 211 // Raw pointer that should always be valid. The BrowserContext owns the | 211 // Raw pointer that should always be valid. The BrowserContext owns the |
| 212 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 212 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
| 213 // BrowserContext is destroyed, |this| will be destroyed too. | 213 // BrowserContext is destroyed, |this| will be destroyed too. |
| 214 BrowserContext* browser_context_; | 214 BrowserContext* browser_context_; |
| 215 | 215 |
| 216 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 216 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 } // namespace content | 219 } // namespace content |
| 220 | 220 |
| 221 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 221 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |