Chromium Code Reviews| 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>&, quota::StorageType); |
|
jochen (gone - plz use gerrit)
2011/08/01 09:44:56
all function parameters should be named
Mike West
2011/08/01 09:47:40
Done.
| |
| 155 | |
| 156 // Callback to respond to QuotaManager::GetOriginsModifiedSince, which is the | |
| 157 // core of `ClearQuotaManagedDataOnIOThread` | |
| 158 void OnGotPersistentQuotaManagedOrigins(const std::set<GURL>&); | |
| 159 | 155 |
| 160 // Callback responding to deletion of a single quota managed origin's | 156 // Callback responding to deletion of a single quota managed origin's |
| 161 // persistent data | 157 // persistent data |
| 162 void OnQuotaManagedOriginDeletion(quota::QuotaStatusCode); | 158 void OnQuotaManagedOriginDeletion(quota::QuotaStatusCode); |
| 163 | 159 |
| 164 // Called to check whether all temporary and persistent origin data that | 160 // 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 | 161 // should be deleted has been deleted. If everything's good to go, invokes |
| 166 // NotifyAndDeleteIfDone on the UI thread. | 162 // NotifyAndDeleteIfDone on the UI thread. |
| 167 void CheckQuotaManagedDataDeletionStatus(); | 163 void CheckQuotaManagedDataDeletionStatus(); |
| 168 | 164 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 226 | 222 |
| 227 ObserverList<Observer> observer_list_; | 223 ObserverList<Observer> observer_list_; |
| 228 | 224 |
| 229 // Used if we need to clear history. | 225 // Used if we need to clear history. |
| 230 CancelableRequestConsumer request_consumer_; | 226 CancelableRequestConsumer request_consumer_; |
| 231 | 227 |
| 232 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); | 228 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); |
| 233 }; | 229 }; |
| 234 | 230 |
| 235 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ | 231 #endif // CHROME_BROWSER_BROWSING_DATA_REMOVER_H_ |
| OLD | NEW |