| OLD | NEW |
| 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 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 <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // system: AppCache, Databases, FileSystems. | 246 // system: AppCache, Databases, FileSystems. |
| 247 void ClearQuotaManagedDataOnIOThread(); | 247 void ClearQuotaManagedDataOnIOThread(); |
| 248 | 248 |
| 249 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the | 249 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the |
| 250 // core of 'ClearQuotaManagedDataOnIOThread'. | 250 // core of 'ClearQuotaManagedDataOnIOThread'. |
| 251 void OnGotQuotaManagedOrigins(const std::set<GURL>& origins, | 251 void OnGotQuotaManagedOrigins(const std::set<GURL>& origins, |
| 252 quota::StorageType type); | 252 quota::StorageType type); |
| 253 | 253 |
| 254 // Callback responding to deletion of a single quota managed origin's | 254 // Callback responding to deletion of a single quota managed origin's |
| 255 // persistent data | 255 // persistent data |
| 256 void OnQuotaManagedOriginDeletion(quota::QuotaStatusCode); | 256 void OnQuotaManagedOriginDeletion(const GURL& origin, |
| 257 quota::StorageType type, |
| 258 quota::QuotaStatusCode); |
| 257 | 259 |
| 258 // Called to check whether all temporary and persistent origin data that | 260 // Called to check whether all temporary and persistent origin data that |
| 259 // should be deleted has been deleted. If everything's good to go, invokes | 261 // should be deleted has been deleted. If everything's good to go, invokes |
| 260 // OnQuotaManagedDataDeleted on the UI thread. | 262 // OnQuotaManagedDataDeleted on the UI thread. |
| 261 void CheckQuotaManagedDataDeletionStatus(); | 263 void CheckQuotaManagedDataDeletionStatus(); |
| 262 | 264 |
| 263 // Completion handler that runs on the UI thread once persistent data has been | 265 // Completion handler that runs on the UI thread once persistent data has been |
| 264 // deleted. Updates the waiting flag and invokes NotifyAndDeleteIfDone. | 266 // deleted. Updates the waiting flag and invokes NotifyAndDeleteIfDone. |
| 265 void OnQuotaManagedDataDeleted(); | 267 void OnQuotaManagedDataDeleted(); |
| 266 | 268 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 359 |
| 358 ObserverList<Observer> observer_list_; | 360 ObserverList<Observer> observer_list_; |
| 359 | 361 |
| 360 // Used if we need to clear history. | 362 // Used if we need to clear history. |
| 361 CancelableRequestConsumer request_consumer_; | 363 CancelableRequestConsumer request_consumer_; |
| 362 | 364 |
| 363 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 365 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 368 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |