| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 Profile* profile, | 121 Profile* profile, |
| 122 TabSpecificContentSettings* tab_specific_content_settings, | 122 TabSpecificContentSettings* tab_specific_content_settings, |
| 123 content::WebContents* web_contents, | 123 content::WebContents* web_contents, |
| 124 const GURL& url, | 124 const GURL& url, |
| 125 const security_state::SecurityInfo& security_info); | 125 const security_state::SecurityInfo& security_info); |
| 126 ~WebsiteSettings() override; | 126 ~WebsiteSettings() override; |
| 127 | 127 |
| 128 void RecordWebsiteSettingsAction(WebsiteSettingsAction action); | 128 void RecordWebsiteSettingsAction(WebsiteSettingsAction action); |
| 129 | 129 |
| 130 // This method is called when ever a permission setting is changed. | 130 // This method is called when ever a permission setting is changed. |
| 131 void OnSitePermissionChanged(ContentSettingsType type, | 131 void OnSitePermissionChanged(ContentSettingsType type, ContentSetting value); |
| 132 ContentSetting value); | |
| 133 | 132 |
| 134 // This method is called whenever access to an object is revoked. | 133 // This method is called whenever access to an object is revoked. |
| 135 void OnSiteChosenObjectDeleted(const ChooserUIInfo& ui_info, | 134 void OnSiteChosenObjectDeleted(const ChooserUIInfo& ui_info, |
| 136 const base::DictionaryValue& object); | 135 const base::DictionaryValue& object); |
| 137 | 136 |
| 138 // This method is called by the UI when the UI is closing. | 137 // This method is called by the UI when the UI is closing. |
| 139 void OnUIClosing(); | 138 void OnUIClosing(); |
| 140 | 139 |
| 141 // This method is called when the revoke SSL error bypass button is pressed. | 140 // This method is called when the revoke SSL error bypass button is pressed. |
| 142 void OnRevokeSSLErrorBypassButtonPressed(); | 141 void OnRevokeSSLErrorBypassButtonPressed(); |
| 143 | 142 |
| 144 // Accessors. | 143 // Accessors. |
| 145 SiteConnectionStatus site_connection_status() const { | 144 SiteConnectionStatus site_connection_status() const { |
| 146 return site_connection_status_; | 145 return site_connection_status_; |
| 147 } | 146 } |
| 148 | 147 |
| 149 const GURL& site_url() const { return site_url_; } | 148 const GURL& site_url() const { return site_url_; } |
| 150 | 149 |
| 151 SiteIdentityStatus site_identity_status() const { | 150 SiteIdentityStatus site_identity_status() const { |
| 152 return site_identity_status_; | 151 return site_identity_status_; |
| 153 } | 152 } |
| 154 | 153 |
| 155 base::string16 organization_name() const { | 154 base::string16 organization_name() const { return organization_name_; } |
| 156 return organization_name_; | |
| 157 } | |
| 158 | 155 |
| 159 // SiteDataObserver implementation. | 156 // SiteDataObserver implementation. |
| 160 void OnSiteDataAccessed() override; | 157 void OnSiteDataAccessed() override; |
| 161 | 158 |
| 162 private: | 159 private: |
| 163 // Initializes the |WebsiteSettings|. | 160 // Initializes the |WebsiteSettings|. |
| 164 void Init(const GURL& url, const security_state::SecurityInfo& security_info); | 161 void Init(const GURL& url, const security_state::SecurityInfo& security_info); |
| 165 | 162 |
| 166 // Sets (presents) the information about the site's permissions in the |ui_|. | 163 // Sets (presents) the information about the site's permissions in the |ui_|. |
| 167 void PresentSitePermissions(); | 164 void PresentSitePermissions(); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 bool did_revoke_user_ssl_decisions_; | 232 bool did_revoke_user_ssl_decisions_; |
| 236 | 233 |
| 237 Profile* profile_; | 234 Profile* profile_; |
| 238 | 235 |
| 239 security_state::SecurityLevel security_level_; | 236 security_state::SecurityLevel security_level_; |
| 240 | 237 |
| 241 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 238 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
| 242 }; | 239 }; |
| 243 | 240 |
| 244 #endif // CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ | 241 #endif // CHROME_BROWSER_UI_PAGE_INFO_WEBSITE_SETTINGS_H_ |
| OLD | NEW |