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_; |