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

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

Issue 992353003: Decouple Cache Storage messaging from Service Worker/Embedded Worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 9 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "content/browser/appcache/chrome_appcache_service.h" 11 #include "content/browser/appcache/chrome_appcache_service.h"
12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
13 #include "content/browser/host_zoom_level_context.h" 13 #include "content/browser/host_zoom_level_context.h"
14 #include "content/browser/indexed_db/indexed_db_context_impl.h" 14 #include "content/browser/indexed_db/indexed_db_context_impl.h"
15 #include "content/browser/media/webrtc_identity_store.h" 15 #include "content/browser/media/webrtc_identity_store.h"
16 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" 16 #include "content/browser/navigator_connect/navigator_connect_context_impl.h"
17 #include "content/browser/notifications/platform_notification_context_impl.h" 17 #include "content/browser/notifications/platform_notification_context_impl.h"
18 #include "content/browser/service_worker/cache_storage_context_impl.h"
18 #include "content/browser/service_worker/service_worker_context_wrapper.h" 19 #include "content/browser/service_worker/service_worker_context_wrapper.h"
19 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
20 #include "content/public/browser/storage_partition.h" 21 #include "content/public/browser/storage_partition.h"
21 #include "storage/browser/quota/special_storage_policy.h" 22 #include "storage/browser/quota/special_storage_policy.h"
22 23
23 namespace content { 24 namespace content {
24 25
25 class StoragePartitionImpl : public StoragePartition { 26 class StoragePartitionImpl : public StoragePartition {
26 public: 27 public:
27 CONTENT_EXPORT ~StoragePartitionImpl() override; 28 CONTENT_EXPORT ~StoragePartitionImpl() override;
(...skipping 10 matching lines...) Expand all
38 // StoragePartition interface. 39 // StoragePartition interface.
39 base::FilePath GetPath() override; 40 base::FilePath GetPath() override;
40 net::URLRequestContextGetter* GetURLRequestContext() override; 41 net::URLRequestContextGetter* GetURLRequestContext() override;
41 net::URLRequestContextGetter* GetMediaURLRequestContext() override; 42 net::URLRequestContextGetter* GetMediaURLRequestContext() override;
42 storage::QuotaManager* GetQuotaManager() override; 43 storage::QuotaManager* GetQuotaManager() override;
43 ChromeAppCacheService* GetAppCacheService() override; 44 ChromeAppCacheService* GetAppCacheService() override;
44 storage::FileSystemContext* GetFileSystemContext() override; 45 storage::FileSystemContext* GetFileSystemContext() override;
45 storage::DatabaseTracker* GetDatabaseTracker() override; 46 storage::DatabaseTracker* GetDatabaseTracker() override;
46 DOMStorageContextWrapper* GetDOMStorageContext() override; 47 DOMStorageContextWrapper* GetDOMStorageContext() override;
47 IndexedDBContextImpl* GetIndexedDBContext() override; 48 IndexedDBContextImpl* GetIndexedDBContext() override;
49 // TODO(jsbell): Expose this on the public API as well. crbug.com/466371
50 CacheStorageContextImpl* GetCacheStorageContext();
48 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 51 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
49 GeofencingManager* GetGeofencingManager() override; 52 GeofencingManager* GetGeofencingManager() override;
50 HostZoomMap* GetHostZoomMap() override; 53 HostZoomMap* GetHostZoomMap() override;
51 HostZoomLevelContext* GetHostZoomLevelContext() override; 54 HostZoomLevelContext* GetHostZoomLevelContext() override;
52 ZoomLevelDelegate* GetZoomLevelDelegate() override; 55 ZoomLevelDelegate* GetZoomLevelDelegate() override;
53 NavigatorConnectContextImpl* GetNavigatorConnectContext() override; 56 NavigatorConnectContextImpl* GetNavigatorConnectContext() override;
54 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; 57 PlatformNotificationContextImpl* GetPlatformNotificationContext() override;
55 58
56 void ClearDataForOrigin(uint32 remove_mask, 59 void ClearDataForOrigin(uint32 remove_mask,
57 uint32 quota_storage_remove_mask, 60 uint32 quota_storage_remove_mask,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 123
121 CONTENT_EXPORT StoragePartitionImpl( 124 CONTENT_EXPORT StoragePartitionImpl(
122 BrowserContext* browser_context, 125 BrowserContext* browser_context,
123 const base::FilePath& partition_path, 126 const base::FilePath& partition_path,
124 storage::QuotaManager* quota_manager, 127 storage::QuotaManager* quota_manager,
125 ChromeAppCacheService* appcache_service, 128 ChromeAppCacheService* appcache_service,
126 storage::FileSystemContext* filesystem_context, 129 storage::FileSystemContext* filesystem_context,
127 storage::DatabaseTracker* database_tracker, 130 storage::DatabaseTracker* database_tracker,
128 DOMStorageContextWrapper* dom_storage_context, 131 DOMStorageContextWrapper* dom_storage_context,
129 IndexedDBContextImpl* indexed_db_context, 132 IndexedDBContextImpl* indexed_db_context,
133 CacheStorageContextImpl* cache_storage_context,
130 ServiceWorkerContextWrapper* service_worker_context, 134 ServiceWorkerContextWrapper* service_worker_context,
131 WebRTCIdentityStore* webrtc_identity_store, 135 WebRTCIdentityStore* webrtc_identity_store,
132 storage::SpecialStoragePolicy* special_storage_policy, 136 storage::SpecialStoragePolicy* special_storage_policy,
133 GeofencingManager* geofencing_manager, 137 GeofencingManager* geofencing_manager,
134 HostZoomLevelContext* host_zoom_level_context, 138 HostZoomLevelContext* host_zoom_level_context,
135 NavigatorConnectContextImpl* navigator_connect_context, 139 NavigatorConnectContextImpl* navigator_connect_context,
136 PlatformNotificationContextImpl* platform_notification_context); 140 PlatformNotificationContextImpl* platform_notification_context);
137 141
138 void ClearDataImpl(uint32 remove_mask, 142 void ClearDataImpl(uint32 remove_mask,
139 uint32 quota_storage_remove_mask, 143 uint32 quota_storage_remove_mask,
(...skipping 23 matching lines...) Expand all
163 167
164 base::FilePath partition_path_; 168 base::FilePath partition_path_;
165 scoped_refptr<net::URLRequestContextGetter> url_request_context_; 169 scoped_refptr<net::URLRequestContextGetter> url_request_context_;
166 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 170 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
167 scoped_refptr<storage::QuotaManager> quota_manager_; 171 scoped_refptr<storage::QuotaManager> quota_manager_;
168 scoped_refptr<ChromeAppCacheService> appcache_service_; 172 scoped_refptr<ChromeAppCacheService> appcache_service_;
169 scoped_refptr<storage::FileSystemContext> filesystem_context_; 173 scoped_refptr<storage::FileSystemContext> filesystem_context_;
170 scoped_refptr<storage::DatabaseTracker> database_tracker_; 174 scoped_refptr<storage::DatabaseTracker> database_tracker_;
171 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 175 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
172 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 176 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
177 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
173 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 178 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
174 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 179 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
175 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 180 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
176 scoped_refptr<GeofencingManager> geofencing_manager_; 181 scoped_refptr<GeofencingManager> geofencing_manager_;
177 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 182 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
178 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; 183 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_;
179 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 184 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
180 185
181 // Raw pointer that should always be valid. The BrowserContext owns the 186 // Raw pointer that should always be valid. The BrowserContext owns the
182 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 187 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
183 // BrowserContext is destroyed, |this| will be destroyed too. 188 // BrowserContext is destroyed, |this| will be destroyed too.
184 BrowserContext* browser_context_; 189 BrowserContext* browser_context_;
185 190
186 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 191 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
187 }; 192 };
188 193
189 } // namespace content 194 } // namespace content
190 195
191 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 196 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version_unittest.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698