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

Unified Diff: chrome/browser/ui/webui/options/website_settings_handler.h

Issue 493383004: Add a button to clear local storage for a given origin to Website Settings dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split the if-statement. Created 6 years, 4 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/options/website_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/website_settings_handler.h b/chrome/browser/ui/webui/options/website_settings_handler.h
index 22386dd45d54fa67dae83b337ff21afb6c3955f8..eebe0a3d3ffdebd2fc5e5743290168875defdf75 100644
--- a/chrome/browser/ui/webui/options/website_settings_handler.h
+++ b/chrome/browser/ui/webui/options/website_settings_handler.h
@@ -66,6 +66,13 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// |args| is the URL.
void HandleMaybeShowEditPage(const base::ListValue* args);
+ // Deletes the local storage and repopulates the page.
+ void HandleDeleteLocalStorage(const base::ListValue* args);
+
+ // Closes all tabs and app windows which have the same origin as the selected
+ // page.
+ void HandleStopOrigin(const base::ListValue* args);
+
// Callback method to be invoked when fetching the data is complete.
void OnLocalStorageFetched(const LocalStorageList& storage);
@@ -77,9 +84,16 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// and update the page.
void UpdateLocalStorage();
+ // Kill all tabs and app windows which have the same origin as |site_url|.
+ void StopOrigin(const GURL& site_url);
+
+ // Delete all of the local storage for the |site_url|.
+ void DeleteLocalStorage(const GURL& site_url);
+
// Populates the single site edit view with the permissions and local storage
- // usage for a given |site_url|.
- void GetInfoForOrigin(const GURL& site_url);
+ // usage for a given |site_url|. If |show_page| is true, it raises a new
+ // single site edit view.
+ void GetInfoForOrigin(const GURL& site_url, bool show_page);
// Updates the page with the last settings used.
void Update();

Powered by Google App Engine
This is Rietveld 408576698