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

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

Issue 645763003: Refactor GeofencingManager to have one instance per StoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: have reference to service worker context in geofencing manager Created 6 years, 2 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"
(...skipping 25 matching lines...) Expand all
36 virtual base::FilePath GetPath() override; 36 virtual base::FilePath GetPath() override;
37 virtual net::URLRequestContextGetter* GetURLRequestContext() override; 37 virtual net::URLRequestContextGetter* GetURLRequestContext() override;
38 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() override; 38 virtual net::URLRequestContextGetter* GetMediaURLRequestContext() override;
39 virtual storage::QuotaManager* GetQuotaManager() override; 39 virtual storage::QuotaManager* GetQuotaManager() override;
40 virtual ChromeAppCacheService* GetAppCacheService() override; 40 virtual ChromeAppCacheService* GetAppCacheService() override;
41 virtual storage::FileSystemContext* GetFileSystemContext() override; 41 virtual storage::FileSystemContext* GetFileSystemContext() override;
42 virtual storage::DatabaseTracker* GetDatabaseTracker() override; 42 virtual storage::DatabaseTracker* GetDatabaseTracker() override;
43 virtual DOMStorageContextWrapper* GetDOMStorageContext() override; 43 virtual DOMStorageContextWrapper* GetDOMStorageContext() override;
44 virtual IndexedDBContextImpl* GetIndexedDBContext() override; 44 virtual IndexedDBContextImpl* GetIndexedDBContext() override;
45 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() override; 45 virtual ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
46 virtual GeofencingManager* GetGeofencingManager() override;
46 47
47 virtual void ClearDataForOrigin( 48 virtual void ClearDataForOrigin(
48 uint32 remove_mask, 49 uint32 remove_mask,
49 uint32 quota_storage_remove_mask, 50 uint32 quota_storage_remove_mask,
50 const GURL& storage_origin, 51 const GURL& storage_origin,
51 net::URLRequestContextGetter* request_context_getter, 52 net::URLRequestContextGetter* request_context_getter,
52 const base::Closure& callback) override; 53 const base::Closure& callback) override;
53 virtual void ClearData(uint32 remove_mask, 54 virtual void ClearData(uint32 remove_mask,
54 uint32 quota_storage_remove_mask, 55 uint32 quota_storage_remove_mask,
55 const GURL& storage_origin, 56 const GURL& storage_origin,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 CONTENT_EXPORT StoragePartitionImpl( 111 CONTENT_EXPORT StoragePartitionImpl(
111 const base::FilePath& partition_path, 112 const base::FilePath& partition_path,
112 storage::QuotaManager* quota_manager, 113 storage::QuotaManager* quota_manager,
113 ChromeAppCacheService* appcache_service, 114 ChromeAppCacheService* appcache_service,
114 storage::FileSystemContext* filesystem_context, 115 storage::FileSystemContext* filesystem_context,
115 storage::DatabaseTracker* database_tracker, 116 storage::DatabaseTracker* database_tracker,
116 DOMStorageContextWrapper* dom_storage_context, 117 DOMStorageContextWrapper* dom_storage_context,
117 IndexedDBContextImpl* indexed_db_context, 118 IndexedDBContextImpl* indexed_db_context,
118 ServiceWorkerContextWrapper* service_worker_context, 119 ServiceWorkerContextWrapper* service_worker_context,
119 WebRTCIdentityStore* webrtc_identity_store, 120 WebRTCIdentityStore* webrtc_identity_store,
120 storage::SpecialStoragePolicy* special_storage_policy); 121 storage::SpecialStoragePolicy* special_storage_policy,
122 GeofencingManager* geofencing_manager);
121 123
122 void ClearDataImpl(uint32 remove_mask, 124 void ClearDataImpl(uint32 remove_mask,
123 uint32 quota_storage_remove_mask, 125 uint32 quota_storage_remove_mask,
124 const GURL& remove_origin, 126 const GURL& remove_origin,
125 const OriginMatcherFunction& origin_matcher, 127 const OriginMatcherFunction& origin_matcher,
126 net::URLRequestContextGetter* rq_context, 128 net::URLRequestContextGetter* rq_context,
127 const base::Time begin, 129 const base::Time begin,
128 const base::Time end, 130 const base::Time end,
129 const base::Closure& callback); 131 const base::Closure& callback);
130 132
(...skipping 19 matching lines...) Expand all
150 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_; 152 scoped_refptr<net::URLRequestContextGetter> media_url_request_context_;
151 scoped_refptr<storage::QuotaManager> quota_manager_; 153 scoped_refptr<storage::QuotaManager> quota_manager_;
152 scoped_refptr<ChromeAppCacheService> appcache_service_; 154 scoped_refptr<ChromeAppCacheService> appcache_service_;
153 scoped_refptr<storage::FileSystemContext> filesystem_context_; 155 scoped_refptr<storage::FileSystemContext> filesystem_context_;
154 scoped_refptr<storage::DatabaseTracker> database_tracker_; 156 scoped_refptr<storage::DatabaseTracker> database_tracker_;
155 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_; 157 scoped_refptr<DOMStorageContextWrapper> dom_storage_context_;
156 scoped_refptr<IndexedDBContextImpl> indexed_db_context_; 158 scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
157 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 159 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
158 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_; 160 scoped_refptr<WebRTCIdentityStore> webrtc_identity_store_;
159 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 161 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
162 scoped_refptr<GeofencingManager> geofencing_manager_;
160 163
161 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); 164 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
162 }; 165 };
163 166
164 } // namespace content 167 } // namespace content
165 168
166 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ 169 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698