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

Unified Diff: chrome/browser/ui/webui/settings/site_settings_handler.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/ui/webui/settings/site_settings_handler.h
diff --git a/chrome/browser/ui/webui/settings/site_settings_handler.h b/chrome/browser/ui/webui/settings/site_settings_handler.h
index f4ad68ea739cb8e8abdc2404a931732d4d70b434..7288db4edec7c9070797f57212afd2b8c85cd0f4 100644
--- a/chrome/browser/ui/webui/settings/site_settings_handler.h
+++ b/chrome/browser/ui/webui/settings/site_settings_handler.h
@@ -30,17 +30,24 @@ class SiteSettingsHandler
// StorageInfoFetcher::Observer:
void OnGetUsageInfo(const storage::UsageInfoEntries& entries) override;
+ void OnUsageInfoCleared(storage::QuotaStatusCode code) override;
private:
// Asynchronously fetches the usage for a given origin. Replies back with
// OnGetUsageInfo above.
void HandleFetchUsageTotal(const base::ListValue* args);
+ // Deletes the storage being used for a given host.
+ void HandleClearUsage(const base::ListValue* args);
+
Profile* profile_;
// The host for which to fetch usage.
std::string usage_host_;
+ // The origin for which to clear usage.
+ std::string clearing_origin_;
+
// The helper object asynchronously fetching storage info.
scoped_refptr<StorageInfoFetcher> storage_info_fetcher_;
« no previous file with comments | « chrome/browser/storage/storage_info_fetcher.cc ('k') | chrome/browser/ui/webui/settings/site_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698