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

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: Remove unused public stubs 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/service_worker/cache_storage_context_impl.h"
17 #include "content/browser/service_worker/service_worker_context_wrapper.h" 18 #include "content/browser/service_worker/service_worker_context_wrapper.h"
18 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
19 #include "content/public/browser/storage_partition.h" 20 #include "content/public/browser/storage_partition.h"
20 #include "storage/browser/quota/special_storage_policy.h" 21 #include "storage/browser/quota/special_storage_policy.h"
21 22
22 namespace content { 23 namespace content {
23 24
24 class StoragePartitionImpl : public StoragePartition { 25 class StoragePartitionImpl : public StoragePartition {
25 public: 26 public:
26 CONTENT_EXPORT ~StoragePartitionImpl() override; 27 CONTENT_EXPORT ~StoragePartitionImpl() override;
(...skipping 10 matching lines...) Expand all
37 // StoragePartition interface. 38 // StoragePartition interface.
38 base::FilePath GetPath() override; 39 base::FilePath GetPath() override;
39 net::URLRequestContextGetter* GetURLRequestContext() override; 40 net::URLRequestContextGetter* GetURLRequestContext() override;
40 net::URLRequestContextGetter* GetMediaURLRequestContext() override; 41 net::URLRequestContextGetter* GetMediaURLRequestContext() override;
41 storage::QuotaManager* GetQuotaManager() override; 42 storage::QuotaManager* GetQuotaManager() override;
42 ChromeAppCacheService* GetAppCacheService() override; 43 ChromeAppCacheService* GetAppCacheService() override;
43 storage::FileSystemContext* GetFileSystemContext() override; 44 storage::FileSystemContext* GetFileSystemContext() override;
44 storage::DatabaseTracker* GetDatabaseTracker() override; 45 storage::DatabaseTracker* GetDatabaseTracker() override;
45 DOMStorageContextWrapper* GetDOMStorageContext() override; 46 DOMStorageContextWrapper* GetDOMStorageContext() override;
46 IndexedDBContextImpl* GetIndexedDBContext() override; 47 IndexedDBContextImpl* GetIndexedDBContext() override;
48 // TODO(jsbell): Expose this on the public API as well. crbug.com/466371
49 CacheStorageContextImpl* GetCacheStorageContext();
47 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 50 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
48 GeofencingManager* GetGeofencingManager() override; 51 GeofencingManager* GetGeofencingManager() override;
49 HostZoomMap* GetHostZoomMap() override; 52 HostZoomMap* GetHostZoomMap() override;
50 HostZoomLevelContext* GetHostZoomLevelContext() override; 53 HostZoomLevelContext* GetHostZoomLevelContext() override;
51 ZoomLevelDelegate* GetZoomLevelDelegate() override; 54 ZoomLevelDelegate* GetZoomLevelDelegate() override;
52 NavigatorConnectContextImpl* GetNavigatorConnectContext() override; 55 NavigatorConnectContextImpl* GetNavigatorConnectContext() override;
53 56
54 void ClearDataForOrigin(uint32 remove_mask, 57 void ClearDataForOrigin(uint32 remove_mask,
55 uint32 quota_storage_remove_mask, 58 uint32 quota_storage_remove_mask,
56 const GURL& storage_origin, 59 const GURL& storage_origin,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 121
119 CONTENT_EXPORT StoragePartitionImpl( 122 CONTENT_EXPORT StoragePartitionImpl(
120 BrowserContext* browser_context, 123 BrowserContext* browser_context,
121 const base::FilePath& partition_path, 124 const base::FilePath& partition_path,
122 storage::QuotaManager* quota_manager, 125 storage::QuotaManager* quota_manager,
123 ChromeAppCacheService* appcache_service, 126 ChromeAppCacheService* appcache_service,
124 storage::FileSystemContext* filesystem_context, 127 storage::FileSystemContext* filesystem_context,
125 storage::DatabaseTracker* database_tracker, 128 storage::DatabaseTracker* database_tracker,
126 DOMStorageContextWrapper* dom_storage_context, 129 DOMStorageContextWrapper* dom_storage_context,
127 IndexedDBContextImpl* indexed_db_context, 130 IndexedDBContextImpl* indexed_db_context,
131 CacheStorageContextImpl* cache_storage_context,
128 ServiceWorkerContextWrapper* service_worker_context, 132 ServiceWorkerContextWrapper* service_worker_context,
129 WebRTCIdentityStore* webrtc_identity_store, 133 WebRTCIdentityStore* webrtc_identity_store,
130 storage::SpecialStoragePolicy* special_storage_policy, 134 storage::SpecialStoragePolicy* special_storage_policy,
131 GeofencingManager* geofencing_manager, 135 GeofencingManager* geofencing_manager,
132 HostZoomLevelContext* host_zoom_level_context, 136 HostZoomLevelContext* host_zoom_level_context,
133 NavigatorConnectContextImpl* navigator_connect_context); 137 NavigatorConnectContextImpl* navigator_connect_context);
134 138
135 void ClearDataImpl(uint32 remove_mask, 139 void ClearDataImpl(uint32 remove_mask,
136 uint32 quota_storage_remove_mask, 140 uint32 quota_storage_remove_mask,
137 const GURL& remove_origin, 141 const GURL& remove_origin,
(...skipping 22 matching lines...) Expand all
160 164
161 base::FilePath partition_path_; 165 base::FilePath partition_path_;
162 scoped_refptr<net::URLRequestContextGetter> url_request_context_; 166 scoped_refptr<net::URLRequestContextGetter> url_request_context_;
163 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 167 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
164 scoped_refptr<storage::QuotaManager> quota_manager_; 168 scoped_refptr<storage::QuotaManager> quota_manager_;
165 scoped_refptr<ChromeAppCacheService> appcache_service_; 169 scoped_refptr<ChromeAppCacheService> appcache_service_;
166 scoped_refptr<storage::FileSystemContext> filesystem_context_; 170 scoped_refptr<storage::FileSystemContext> filesystem_context_;
167 scoped_refptr<storage::DatabaseTracker> database_tracker_; 171 scoped_refptr<storage::DatabaseTracker> database_tracker_;
168 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 172 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
169 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 173 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
174 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
170 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 175 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
171 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 176 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
172 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 177 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
173 scoped_refptr<GeofencingManager> geofencing_manager_; 178 scoped_refptr<GeofencingManager> geofencing_manager_;
174 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 179 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
175 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; 180 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_;
176 181
177 // Raw pointer that should always be valid. The BrowserContext owns the 182 // Raw pointer that should always be valid. The BrowserContext owns the
178 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 183 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
179 // BrowserContext is destroyed, |this| will be destroyed too. 184 // BrowserContext is destroyed, |this| will be destroyed too.
180 BrowserContext* browser_context_; 185 BrowserContext* browser_context_;
181 186
182 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 187 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
183 }; 188 };
184 189
185 } // namespace content 190 } // namespace content
186 191
187 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 192 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698