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

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

Issue 1110103003: Initial implementation of stashed message ports, content side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nicer dchecks Created 5 years, 7 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/background_sync/background_sync_context_impl.h" 12 #include "content/browser/background_sync/background_sync_context_impl.h"
13 #include "content/browser/cache_storage/cache_storage_context_impl.h" 13 #include "content/browser/cache_storage/cache_storage_context_impl.h"
14 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 14 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
15 #include "content/browser/host_zoom_level_context.h" 15 #include "content/browser/host_zoom_level_context.h"
16 #include "content/browser/indexed_db/indexed_db_context_impl.h" 16 #include "content/browser/indexed_db/indexed_db_context_impl.h"
17 #include "content/browser/media/webrtc_identity_store.h" 17 #include "content/browser/media/webrtc_identity_store.h"
18 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" 18 #include "content/browser/navigator_connect/navigator_connect_context_impl.h"
19 #include "content/browser/notifications/platform_notification_context_impl.h" 19 #include "content/browser/notifications/platform_notification_context_impl.h"
20 #include "content/browser/service_worker/service_worker_context_wrapper.h" 20 #include "content/browser/service_worker/service_worker_context_wrapper.h"
21 #include "content/browser/service_worker/stashed_port_manager.h"
21 #include "content/common/content_export.h" 22 #include "content/common/content_export.h"
22 #include "content/public/browser/storage_partition.h" 23 #include "content/public/browser/storage_partition.h"
23 #include "storage/browser/quota/special_storage_policy.h" 24 #include "storage/browser/quota/special_storage_policy.h"
24 25
25 namespace content { 26 namespace content {
26 27
27 class StoragePartitionImpl : public StoragePartition { 28 class StoragePartitionImpl : public StoragePartition {
28 public: 29 public:
29 CONTENT_EXPORT ~StoragePartitionImpl() override; 30 CONTENT_EXPORT ~StoragePartitionImpl() override;
30 31
(...skipping 19 matching lines...) Expand all
50 // TODO(jsbell): Expose this on the public API as well. crbug.com/466371 51 // TODO(jsbell): Expose this on the public API as well. crbug.com/466371
51 CacheStorageContextImpl* GetCacheStorageContext(); 52 CacheStorageContextImpl* GetCacheStorageContext();
52 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 53 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
53 GeofencingManager* GetGeofencingManager() override; 54 GeofencingManager* GetGeofencingManager() override;
54 HostZoomMap* GetHostZoomMap() override; 55 HostZoomMap* GetHostZoomMap() override;
55 HostZoomLevelContext* GetHostZoomLevelContext() override; 56 HostZoomLevelContext* GetHostZoomLevelContext() override;
56 ZoomLevelDelegate* GetZoomLevelDelegate() override; 57 ZoomLevelDelegate* GetZoomLevelDelegate() override;
57 NavigatorConnectContextImpl* GetNavigatorConnectContext() override; 58 NavigatorConnectContextImpl* GetNavigatorConnectContext() override;
58 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; 59 PlatformNotificationContextImpl* GetPlatformNotificationContext() override;
59 BackgroundSyncContextImpl* GetBackgroundSyncContext(); 60 BackgroundSyncContextImpl* GetBackgroundSyncContext();
61 StashedPortManager* GetStashedPortManager();
60 62
61 void ClearDataForOrigin(uint32 remove_mask, 63 void ClearDataForOrigin(uint32 remove_mask,
62 uint32 quota_storage_remove_mask, 64 uint32 quota_storage_remove_mask,
63 const GURL& storage_origin, 65 const GURL& storage_origin,
64 net::URLRequestContextGetter* request_context_getter, 66 net::URLRequestContextGetter* request_context_getter,
65 const base::Closure& callback) override; 67 const base::Closure& callback) override;
66 void ClearData(uint32 remove_mask, 68 void ClearData(uint32 remove_mask,
67 uint32 quota_storage_remove_mask, 69 uint32 quota_storage_remove_mask,
68 const GURL& storage_origin, 70 const GURL& storage_origin,
69 const OriginMatcherFunction& origin_matcher, 71 const OriginMatcherFunction& origin_matcher,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 DOMStorageContextWrapper* dom_storage_context, 137 DOMStorageContextWrapper* dom_storage_context,
136 IndexedDBContextImpl* indexed_db_context, 138 IndexedDBContextImpl* indexed_db_context,
137 CacheStorageContextImpl* cache_storage_context, 139 CacheStorageContextImpl* cache_storage_context,
138 ServiceWorkerContextWrapper* service_worker_context, 140 ServiceWorkerContextWrapper* service_worker_context,
139 WebRTCIdentityStore* webrtc_identity_store, 141 WebRTCIdentityStore* webrtc_identity_store,
140 storage::SpecialStoragePolicy* special_storage_policy, 142 storage::SpecialStoragePolicy* special_storage_policy,
141 GeofencingManager* geofencing_manager, 143 GeofencingManager* geofencing_manager,
142 HostZoomLevelContext* host_zoom_level_context, 144 HostZoomLevelContext* host_zoom_level_context,
143 NavigatorConnectContextImpl* navigator_connect_context, 145 NavigatorConnectContextImpl* navigator_connect_context,
144 PlatformNotificationContextImpl* platform_notification_context, 146 PlatformNotificationContextImpl* platform_notification_context,
145 BackgroundSyncContextImpl* background_sync_context); 147 BackgroundSyncContextImpl* background_sync_context,
148 StashedPortManager* stashed_port_manager);
146 149
147 void ClearDataImpl(uint32 remove_mask, 150 void ClearDataImpl(uint32 remove_mask,
148 uint32 quota_storage_remove_mask, 151 uint32 quota_storage_remove_mask,
149 const GURL& remove_origin, 152 const GURL& remove_origin,
150 const OriginMatcherFunction& origin_matcher, 153 const OriginMatcherFunction& origin_matcher,
151 net::URLRequestContextGetter* rq_context, 154 net::URLRequestContextGetter* rq_context,
152 const base::Time begin, 155 const base::Time begin,
153 const base::Time end, 156 const base::Time end,
154 const base::Closure& callback); 157 const base::Closure& callback);
155 158
(...skipping 25 matching lines...) Expand all
181 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 184 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
182 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 185 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
183 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 186 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
184 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 187 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
185 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 188 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
186 scoped_refptr<GeofencingManager> geofencing_manager_; 189 scoped_refptr<GeofencingManager> geofencing_manager_;
187 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 190 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
188 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; 191 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_;
189 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 192 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
190 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_; 193 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_;
194 scoped_refptr<StashedPortManager> stashed_port_manager_;
191 195
192 // Raw pointer that should always be valid. The BrowserContext owns the 196 // Raw pointer that should always be valid. The BrowserContext owns the
193 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 197 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
194 // BrowserContext is destroyed, |this| will be destroyed too. 198 // BrowserContext is destroyed, |this| will be destroyed too.
195 BrowserContext* browser_context_; 199 BrowserContext* browser_context_;
196 200
197 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 201 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
198 }; 202 };
199 203
200 } // namespace content 204 } // namespace content
201 205
202 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 206 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/stashed_port_manager.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698