| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ssl/connection_security.h" | 5 #include "chrome/browser/ssl/connection_security.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ssl/ssl_error_info.h" | |
| 13 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
| 14 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 16 #include "content/public/browser/cert_store.h" | 15 #include "content/public/browser/cert_store.h" |
| 17 #include "content/public/browser/navigation_controller.h" | 16 #include "content/public/browser/navigation_controller.h" |
| 18 #include "content/public/browser/navigation_entry.h" | 17 #include "content/public/browser/navigation_entry.h" |
| 19 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 20 #include "content/public/common/origin_util.h" | 19 #include "content/public/common/origin_util.h" |
| 21 #include "content/public/common/ssl_status.h" | 20 #include "content/public/common/ssl_status.h" |
| 22 #include "net/base/net_util.h" | 21 #include "net/base/net_util.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 228 |
| 230 const content::SSLStatus& ssl = entry->GetSSL(); | 229 const content::SSLStatus& ssl = entry->GetSSL(); |
| 231 scoped_refptr<net::X509Certificate> cert = GetCertForSSLStatus(ssl); | 230 scoped_refptr<net::X509Certificate> cert = GetCertForSSLStatus(ssl); |
| 232 security_info->sha1_deprecation_status = GetSHA1DeprecationStatus(cert, ssl); | 231 security_info->sha1_deprecation_status = GetSHA1DeprecationStatus(cert, ssl); |
| 233 security_info->mixed_content_status = GetMixedContentStatus(ssl); | 232 security_info->mixed_content_status = GetMixedContentStatus(ssl); |
| 234 security_info->cert_status = ssl.cert_status; | 233 security_info->cert_status = ssl.cert_status; |
| 235 security_info->cert_id = ssl.cert_id; | 234 security_info->cert_id = ssl.cert_id; |
| 236 } | 235 } |
| 237 | 236 |
| 238 } // namespace connection_security | 237 } // namespace connection_security |
| OLD | NEW |