| 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 <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "content/browser/appcache/chrome_appcache_service.h" | 18 #include "content/browser/appcache/chrome_appcache_service.h" |
| 19 #include "content/browser/background_fetch/background_fetch_context.h" |
| 19 #include "content/browser/background_sync/background_sync_context.h" | 20 #include "content/browser/background_sync/background_sync_context.h" |
| 20 #include "content/browser/bluetooth/bluetooth_allowed_devices_map.h" | 21 #include "content/browser/bluetooth/bluetooth_allowed_devices_map.h" |
| 21 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" | 22 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" |
| 22 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 23 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 23 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 24 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 24 #include "content/browser/host_zoom_level_context.h" | 25 #include "content/browser/host_zoom_level_context.h" |
| 25 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 26 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 26 #include "content/browser/notifications/platform_notification_context_impl.h" | 27 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 27 #include "content/browser/payments/payment_app_context_impl.h" | 28 #include "content/browser/payments/payment_app_context_impl.h" |
| 28 #include "content/browser/push_messaging/push_messaging_context.h" | 29 #include "content/browser/push_messaging/push_messaging_context.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 DOMStorageContextWrapper* GetDOMStorageContext() override; | 72 DOMStorageContextWrapper* GetDOMStorageContext() override; |
| 72 IndexedDBContextImpl* GetIndexedDBContext() override; | 73 IndexedDBContextImpl* GetIndexedDBContext() override; |
| 73 CacheStorageContextImpl* GetCacheStorageContext() override; | 74 CacheStorageContextImpl* GetCacheStorageContext() override; |
| 74 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; | 75 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; |
| 75 HostZoomMap* GetHostZoomMap() override; | 76 HostZoomMap* GetHostZoomMap() override; |
| 76 HostZoomLevelContext* GetHostZoomLevelContext() override; | 77 HostZoomLevelContext* GetHostZoomLevelContext() override; |
| 77 ZoomLevelDelegate* GetZoomLevelDelegate() override; | 78 ZoomLevelDelegate* GetZoomLevelDelegate() override; |
| 78 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; | 79 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; |
| 79 void ClearBluetoothAllowedDevicesMapForTesting() override; | 80 void ClearBluetoothAllowedDevicesMapForTesting() override; |
| 80 | 81 |
| 82 BackgroundFetchContext* GetBackgroundFetchContext(); |
| 81 BackgroundSyncContext* GetBackgroundSyncContext(); | 83 BackgroundSyncContext* GetBackgroundSyncContext(); |
| 82 PaymentAppContextImpl* GetPaymentAppContext(); | 84 PaymentAppContextImpl* GetPaymentAppContext(); |
| 83 BroadcastChannelProvider* GetBroadcastChannelProvider(); | 85 BroadcastChannelProvider* GetBroadcastChannelProvider(); |
| 84 BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap(); | 86 BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap(); |
| 85 | 87 |
| 86 // mojom::StoragePartitionService interface. | 88 // mojom::StoragePartitionService interface. |
| 87 void OpenLocalStorage( | 89 void OpenLocalStorage( |
| 88 const url::Origin& origin, | 90 const url::Origin& origin, |
| 89 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; | 91 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; |
| 90 | 92 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 scoped_refptr<storage::FileSystemContext> filesystem_context_; | 215 scoped_refptr<storage::FileSystemContext> filesystem_context_; |
| 214 scoped_refptr<storage::DatabaseTracker> database_tracker_; | 216 scoped_refptr<storage::DatabaseTracker> database_tracker_; |
| 215 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; | 217 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; |
| 216 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; | 218 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; |
| 217 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; | 219 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; |
| 218 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; | 220 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; |
| 219 scoped_refptr<PushMessagingContext> push_messaging_context_; | 221 scoped_refptr<PushMessagingContext> push_messaging_context_; |
| 220 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; | 222 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; |
| 221 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; | 223 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; |
| 222 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; | 224 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; |
| 225 scoped_refptr<BackgroundFetchContext> background_fetch_context_; |
| 223 scoped_refptr<BackgroundSyncContext> background_sync_context_; | 226 scoped_refptr<BackgroundSyncContext> background_sync_context_; |
| 224 scoped_refptr<PaymentAppContextImpl> payment_app_context_; | 227 scoped_refptr<PaymentAppContextImpl> payment_app_context_; |
| 225 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_; | 228 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_; |
| 226 scoped_refptr<BluetoothAllowedDevicesMap> bluetooth_allowed_devices_map_; | 229 scoped_refptr<BluetoothAllowedDevicesMap> bluetooth_allowed_devices_map_; |
| 227 | 230 |
| 228 mojo::BindingSet<mojom::StoragePartitionService> bindings_; | 231 mojo::BindingSet<mojom::StoragePartitionService> bindings_; |
| 229 | 232 |
| 230 // Raw pointer that should always be valid. The BrowserContext owns the | 233 // Raw pointer that should always be valid. The BrowserContext owns the |
| 231 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the | 234 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the |
| 232 // BrowserContext is destroyed, |this| will be destroyed too. | 235 // BrowserContext is destroyed, |this| will be destroyed too. |
| 233 BrowserContext* browser_context_; | 236 BrowserContext* browser_context_; |
| 234 | 237 |
| 235 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; | 238 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; |
| 236 | 239 |
| 237 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 240 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 238 }; | 241 }; |
| 239 | 242 |
| 240 } // namespace content | 243 } // namespace content |
| 241 | 244 |
| 242 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 245 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |