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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/task/cancelable_task_tracker.h" | 10 #include "base/task/cancelable_task_tracker.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 base::Time first_visit); | 91 base::Time first_visit); |
92 | 92 |
93 // This method is called by the UI when the UI is closing. | 93 // This method is called by the UI when the UI is closing. |
94 void OnUIClosing(); | 94 void OnUIClosing(); |
95 | 95 |
96 // Accessors. | 96 // Accessors. |
97 SiteConnectionStatus site_connection_status() const { | 97 SiteConnectionStatus site_connection_status() const { |
98 return site_connection_status_; | 98 return site_connection_status_; |
99 } | 99 } |
100 | 100 |
| 101 const GURL& site_url() const { |
| 102 return site_url_; |
| 103 } |
| 104 |
101 SiteIdentityStatus site_identity_status() const { | 105 SiteIdentityStatus site_identity_status() const { |
102 return site_identity_status_; | 106 return site_identity_status_; |
103 } | 107 } |
104 | 108 |
105 base::string16 site_connection_details() const { | 109 base::string16 site_connection_details() const { |
106 return site_connection_details_; | 110 return site_connection_details_; |
107 } | 111 } |
108 | 112 |
109 base::string16 site_identity_details() const { | 113 base::string16 site_identity_details() const { |
110 return site_identity_details_; | 114 return site_identity_details_; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 176 |
173 // TODO(markusheintz): Move the creation of all the base::string16 typed UI | 177 // TODO(markusheintz): Move the creation of all the base::string16 typed UI |
174 // strings below to the corresponding UI code, in order to prevent | 178 // strings below to the corresponding UI code, in order to prevent |
175 // unnecessary UTF-8 string conversions. | 179 // unnecessary UTF-8 string conversions. |
176 | 180 |
177 // Details about the website's identity. If the website's identity has been | 181 // Details about the website's identity. If the website's identity has been |
178 // verified then |site_identity_details_| contains who verified the identity. | 182 // verified then |site_identity_details_| contains who verified the identity. |
179 // This string will be displayed in the UI. | 183 // This string will be displayed in the UI. |
180 base::string16 site_identity_details_; | 184 base::string16 site_identity_details_; |
181 | 185 |
| 186 // Whether the user has made an explicit decision about how some certificate |
| 187 // errors for this host should be handled. |
| 188 bool certificate_decision_made_; |
| 189 |
182 // Details about the connection to the website. In case of an encrypted | 190 // Details about the connection to the website. In case of an encrypted |
183 // connection |site_connection_details_| contains encryption details, like | 191 // connection |site_connection_details_| contains encryption details, like |
184 // encryption strength and ssl protocol version. This string will be | 192 // encryption strength and ssl protocol version. This string will be |
185 // displayed in the UI. | 193 // displayed in the UI. |
186 base::string16 site_connection_details_; | 194 base::string16 site_connection_details_; |
187 | 195 |
188 // For websites that provided an EV certificate |orgainization_name_| | 196 // For websites that provided an EV certificate |orgainization_name_| |
189 // contains the organization name of the certificate. In all other cases | 197 // contains the organization name of the certificate. In all other cases |
190 // |organization_name| is an empty string. This string will be displayed in | 198 // |organization_name| is an empty string. This string will be displayed in |
191 // the UI. | 199 // the UI. |
192 base::string16 organization_name_; | 200 base::string16 organization_name_; |
193 | 201 |
194 // The |CertStore| provides all X509Certificates. | 202 // The |CertStore| provides all X509Certificates. |
195 content::CertStore* cert_store_; | 203 content::CertStore* cert_store_; |
196 | 204 |
197 // The |HostContentSettingsMap| is the service that provides and manages | 205 // The |HostContentSettingsMap| is the service that provides and manages |
198 // content settings (aka. site permissions). | 206 // content settings (aka. site permissions). |
199 HostContentSettingsMap* content_settings_; | 207 HostContentSettingsMap* content_settings_; |
200 | 208 |
201 // Used to request the number of page visits. | 209 // Used to request the number of page visits. |
202 base::CancelableTaskTracker visit_count_task_tracker_; | 210 base::CancelableTaskTracker visit_count_task_tracker_; |
203 | 211 |
204 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 212 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
205 }; | 213 }; |
206 | 214 |
207 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 215 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
OLD | NEW |