Chromium Code Reviews| Index: chrome/browser/storage/storage_info_fetcher.h |
| diff --git a/chrome/browser/storage/storage_info_fetcher.h b/chrome/browser/storage/storage_info_fetcher.h |
| index 1f348bd33da2230bd6322fc4f37b81aee0837913..94134943d6750341387616c1995c9a21675bfd4c 100644 |
| --- a/chrome/browser/storage/storage_info_fetcher.h |
| +++ b/chrome/browser/storage/storage_info_fetcher.h |
| @@ -18,6 +18,9 @@ class StorageInfoFetcher : |
| // Called when the storage has been calculated. |
| virtual void OnGetUsageInfo(const storage::UsageInfoEntries& entries) = 0; |
| + // Called when the storage has been cleared. |
| + virtual void OnUsageInfoCleared() = 0; |
|
michaelpg
2016/02/03 18:39:13
If this isn't used yet, add it in a later patch wh
Finnur
2016/02/04 14:56:58
It is used in the latest version of this patch.
|
| + |
| protected: |
| virtual ~Observer() {} |
| }; |
| @@ -25,7 +28,13 @@ class StorageInfoFetcher : |
| explicit StorageInfoFetcher(storage::QuotaManager* quota_manager); |
| // Asynchronously fetches the StorageInfo. |
| - void Run(); |
| + void FetchStorageInfo(); |
| + |
| + // Asynchronously clears storage for the given host. |
| + void ClearStorage(const std::string& host, storage::StorageType type); |
| + |
| + // Called when usage has been cleared. |
| + void OnUsageCleared(storage::QuotaStatusCode code); |
| void AddObserver(Observer* observer); |
| void RemoveObserver(Observer* observer); |