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

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

Issue 10830050: (Views only) Prompt the user to reload the website after changing site permissions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments (Finnur). Created 8 years, 5 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 87aae7792fe45f626c8262d5678bca5ef3683998..0ff229ce86bbd857ab03f287c7dde2cf751c87fa 100644
--- a/chrome/browser/ui/website_settings/website_settings.h
+++ b/chrome/browser/ui/website_settings/website_settings.h
@@ -21,6 +21,7 @@ class CertStore;
struct SSLStatus;
}
+class InfoBarTabHelper;
class HostContentSettingsMap;
class Profile;
class WebsiteSettingsUI;
@@ -70,6 +71,7 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver {
WebsiteSettings(WebsiteSettingsUI* ui,
Profile* profile,
TabSpecificContentSettings* tab_specific_content_settings,
+ InfoBarTabHelper* infobar_tab_helper,
const GURL& url,
const content::SSLStatus& ssl,
content::CertStore* cert_store);
@@ -86,6 +88,9 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver {
int visit_count,
base::Time first_visit);
+ // This method is called by the UI when the UI is closing.
+ void OnUIClosing();
+
// Accessors.
SiteConnectionStatus site_connection_status() const {
return site_connection_status_;
@@ -137,6 +142,13 @@ class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver {
// information (identity, connection status, etc.).
WebsiteSettingsUI* ui_;
+ // The infobar helper of the active tab.
+ InfoBarTabHelper* infobar_helper_; // Owned by the active tab contents.
+
+ // The flag that controls whether an infobar is displayed after the website
+ // settings UI is closed or not.
+ bool show_info_bar_;
+
// The Omnibox URL of the website for which to display site permissions and
// site information.
GURL site_url_;

Powered by Google App Engine
This is Rietveld 408576698