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

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: Delete WebRTCIdentityStore files on startup (browser_prefs.cc) Created 4 years, 6 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 "content/browser/appcache/chrome_appcache_service.h" 15 #include "content/browser/appcache/chrome_appcache_service.h"
16 #include "content/browser/background_sync/background_sync_context.h" 16 #include "content/browser/background_sync/background_sync_context.h"
17 #include "content/browser/cache_storage/cache_storage_context_impl.h" 17 #include "content/browser/cache_storage/cache_storage_context_impl.h"
18 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 18 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
19 #include "content/browser/host_zoom_level_context.h" 19 #include "content/browser/host_zoom_level_context.h"
20 #include "content/browser/indexed_db/indexed_db_context_impl.h" 20 #include "content/browser/indexed_db/indexed_db_context_impl.h"
21 #include "content/browser/media/webrtc/webrtc_identity_store.h"
22 #include "content/browser/notifications/platform_notification_context_impl.h" 21 #include "content/browser/notifications/platform_notification_context_impl.h"
23 #include "content/browser/service_worker/service_worker_context_wrapper.h" 22 #include "content/browser/service_worker/service_worker_context_wrapper.h"
24 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
25 #include "content/common/storage_partition_service.mojom.h" 24 #include "content/common/storage_partition_service.mojom.h"
26 #include "content/public/browser/storage_partition.h" 25 #include "content/public/browser/storage_partition.h"
27 #include "mojo/public/cpp/bindings/binding_set.h" 26 #include "mojo/public/cpp/bindings/binding_set.h"
28 #include "net/cookies/cookie_store.h" 27 #include "net/cookies/cookie_store.h"
29 #include "storage/browser/quota/special_storage_policy.h" 28 #include "storage/browser/quota/special_storage_policy.h"
30 29
31 namespace content { 30 namespace content {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void ClearData(uint32_t remove_mask, 91 void ClearData(uint32_t remove_mask,
93 uint32_t quota_storage_remove_mask, 92 uint32_t quota_storage_remove_mask,
94 const OriginMatcherFunction& origin_matcher, 93 const OriginMatcherFunction& origin_matcher,
95 const CookieMatcherFunction& cookie_matcher, 94 const CookieMatcherFunction& cookie_matcher,
96 const base::Time begin, 95 const base::Time begin,
97 const base::Time end, 96 const base::Time end,
98 const base::Closure& callback) override; 97 const base::Closure& callback) override;
99 98
100 void Flush() override; 99 void Flush() override;
101 100
102 WebRTCIdentityStore* GetWebRTCIdentityStore();
103
104 // Can return nullptr while |this| is being destroyed. 101 // Can return nullptr while |this| is being destroyed.
105 BrowserContext* browser_context() const; 102 BrowserContext* browser_context() const;
106 103
107 // Called by each renderer process once. 104 // Called by each renderer process once.
108 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request); 105 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request);
109 106
110 struct DataDeletionHelper; 107 struct DataDeletionHelper;
111 struct QuotaManagedDataDeletionHelper; 108 struct QuotaManagedDataDeletionHelper;
112 109
113 private: 110 private:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 BrowserContext* browser_context, 159 BrowserContext* browser_context,
163 const base::FilePath& partition_path, 160 const base::FilePath& partition_path,
164 storage::QuotaManager* quota_manager, 161 storage::QuotaManager* quota_manager,
165 ChromeAppCacheService* appcache_service, 162 ChromeAppCacheService* appcache_service,
166 storage::FileSystemContext* filesystem_context, 163 storage::FileSystemContext* filesystem_context,
167 storage::DatabaseTracker* database_tracker, 164 storage::DatabaseTracker* database_tracker,
168 DOMStorageContextWrapper* dom_storage_context, 165 DOMStorageContextWrapper* dom_storage_context,
169 IndexedDBContextImpl* indexed_db_context, 166 IndexedDBContextImpl* indexed_db_context,
170 CacheStorageContextImpl* cache_storage_context, 167 CacheStorageContextImpl* cache_storage_context,
171 ServiceWorkerContextWrapper* service_worker_context, 168 ServiceWorkerContextWrapper* service_worker_context,
172 WebRTCIdentityStore* webrtc_identity_store,
173 storage::SpecialStoragePolicy* special_storage_policy, 169 storage::SpecialStoragePolicy* special_storage_policy,
174 HostZoomLevelContext* host_zoom_level_context, 170 HostZoomLevelContext* host_zoom_level_context,
175 PlatformNotificationContextImpl* platform_notification_context, 171 PlatformNotificationContextImpl* platform_notification_context,
176 BackgroundSyncContext* background_sync_context); 172 BackgroundSyncContext* background_sync_context);
177 173
178 // We will never have both remove_origin be populated and a cookie_matcher. 174 // We will never have both remove_origin be populated and a cookie_matcher.
179 void ClearDataImpl(uint32_t remove_mask, 175 void ClearDataImpl(uint32_t remove_mask,
180 uint32_t quota_storage_remove_mask, 176 uint32_t quota_storage_remove_mask,
181 const GURL& remove_origin, 177 const GURL& remove_origin,
182 const OriginMatcherFunction& origin_matcher, 178 const OriginMatcherFunction& origin_matcher,
(...skipping 24 matching lines...) Expand all
207 scoped_refptr<net::URLRequestContextGetter> url_request_context_; 203 scoped_refptr<net::URLRequestContextGetter> url_request_context_;
208 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 204 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
209 scoped_refptr<storage::QuotaManager> quota_manager_; 205 scoped_refptr<storage::QuotaManager> quota_manager_;
210 scoped_refptr<ChromeAppCacheService> appcache_service_; 206 scoped_refptr<ChromeAppCacheService> appcache_service_;
211 scoped_refptr<storage::FileSystemContext> filesystem_context_; 207 scoped_refptr<storage::FileSystemContext> filesystem_context_;
212 scoped_refptr<storage::DatabaseTracker> database_tracker_; 208 scoped_refptr<storage::DatabaseTracker> database_tracker_;
213 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 209 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
214 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 210 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
215 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 211 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
216 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 212 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
217 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
218 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 213 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
219 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 214 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
220 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 215 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
221 scoped_refptr<BackgroundSyncContext> background_sync_context_; 216 scoped_refptr<BackgroundSyncContext> background_sync_context_;
222 217
223 mojo::BindingSet<mojom::StoragePartitionService> bindings_; 218 mojo::BindingSet<mojom::StoragePartitionService> bindings_;
224 219
225 // Raw pointer that should always be valid. The BrowserContext owns the 220 // Raw pointer that should always be valid. The BrowserContext owns the
226 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 221 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
227 // BrowserContext is destroyed, |this| will be destroyed too. 222 // BrowserContext is destroyed, |this| will be destroyed too.
228 BrowserContext* browser_context_; 223 BrowserContext* browser_context_;
229 224
230 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 225 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
231 }; 226 };
232 227
233 } // namespace content 228 } // namespace content
234 229
235 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 230 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698