OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Performs the actual work to delete the cache. | 145 // Performs the actual work to delete the cache. |
146 void DoClearCache(int rv); | 146 void DoClearCache(int rv); |
147 | 147 |
148 // Invoked on the IO thread to delete all storage types managed by the quota | 148 // Invoked on the IO thread to delete all storage types managed by the quota |
149 // system: AppCache, Databases, FileSystems. | 149 // system: AppCache, Databases, FileSystems. |
150 void ClearQuotaManagedDataOnIOThread(); | 150 void ClearQuotaManagedDataOnIOThread(); |
151 | 151 |
152 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the | 152 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the |
153 // core of 'ClearQuotaManagedDataOnIOThread'. | 153 // core of 'ClearQuotaManagedDataOnIOThread'. |
154 void OnGotTemporaryQuotaManagedOrigins(const std::set<GURL>&); | 154 void OnGotQuotaManagedOrigins(const std::set<GURL>& origins, |
155 | 155 quota::StorageType type); |
156 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the | |
157 // core of `ClearQuotaManagedDataOnIOThread` | |
158 void OnGotPersistentQuotaManagedOrigins(const std::set<GURL>&); | |
159 | 156 |
160 // Callback responding to deletion of a single quota managed origin's | 157 // Callback responding to deletion of a single quota managed origin's |
161 // persistent data | 158 // persistent data |
162 void OnQuotaManagedOriginDeletion(quota::QuotaStatusCode); | 159 void OnQuotaManagedOriginDeletion(quota::QuotaStatusCode); |
163 | 160 |
164 // Called to check whether all temporary and persistent origin data that | 161 // Called to check whether all temporary and persistent origin data that |
165 // should be deleted has been deleted. If everything's good to go, invokes | 162 // should be deleted has been deleted. If everything's good to go, invokes |
166 // NotifyAndDeleteIfDone on the UI thread. | 163 // NotifyAndDeleteIfDone on the UI thread. |
167 void CheckQuotaManagedDataDeletionStatus(); | 164 void CheckQuotaManagedDataDeletionStatus(); |
168 | 165 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 | 223 |
227 ObserverList<Observer> observer_list_; | 224 ObserverList<Observer> observer_list_; |
228 | 225 |
229 // Used if we need to clear history. | 226 // Used if we need to clear history. |
230 CancelableRequestConsumer request_consumer_; | 227 CancelableRequestConsumer request_consumer_; |
231 | 228 |
232 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 229 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
233 }; | 230 }; |
234 | 231 |
235 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 232 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
OLD | NEW |