Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: content/browser/storage_partition_impl.h

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: cleaned up layout test code Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_sync/background_sync_context.h" 19 #include "content/browser/background_sync/background_sync_context.h"
20 #include "content/browser/bluetooth/bluetooth_allowed_devices_map.h"
20 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" 21 #include "content/browser/broadcast_channel/broadcast_channel_provider.h"
21 #include "content/browser/cache_storage/cache_storage_context_impl.h" 22 #include "content/browser/cache_storage/cache_storage_context_impl.h"
22 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 23 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
23 #include "content/browser/host_zoom_level_context.h" 24 #include "content/browser/host_zoom_level_context.h"
24 #include "content/browser/indexed_db/indexed_db_context_impl.h" 25 #include "content/browser/indexed_db/indexed_db_context_impl.h"
25 #include "content/browser/notifications/platform_notification_context_impl.h" 26 #include "content/browser/notifications/platform_notification_context_impl.h"
26 #include "content/browser/payments/payment_app_context_impl.h" 27 #include "content/browser/payments/payment_app_context_impl.h"
27 #include "content/browser/push_messaging/push_messaging_context.h" 28 #include "content/browser/push_messaging/push_messaging_context.h"
28 #include "content/browser/service_worker/service_worker_context_wrapper.h" 29 #include "content/browser/service_worker/service_worker_context_wrapper.h"
29 #include "content/common/content_export.h" 30 #include "content/common/content_export.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 storage::FileSystemContext* GetFileSystemContext() override; 69 storage::FileSystemContext* GetFileSystemContext() override;
69 storage::DatabaseTracker* GetDatabaseTracker() override; 70 storage::DatabaseTracker* GetDatabaseTracker() override;
70 DOMStorageContextWrapper* GetDOMStorageContext() override; 71 DOMStorageContextWrapper* GetDOMStorageContext() override;
71 IndexedDBContextImpl* GetIndexedDBContext() override; 72 IndexedDBContextImpl* GetIndexedDBContext() override;
72 CacheStorageContextImpl* GetCacheStorageContext() override; 73 CacheStorageContextImpl* GetCacheStorageContext() override;
73 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 74 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
74 HostZoomMap* GetHostZoomMap() override; 75 HostZoomMap* GetHostZoomMap() override;
75 HostZoomLevelContext* GetHostZoomLevelContext() override; 76 HostZoomLevelContext* GetHostZoomLevelContext() override;
76 ZoomLevelDelegate* GetZoomLevelDelegate() override; 77 ZoomLevelDelegate* GetZoomLevelDelegate() override;
77 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; 78 PlatformNotificationContextImpl* GetPlatformNotificationContext() override;
79 void ClearBluetoothAllowedDevicesMapForTesting() override;
78 80
79 BackgroundSyncContext* GetBackgroundSyncContext(); 81 BackgroundSyncContext* GetBackgroundSyncContext();
80 PaymentAppContextImpl* GetPaymentAppContext(); 82 PaymentAppContextImpl* GetPaymentAppContext();
81 BroadcastChannelProvider* GetBroadcastChannelProvider(); 83 BroadcastChannelProvider* GetBroadcastChannelProvider();
84 BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap();
82 85
83 // mojom::StoragePartitionService interface. 86 // mojom::StoragePartitionService interface.
84 void OpenLocalStorage( 87 void OpenLocalStorage(
85 const url::Origin& origin, 88 const url::Origin& origin,
86 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; 89 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override;
87 90
88 void ClearDataForOrigin(uint32_t remove_mask, 91 void ClearDataForOrigin(uint32_t remove_mask,
89 uint32_t quota_storage_remove_mask, 92 uint32_t quota_storage_remove_mask,
90 const GURL& storage_origin, 93 const GURL& storage_origin,
91 net::URLRequestContextGetter* request_context_getter, 94 net::URLRequestContextGetter* request_context_getter,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 216 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
214 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 217 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
215 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 218 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
216 scoped_refptr<PushMessagingContext> push_messaging_context_; 219 scoped_refptr<PushMessagingContext> push_messaging_context_;
217 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 220 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
218 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 221 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
219 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 222 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
220 scoped_refptr<BackgroundSyncContext> background_sync_context_; 223 scoped_refptr<BackgroundSyncContext> background_sync_context_;
221 scoped_refptr<PaymentAppContextImpl> payment_app_context_; 224 scoped_refptr<PaymentAppContextImpl> payment_app_context_;
222 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_; 225 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_;
226 scoped_refptr<BluetoothAllowedDevicesMap> bluetooth_allowed_devices_map_;
223 227
224 mojo::BindingSet<mojom::StoragePartitionService> bindings_; 228 mojo::BindingSet<mojom::StoragePartitionService> bindings_;
225 229
226 // Raw pointer that should always be valid. The BrowserContext owns the 230 // Raw pointer that should always be valid. The BrowserContext owns the
227 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 231 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
228 // BrowserContext is destroyed, |this| will be destroyed too. 232 // BrowserContext is destroyed, |this| will be destroyed too.
229 BrowserContext* browser_context_; 233 BrowserContext* browser_context_;
230 234
231 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; 235 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_;
232 236
233 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 237 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
234 }; 238 };
235 239
236 } // namespace content 240 } // namespace content
237 241
238 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 242 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698