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

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

Issue 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; patch for landing. Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dom_storage/dom_storage_context_wrapper.h" 12 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
13 #include "content/browser/host_zoom_level_context.h"
13 #include "content/browser/indexed_db/indexed_db_context_impl.h" 14 #include "content/browser/indexed_db/indexed_db_context_impl.h"
14 #include "content/browser/media/webrtc_identity_store.h" 15 #include "content/browser/media/webrtc_identity_store.h"
15 #include "content/browser/service_worker/service_worker_context_wrapper.h" 16 #include "content/browser/service_worker/service_worker_context_wrapper.h"
16 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
17 #include "content/public/browser/storage_partition.h" 18 #include "content/public/browser/storage_partition.h"
18 #include "storage/browser/quota/special_storage_policy.h" 19 #include "storage/browser/quota/special_storage_policy.h"
19 20
20 namespace content { 21 namespace content {
21 22
22 class StoragePartitionImpl : public StoragePartition { 23 class StoragePartitionImpl : public StoragePartition {
(...skipping 14 matching lines...) Expand all
37 net::URLRequestContextGetter* GetURLRequestContext() override; 38 net::URLRequestContextGetter* GetURLRequestContext() override;
38 net::URLRequestContextGetter* GetMediaURLRequestContext() override; 39 net::URLRequestContextGetter* GetMediaURLRequestContext() override;
39 storage::QuotaManager* GetQuotaManager() override; 40 storage::QuotaManager* GetQuotaManager() override;
40 ChromeAppCacheService* GetAppCacheService() override; 41 ChromeAppCacheService* GetAppCacheService() override;
41 storage::FileSystemContext* GetFileSystemContext() override; 42 storage::FileSystemContext* GetFileSystemContext() override;
42 storage::DatabaseTracker* GetDatabaseTracker() override; 43 storage::DatabaseTracker* GetDatabaseTracker() override;
43 DOMStorageContextWrapper* GetDOMStorageContext() override; 44 DOMStorageContextWrapper* GetDOMStorageContext() override;
44 IndexedDBContextImpl* GetIndexedDBContext() override; 45 IndexedDBContextImpl* GetIndexedDBContext() override;
45 ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 46 ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
46 GeofencingManager* GetGeofencingManager() override; 47 GeofencingManager* GetGeofencingManager() override;
48 HostZoomMap* GetHostZoomMap() override;
49 HostZoomLevelContext* GetHostZoomLevelContext() override;
50 ZoomLevelDelegate* GetZoomLevelDelegate() override;
47 51
48 void ClearDataForOrigin(uint32 remove_mask, 52 void ClearDataForOrigin(uint32 remove_mask,
49 uint32 quota_storage_remove_mask, 53 uint32 quota_storage_remove_mask,
50 const GURL& storage_origin, 54 const GURL& storage_origin,
51 net::URLRequestContextGetter* request_context_getter, 55 net::URLRequestContextGetter* request_context_getter,
52 const base::Closure& callback) override; 56 const base::Closure& callback) override;
53 void ClearData(uint32 remove_mask, 57 void ClearData(uint32 remove_mask,
54 uint32 quota_storage_remove_mask, 58 uint32 quota_storage_remove_mask,
55 const GURL& storage_origin, 59 const GURL& storage_origin,
56 const OriginMatcherFunction& origin_matcher, 60 const OriginMatcherFunction& origin_matcher,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const base::FilePath& partition_path, 115 const base::FilePath& partition_path,
112 storage::QuotaManager* quota_manager, 116 storage::QuotaManager* quota_manager,
113 ChromeAppCacheService* appcache_service, 117 ChromeAppCacheService* appcache_service,
114 storage::FileSystemContext* filesystem_context, 118 storage::FileSystemContext* filesystem_context,
115 storage::DatabaseTracker* database_tracker, 119 storage::DatabaseTracker* database_tracker,
116 DOMStorageContextWrapper* dom_storage_context, 120 DOMStorageContextWrapper* dom_storage_context,
117 IndexedDBContextImpl* indexed_db_context, 121 IndexedDBContextImpl* indexed_db_context,
118 ServiceWorkerContextWrapper* service_worker_context, 122 ServiceWorkerContextWrapper* service_worker_context,
119 WebRTCIdentityStore* webrtc_identity_store, 123 WebRTCIdentityStore* webrtc_identity_store,
120 storage::SpecialStoragePolicy* special_storage_policy, 124 storage::SpecialStoragePolicy* special_storage_policy,
121 GeofencingManager* geofencing_manager); 125 GeofencingManager* geofencing_manager,
126 HostZoomLevelContext* host_zoom_level_context);
122 127
123 void ClearDataImpl(uint32 remove_mask, 128 void ClearDataImpl(uint32 remove_mask,
124 uint32 quota_storage_remove_mask, 129 uint32 quota_storage_remove_mask,
125 const GURL& remove_origin, 130 const GURL& remove_origin,
126 const OriginMatcherFunction& origin_matcher, 131 const OriginMatcherFunction& origin_matcher,
127 net::URLRequestContextGetter* rq_context, 132 net::URLRequestContextGetter* rq_context,
128 const base::Time begin, 133 const base::Time begin,
129 const base::Time end, 134 const base::Time end,
130 const base::Closure& callback); 135 const base::Closure& callback);
131 136
(...skipping 20 matching lines...) Expand all
152 scoped_refptr<storage::QuotaManager> quota_manager_; 157 scoped_refptr<storage::QuotaManager> quota_manager_;
153 scoped_refptr<ChromeAppCacheService> appcache_service_; 158 scoped_refptr<ChromeAppCacheService> appcache_service_;
154 scoped_refptr<storage::FileSystemContext> filesystem_context_; 159 scoped_refptr<storage::FileSystemContext> filesystem_context_;
155 scoped_refptr<storage::DatabaseTracker> database_tracker_; 160 scoped_refptr<storage::DatabaseTracker> database_tracker_;
156 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 161 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
157 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 162 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
158 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 163 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
159 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 164 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
160 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 165 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
161 scoped_refptr<GeofencingManager> geofencing_manager_; 166 scoped_refptr<GeofencingManager> geofencing_manager_;
167 scoped_refptr<HostZoomLevelContext> host_zoom_level_context_;
162 168
163 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 169 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
164 }; 170 };
165 171
166 } // namespace content 172 } // namespace content
167 173
168 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 174 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/browser/storage_partition_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698