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 #include "chrome/browser/ui/website_settings/website_settings.h" | 5 #include "chrome/browser/ui/website_settings/website_settings.h" |
6 | 6 |
7 #include <openssl/ssl.h> | 7 #include <openssl/ssl.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 const GURL& url, | 257 const GURL& url, |
258 const SecurityStateModel::SecurityInfo& security_info) | 258 const SecurityStateModel::SecurityInfo& security_info) |
259 : TabSpecificContentSettings::SiteDataObserver( | 259 : TabSpecificContentSettings::SiteDataObserver( |
260 tab_specific_content_settings), | 260 tab_specific_content_settings), |
261 content::WebContentsObserver(web_contents), | 261 content::WebContentsObserver(web_contents), |
262 ui_(ui), | 262 ui_(ui), |
263 show_info_bar_(false), | 263 show_info_bar_(false), |
264 site_url_(url), | 264 site_url_(url), |
265 site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN), | 265 site_identity_status_(SITE_IDENTITY_STATUS_UNKNOWN), |
266 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), | 266 site_connection_status_(SITE_CONNECTION_STATUS_UNKNOWN), |
| 267 show_ssl_decision_revoke_button_(false), |
267 content_settings_(HostContentSettingsMapFactory::GetForProfile(profile)), | 268 content_settings_(HostContentSettingsMapFactory::GetForProfile(profile)), |
268 chrome_ssl_host_state_delegate_( | 269 chrome_ssl_host_state_delegate_( |
269 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)), | 270 ChromeSSLHostStateDelegateFactory::GetForProfile(profile)), |
270 did_revoke_user_ssl_decisions_(false), | 271 did_revoke_user_ssl_decisions_(false), |
271 profile_(profile) { | 272 profile_(profile) { |
272 Init(url, security_info); | 273 Init(url, security_info); |
273 | 274 |
274 PresentSitePermissions(); | 275 PresentSitePermissions(); |
275 PresentSiteData(); | 276 PresentSiteData(); |
276 PresentSiteIdentity(); | 277 PresentSiteIdentity(); |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 info.connection_status = site_connection_status_; | 821 info.connection_status = site_connection_status_; |
821 info.connection_status_description = | 822 info.connection_status_description = |
822 UTF16ToUTF8(site_connection_details_); | 823 UTF16ToUTF8(site_connection_details_); |
823 info.identity_status = site_identity_status_; | 824 info.identity_status = site_identity_status_; |
824 info.identity_status_description = | 825 info.identity_status_description = |
825 UTF16ToUTF8(site_identity_details_); | 826 UTF16ToUTF8(site_identity_details_); |
826 info.certificate = certificate_; | 827 info.certificate = certificate_; |
827 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; | 828 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; |
828 ui_->SetIdentityInfo(info); | 829 ui_->SetIdentityInfo(info); |
829 } | 830 } |
OLD | NEW |