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

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

Issue 2557473003: PaymentApp: Factor out functions to serialize/deserialize manifest data. (Closed)
Patch Set: test Created 4 years 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 <memory> 10 #include <memory>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "content/browser/appcache/chrome_appcache_service.h" 17 #include "content/browser/appcache/chrome_appcache_service.h"
18 #include "content/browser/background_sync/background_sync_context.h" 18 #include "content/browser/background_sync/background_sync_context.h"
19 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" 19 #include "content/browser/broadcast_channel/broadcast_channel_provider.h"
20 #include "content/browser/cache_storage/cache_storage_context_impl.h" 20 #include "content/browser/cache_storage/cache_storage_context_impl.h"
21 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 21 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
22 #include "content/browser/host_zoom_level_context.h" 22 #include "content/browser/host_zoom_level_context.h"
23 #include "content/browser/indexed_db/indexed_db_context_impl.h" 23 #include "content/browser/indexed_db/indexed_db_context_impl.h"
24 #include "content/browser/notifications/platform_notification_context_impl.h" 24 #include "content/browser/notifications/platform_notification_context_impl.h"
25 #include "content/browser/payments/payment_app_context.h" 25 #include "content/browser/payments/payment_app_context_impl.h"
26 #include "content/browser/service_worker/service_worker_context_wrapper.h" 26 #include "content/browser/service_worker/service_worker_context_wrapper.h"
27 #include "content/common/content_export.h" 27 #include "content/common/content_export.h"
28 #include "content/common/storage_partition_service.mojom.h" 28 #include "content/common/storage_partition_service.mojom.h"
29 #include "content/public/browser/storage_partition.h" 29 #include "content/public/browser/storage_partition.h"
30 #include "mojo/public/cpp/bindings/binding_set.h" 30 #include "mojo/public/cpp/bindings/binding_set.h"
31 #include "net/cookies/cookie_store.h" 31 #include "net/cookies/cookie_store.h"
32 #include "storage/browser/quota/special_storage_policy.h" 32 #include "storage/browser/quota/special_storage_policy.h"
33 33
34 namespace content { 34 namespace content {
35 35
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DOMStorageContextWrapper* GetDOMStorageContext() override; 68 DOMStorageContextWrapper* GetDOMStorageContext() override;
69 IndexedDBContextImpl* GetIndexedDBContext() override; 69 IndexedDBContextImpl* GetIndexedDBContext() override;
70 CacheStorageContextImpl* GetCacheStorageContext() override; 70 CacheStorageContextImpl* GetCacheStorageContext() override;
71 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 71 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
72 HostZoomMap* GetHostZoomMap() override; 72 HostZoomMap* GetHostZoomMap() override;
73 HostZoomLevelContext* GetHostZoomLevelContext() override; 73 HostZoomLevelContext* GetHostZoomLevelContext() override;
74 ZoomLevelDelegate* GetZoomLevelDelegate() override; 74 ZoomLevelDelegate* GetZoomLevelDelegate() override;
75 PlatformNotificationContextImpl* GetPlatformNotificationContext() override; 75 PlatformNotificationContextImpl* GetPlatformNotificationContext() override;
76 76
77 BackgroundSyncContext* GetBackgroundSyncContext(); 77 BackgroundSyncContext* GetBackgroundSyncContext();
78 PaymentAppContext* GetPaymentAppContext(); 78 PaymentAppContextImpl* GetPaymentAppContext();
79 BroadcastChannelProvider* GetBroadcastChannelProvider(); 79 BroadcastChannelProvider* GetBroadcastChannelProvider();
80 80
81 // mojom::StoragePartitionService interface. 81 // mojom::StoragePartitionService interface.
82 void OpenLocalStorage( 82 void OpenLocalStorage(
83 const url::Origin& origin, 83 const url::Origin& origin,
84 mojom::LevelDBObserverPtr observer, 84 mojom::LevelDBObserverPtr observer,
85 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override; 85 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override;
86 86
87 void ClearDataForOrigin(uint32_t remove_mask, 87 void ClearDataForOrigin(uint32_t remove_mask,
88 uint32_t quota_storage_remove_mask, 88 uint32_t quota_storage_remove_mask,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 storage::FileSystemContext* filesystem_context, 173 storage::FileSystemContext* filesystem_context,
174 storage::DatabaseTracker* database_tracker, 174 storage::DatabaseTracker* database_tracker,
175 DOMStorageContextWrapper* dom_storage_context, 175 DOMStorageContextWrapper* dom_storage_context,
176 IndexedDBContextImpl* indexed_db_context, 176 IndexedDBContextImpl* indexed_db_context,
177 CacheStorageContextImpl* cache_storage_context, 177 CacheStorageContextImpl* cache_storage_context,
178 ServiceWorkerContextWrapper* service_worker_context, 178 ServiceWorkerContextWrapper* service_worker_context,
179 storage::SpecialStoragePolicy* special_storage_policy, 179 storage::SpecialStoragePolicy* special_storage_policy,
180 HostZoomLevelContext* host_zoom_level_context, 180 HostZoomLevelContext* host_zoom_level_context,
181 PlatformNotificationContextImpl* platform_notification_context, 181 PlatformNotificationContextImpl* platform_notification_context,
182 BackgroundSyncContext* background_sync_context, 182 BackgroundSyncContext* background_sync_context,
183 PaymentAppContext* payment_app_context, 183 PaymentAppContextImpl* payment_app_context,
184 scoped_refptr<BroadcastChannelProvider>broadcast_channel_provider); 184 scoped_refptr<BroadcastChannelProvider>broadcast_channel_provider);
185 185
186 // We will never have both remove_origin be populated and a cookie_matcher. 186 // We will never have both remove_origin be populated and a cookie_matcher.
187 void ClearDataImpl(uint32_t remove_mask, 187 void ClearDataImpl(uint32_t remove_mask,
188 uint32_t quota_storage_remove_mask, 188 uint32_t quota_storage_remove_mask,
189 const GURL& remove_origin, 189 const GURL& remove_origin,
190 const OriginMatcherFunction& origin_matcher, 190 const OriginMatcherFunction& origin_matcher,
191 const CookieMatcherFunction& cookie_matcher, 191 const CookieMatcherFunction& cookie_matcher,
192 net::URLRequestContextGetter* rq_context, 192 net::URLRequestContextGetter* rq_context,
193 const base::Time begin, 193 const base::Time begin,
(...skipping 25 matching lines...) Expand all
219 scoped_refptr<storage::FileSystemContext> filesystem_context_; 219 scoped_refptr<storage::FileSystemContext> filesystem_context_;
220 scoped_refptr<storage::DatabaseTracker> database_tracker_; 220 scoped_refptr<storage::DatabaseTracker> database_tracker_;
221 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 221 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
222 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 222 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
223 scoped_refptr<CacheStorageContextImpl> cache_storage_context_; 223 scoped_refptr<CacheStorageContextImpl> cache_storage_context_;
224 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 224 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
225 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 225 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
226 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_; 226 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
227 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_; 227 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context_;
228 scoped_refptr<BackgroundSyncContext> background_sync_context_; 228 scoped_refptr<BackgroundSyncContext> background_sync_context_;
229 scoped_refptr<PaymentAppContext> payment_app_context_; 229 scoped_refptr<PaymentAppContextImpl> payment_app_context_;
230 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_; 230 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider_;
231 231
232 mojo::BindingSet<mojom::StoragePartitionService> bindings_; 232 mojo::BindingSet<mojom::StoragePartitionService> bindings_;
233 233
234 // Raw pointer that should always be valid. The BrowserContext owns the 234 // Raw pointer that should always be valid. The BrowserContext owns the
235 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the 235 // StoragePartitionImplMap which then owns StoragePartitionImpl. When the
236 // BrowserContext is destroyed, |this| will be destroyed too. 236 // BrowserContext is destroyed, |this| will be destroyed too.
237 BrowserContext* browser_context_; 237 BrowserContext* browser_context_;
238 238
239 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 239 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
240 }; 240 };
241 241
242 } // namespace content 242 } // namespace content
243 243
244 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 244 #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