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

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: 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 DOMStorageContextWrapper* dom_storage_context, 135 DOMStorageContextWrapper* dom_storage_context,
134 IndexedDBContextImpl* indexed_db_context, 136 IndexedDBContextImpl* indexed_db_context,
135 CacheStorageContextImpl* cache_storage_context, 137 CacheStorageContextImpl* cache_storage_context,
136 ServiceWorkerContextWrapper* service_worker_context, 138 ServiceWorkerContextWrapper* service_worker_context,
137 WebRTCIdentityStore* webrtc_identity_store, 139 WebRTCIdentityStore* webrtc_identity_store,
138 storage::SpecialStoragePolicy* special_storage_policy, 140 storage::SpecialStoragePolicy* special_storage_policy,
139 GeofencingManager* geofencing_manager, 141 GeofencingManager* geofencing_manager,
140 HostZoomLevelContext* host_zoom_level_context, 142 HostZoomLevelContext* host_zoom_level_context,
141 NavigatorConnectContextImpl* navigator_connect_context, 143 NavigatorConnectContextImpl* navigator_connect_context,
142 PlatformNotificationContextImpl* platform_notification_context, 144 PlatformNotificationContextImpl* platform_notification_context,
143 BackgroundSyncContextImpl* background_sync_context); 145 BackgroundSyncContextImpl* background_sync_context,
146 StashedPortManager* stashed_port_manager);
144 147
145 void ClearDataImpl(uint32 remove_mask, 148 void ClearDataImpl(uint32 remove_mask,
146 uint32 quota_storage_remove_mask, 149 uint32 quota_storage_remove_mask,
147 const GURL& remove_origin, 150 const GURL& remove_origin,
148 const OriginMatcherFunction& origin_matcher, 151 const OriginMatcherFunction& origin_matcher,
149 net::URLRequestContextGetter* rq_context, 152 net::URLRequestContextGetter* rq_context,
150 const base::Time begin, 153 const base::Time begin,
151 const base::Time end, 154 const base::Time end,
152 const base::Closure& callback); 155 const base::Closure& callback);
153 156
(...skipping 25 matching lines...) Expand all
179 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 182 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
180 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 183 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
181 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 184 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
182 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 185 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
183 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 186 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
184 scoped_refptr<GeofencingManager> geofencing_manager_; 187 scoped_refptr<GeofencingManager> geofencing_manager_;
185 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 188 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
186 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_; 189 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context_;
187 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 190 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
188 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_; 191 scoped_refptr<BackgroundSyncContextImpl> background_sync_context_;
192 scoped_refptr<StashedPortManager> stashed_port_manager_;
189 193
190 // Raw pointer that should always be valid. The BrowserContext owns the 194 // Raw pointer that should always be valid. The BrowserContext owns the
191 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 195 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
192 // BrowserContext is destroyed, |this| will be destroyed too. 196 // BrowserContext is destroyed, |this| will be destroyed too.
193 BrowserContext* browser_context_; 197 BrowserContext* browser_context_;
194 198
195 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 199 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
196 }; 200 };
197 201
198 } // namespace content 202 } // namespace content
199 203
200 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 204 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698