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

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

Issue 2033353002: Remove PeerConnectionIdentityStore and related messaging/storage code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delayed deletion by 120s Created 4 years, 5 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 "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "components/webmessaging/broadcast_channel_provider.h" 15 #include "components/webmessaging/broadcast_channel_provider.h"
16 #include "content/browser/appcache/chrome_appcache_service.h" 16 #include "content/browser/appcache/chrome_appcache_service.h"
17 #include "content/browser/background_sync/background_sync_context.h" 17 #include "content/browser/background_sync/background_sync_context.h"
18 #include "content/browser/cache_storage/cache_storage_context_impl.h" 18 #include "content/browser/cache_storage/cache_storage_context_impl.h"
19 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 19 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
20 #include "content/browser/host_zoom_level_context.h" 20 #include "content/browser/host_zoom_level_context.h"
21 #include "content/browser/indexed_db/indexed_db_context_impl.h" 21 #include "content/browser/indexed_db/indexed_db_context_impl.h"
22 #include "content/browser/media/webrtc/webrtc_identity_store.h"
23 #include "content/browser/notifications/platform_notification_context_impl.h" 22 #include "content/browser/notifications/platform_notification_context_impl.h"
24 #include "content/browser/service_worker/service_worker_context_wrapper.h" 23 #include "content/browser/service_worker/service_worker_context_wrapper.h"
25 #include "content/common/content_export.h" 24 #include "content/common/content_export.h"
26 #include "content/common/storage_partition_service.mojom.h" 25 #include "content/common/storage_partition_service.mojom.h"
27 #include "content/public/browser/storage_partition.h" 26 #include "content/public/browser/storage_partition.h"
28 #include "mojo/public/cpp/bindings/binding_set.h" 27 #include "mojo/public/cpp/bindings/binding_set.h"
29 #include "net/cookies/cookie_store.h" 28 #include "net/cookies/cookie_store.h"
30 #include "storage/browser/quota/special_storage_policy.h" 29 #include "storage/browser/quota/special_storage_policy.h"
31 30
32 namespace content { 31 namespace content {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void ClearData(uint32_t remove_mask, 93 void ClearData(uint32_t remove_mask,
95 uint32_t quota_storage_remove_mask, 94 uint32_t quota_storage_remove_mask,
96 const OriginMatcherFunction& origin_matcher, 95 const OriginMatcherFunction& origin_matcher,
97 const CookieMatcherFunction& cookie_matcher, 96 const CookieMatcherFunction& cookie_matcher,
98 const base::Time begin, 97 const base::Time begin,
99 const base::Time end, 98 const base::Time end,
100 const base::Closure& callback) override; 99 const base::Closure& callback) override;
101 100
102 void Flush() override; 101 void Flush() override;
103 102
104 WebRTCIdentityStore* GetWebRTCIdentityStore();
105
106 // Can return nullptr while |this| is being destroyed. 103 // Can return nullptr while |this| is being destroyed.
107 BrowserContext* browser_context() const; 104 BrowserContext* browser_context() const;
108 105
109 // Called by each renderer process once. 106 // Called by each renderer process once.
110 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request); 107 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request);
111 108
112 struct DataDeletionHelper; 109 struct DataDeletionHelper;
113 struct QuotaManagedDataDeletionHelper; 110 struct QuotaManagedDataDeletionHelper;
114 111
115 private: 112 private:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 BrowserContext* browser_context, 161 BrowserContext* browser_context,
165 const base::FilePath& partition_path, 162 const base::FilePath& partition_path,
166 storage::QuotaManager* quota_manager, 163 storage::QuotaManager* quota_manager,
167 ChromeAppCacheService* appcache_service, 164 ChromeAppCacheService* appcache_service,
168 storage::FileSystemContext* filesystem_context, 165 storage::FileSystemContext* filesystem_context,
169 storage::DatabaseTracker* database_tracker, 166 storage::DatabaseTracker* database_tracker,
170 DOMStorageContextWrapper* dom_storage_context, 167 DOMStorageContextWrapper* dom_storage_context,
171 IndexedDBContextImpl* indexed_db_context, 168 IndexedDBContextImpl* indexed_db_context,
172 CacheStorageContextImpl* cache_storage_context, 169 CacheStorageContextImpl* cache_storage_context,
173 ServiceWorkerContextWrapper* service_worker_context, 170 ServiceWorkerContextWrapper* service_worker_context,
174 WebRTCIdentityStore* webrtc_identity_store,
175 storage::SpecialStoragePolicy* special_storage_policy, 171 storage::SpecialStoragePolicy* special_storage_policy,
176 HostZoomLevelContext* host_zoom_level_context, 172 HostZoomLevelContext* host_zoom_level_context,
177 PlatformNotificationContextImpl* platform_notification_context, 173 PlatformNotificationContextImpl* platform_notification_context,
178 BackgroundSyncContext* background_sync_context, 174 BackgroundSyncContext* background_sync_context,
179 scoped_refptr<webmessaging::BroadcastChannelProvider> 175 scoped_refptr<webmessaging::BroadcastChannelProvider>
180 broadcast_channel_provider); 176 broadcast_channel_provider);
181 177
182 // We will never have both remove_origin be populated and a cookie_matcher. 178 // We will never have both remove_origin be populated and a cookie_matcher.
183 void ClearDataImpl(uint32_t remove_mask, 179 void ClearDataImpl(uint32_t remove_mask,
184 uint32_t quota_storage_remove_mask, 180 uint32_t quota_storage_remove_mask,
(...skipping 26 matching lines...) Expand all
211 scoped_refptr<net::URLRequestContextGetter> url_request_context_; 207 scoped_refptr<net::URLRequestContextGetter> url_request_context_;
212 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 208 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
213 scoped_refptr<storage::QuotaManager> quota_manager_; 209 scoped_refptr<storage::QuotaManager> quota_manager_;
214 scoped_refptr<ChromeAppCacheService> appcache_service_; 210 scoped_refptr<ChromeAppCacheService> appcache_service_;
215 scoped_refptr<storage::FileSystemContext> filesystem_context_; 211 scoped_refptr<storage::FileSystemContext> filesystem_context_;
216 scoped_refptr<storage::DatabaseTracker> database_tracker_; 212 scoped_refptr<storage::DatabaseTracker> database_tracker_;
217 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 213 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
218 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 214 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
219 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 215 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
220 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 216 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
221 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
222 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 217 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
223 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 218 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
224 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 219 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
225 scoped_refptr<BackgroundSyncContext> background_sync_context_; 220 scoped_refptr<BackgroundSyncContext> background_sync_context_;
226 scoped_refptr<webmessaging::BroadcastChannelProvider> 221 scoped_refptr<webmessaging::BroadcastChannelProvider>
227 broadcast_channel_provider_; 222 broadcast_channel_provider_;
228 223
229 mojo::BindingSet<mojom::StoragePartitionService> bindings_; 224 mojo::BindingSet<mojom::StoragePartitionService> bindings_;
230 225
231 // Raw pointer that should always be valid. The BrowserContext owns the 226 // Raw pointer that should always be valid. The BrowserContext owns the
232 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 227 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
233 // BrowserContext is destroyed, |this| will be destroyed too. 228 // BrowserContext is destroyed, |this| will be destroyed too.
234 BrowserContext* browser_context_; 229 BrowserContext* browser_context_;
235 230
236 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 231 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
237 }; 232 };
238 233
239 } // namespace content 234 } // namespace content
240 235
241 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 236 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698