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

Unified Diff: chrome/browser/ui/webui/settings/site_settings_handler.h

Issue 1909413002: Site Settings: Implement dialog for adding site exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 8 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 92d74e965b40c82dbc932e828557297ab3e86eaa..b89bf848c9a5e2037f4e285de78f76b3191953f5 100644
--- a/chrome/browser/ui/webui/settings/site_settings_handler.h
+++ b/chrome/browser/ui/webui/settings/site_settings_handler.h
@@ -42,6 +42,7 @@ class SiteSettingsHandler : public SettingsPageUIHandler,
private:
FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, GetAndSetDefault);
FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Origins);
+ FRIEND_TEST_ALL_PREFIXES(SiteSettingsHandlerTest, Patterns);
// Asynchronously fetches the usage for a given origin. Replies back with
// OnGetUsageInfo above.
@@ -54,13 +55,16 @@ class SiteSettingsHandler : public SettingsPageUIHandler,
void HandleSetDefaultValueForContentType(const base::ListValue* args);
void HandleGetDefaultValueForContentType(const base::ListValue* args);
- // Returns the list of site exceptions for a given content settings type;
+ // Returns the list of site exceptions for a given content settings type.
void HandleGetExceptionList(const base::ListValue* args);
- // Handles setting and resetting of an origin permission;
+ // Handles setting and resetting of an origin permission.
void HandleResetCategoryPermissionForOrigin(const base::ListValue* args);
void HandleSetCategoryPermissionForOrigin(const base::ListValue* args);
+ // Returns whether a given pattern is valid.
+ void HandleIsPatternValid(const base::ListValue* args);
+
Profile* profile_;
// The host for which to fetch usage.

Powered by Google App Engine
This is Rietveld 408576698