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

Unified Diff: chrome/browser/ui/website_settings/website_settings.h

Issue 2702923002: Page Info: Hide default permissions with a value of Ask if the default is Ask. (Closed)
Patch Set: Fix #ifdef to allow testing MacViews. Created 3 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/website_settings/website_settings.h
diff --git a/chrome/browser/ui/website_settings/website_settings.h b/chrome/browser/ui/website_settings/website_settings.h
index 66b8ea7a810c1d91052566c037c16522ec77f11c..0eec89845557a9c836513b7523e8e52ec9a5351d 100644
--- a/chrome/browser/ui/website_settings/website_settings.h
+++ b/chrome/browser/ui/website_settings/website_settings.h
@@ -101,6 +101,7 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver,
WEBSITE_SETTINGS_CONNECTION_HELP_OPENED = 8,
WEBSITE_SETTINGS_SITE_SETTINGS_OPENED = 9,
WEBSITE_SETTINGS_SECURITY_DETAILS_OPENED = 10,
+ WEBSITE_SETTINGS_SHOW_ALL_PERMISSIONS_PRESSED = 11,
WEBSITE_SETTINGS_COUNT
};
@@ -131,6 +132,10 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver,
void OnSitePermissionChanged(ContentSettingsType type,
ContentSetting value);
+ // Sets (presents) the information about the site's permissions in the |ui_|,
+ // showing all permissions.
+ void OnPresentAllSitePermissions();
+
// This method is called whenever access to an object is revoked.
void OnSiteChosenObjectDeleted(const ChooserUIInfo& ui_info,
const base::DictionaryValue& object);
@@ -179,6 +184,9 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver,
// information (identity, connection status, etc.).
WebsiteSettingsUI* ui_;
+ // Whether to show all permissions.
+ bool show_all_permissions_;
+
// The flag that controls whether an infobar is displayed after the website
// settings UI is closed or not.
bool show_info_bar_;

Powered by Google App Engine
This is Rietveld 408576698