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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 return site_identity_details_; | 110 return site_identity_details_; |
111 } | 111 } |
112 | 112 |
113 base::string16 organization_name() const { | 113 base::string16 organization_name() const { |
114 return organization_name_; | 114 return organization_name_; |
115 } | 115 } |
116 | 116 |
117 // SiteDataObserver implementation. | 117 // SiteDataObserver implementation. |
118 virtual void OnSiteDataAccessed() OVERRIDE; | 118 virtual void OnSiteDataAccessed() OVERRIDE; |
119 | 119 |
120 // Returns the Omnibox URL of the website for which to display site | |
121 // permissions and site information. | |
Peter Kasting
2014/07/26 02:40:39
Nit: Remove this comment. The comment on the memb
jww
2014/07/27 17:29:26
Done.
| |
122 const GURL& GetSiteURL() const { return site_url_; } | |
Peter Kasting
2014/07/26 02:40:39
Nit: Inlined accessors should be named unix_hacker
jww
2014/07/27 17:29:26
Done.
| |
123 | |
120 private: | 124 private: |
121 // Initializes the |WebsiteSettings|. | 125 // Initializes the |WebsiteSettings|. |
122 void Init(Profile* profile, | 126 void Init(Profile* profile, |
123 const GURL& url, | 127 const GURL& url, |
124 const content::SSLStatus& ssl); | 128 const content::SSLStatus& ssl); |
125 | 129 |
126 // Sets (presents) the information about the site's permissions in the |ui_|. | 130 // Sets (presents) the information about the site's permissions in the |ui_|. |
127 void PresentSitePermissions(); | 131 void PresentSitePermissions(); |
128 | 132 |
129 // Sets (presents) the information about the site's data in the |ui_|. | 133 // Sets (presents) the information about the site's data in the |ui_|. |
(...skipping 42 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 |