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

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

Issue 475193002: Add a single site view page to view and modify content settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 4710475bda7928e07724fb095e676920fbed462d..22386dd45d54fa67dae83b337ff21afb6c3955f8 100644
--- a/chrome/browser/ui/webui/options/website_settings_handler.h
+++ b/chrome/browser/ui/webui/options/website_settings_handler.h
@@ -49,9 +49,23 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// |args| is the filter string.
void HandleUpdateSearchResults(const base::ListValue* args);
+ // Update the single site edit view with the permission values for a given
+ // url, if the url is valid.
+ // |args| is the URL.
+ void HandleGetOriginInfo(const base::ListValue* args);
+
+ // Sets the content setting permissions for a given setting type for the last
+ // used origin.
+ // |args| is the name of the setting and the new value.
+ void HandleSetOriginPermission(const base::ListValue* args);
+
// Update the page with all origins that are using local storage.
void HandleUpdateLocalStorage(const base::ListValue* args);
+ // Show the single site edit view if the given URL is valid.
+ // |args| is the URL.
+ void HandleMaybeShowEditPage(const base::ListValue* args);
+
// Callback method to be invoked when fetching the data is complete.
void OnLocalStorageFetched(const LocalStorageList& storage);
@@ -63,11 +77,16 @@ class WebsiteSettingsHandler : public content_settings::Observer,
// and update the page.
void UpdateLocalStorage();
+ // Populates the single site edit view with the permissions and local storage
+ // usage for a given |site_url|.
+ void GetInfoForOrigin(const GURL& site_url);
+
// Updates the page with the last settings used.
void Update();
std::string last_setting_;
std::string last_filter_;
+ GURL last_site_;
scoped_refptr<BrowsingDataLocalStorageHelper> local_storage_;
LocalStorageList local_storage_list_;

Powered by Google App Engine
This is Rietveld 408576698