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

Unified Diff: chrome/browser/storage/storage_info_fetcher.h

Issue 1661533002: Implement deletion of storage per site. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
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..fcd6254348d39ecf392b702fbf8f97ad685a37fa 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(storage::QuotaStatusCode code) = 0;
+
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);

Powered by Google App Engine
This is Rietveld 408576698