| 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 "components/security_state/security_state_model.h" | 5 #include "components/security_state/security_state_model.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 visible_security_state.url.SchemeIsCryptographic(); | 234 visible_security_state.url.SchemeIsCryptographic(); |
| 235 security_info->obsolete_ssl_status = | 235 security_info->obsolete_ssl_status = |
| 236 net::ObsoleteSSLStatus(security_info->connection_status); | 236 net::ObsoleteSSLStatus(security_info->connection_status); |
| 237 security_info->pkp_bypassed = visible_security_state.pkp_bypassed; | 237 security_info->pkp_bypassed = visible_security_state.pkp_bypassed; |
| 238 security_info->sct_verify_statuses = | 238 security_info->sct_verify_statuses = |
| 239 visible_security_state.sct_verify_statuses; | 239 visible_security_state.sct_verify_statuses; |
| 240 | 240 |
| 241 security_info->fails_malware_check = | 241 security_info->fails_malware_check = |
| 242 visible_security_state.fails_malware_check; | 242 visible_security_state.fails_malware_check; |
| 243 | 243 |
| 244 security_info->displayed_private_user_data_input_on_http = |
| 245 visible_security_state.displayed_password_field_on_http || |
| 246 visible_security_state.displayed_credit_card_field_on_http; |
| 247 |
| 244 security_info->security_level = GetSecurityLevelForRequest( | 248 security_info->security_level = GetSecurityLevelForRequest( |
| 245 visible_security_state, client, security_info->sha1_deprecation_status, | 249 visible_security_state, client, security_info->sha1_deprecation_status, |
| 246 security_info->mixed_content_status, | 250 security_info->mixed_content_status, |
| 247 security_info->content_with_cert_errors_status); | 251 security_info->content_with_cert_errors_status); |
| 248 } | 252 } |
| 249 | 253 |
| 250 } // namespace | 254 } // namespace |
| 251 | 255 |
| 252 const SecurityStateModel::SecurityLevel | 256 const SecurityStateModel::SecurityLevel |
| 253 SecurityStateModel::kDisplayedInsecureContentLevel = | 257 SecurityStateModel::kDisplayedInsecureContentLevel = |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 other.displayed_content_with_cert_errors && | 324 other.displayed_content_with_cert_errors && |
| 321 ran_content_with_cert_errors == other.ran_content_with_cert_errors && | 325 ran_content_with_cert_errors == other.ran_content_with_cert_errors && |
| 322 pkp_bypassed == other.pkp_bypassed && | 326 pkp_bypassed == other.pkp_bypassed && |
| 323 displayed_password_field_on_http == | 327 displayed_password_field_on_http == |
| 324 other.displayed_password_field_on_http && | 328 other.displayed_password_field_on_http && |
| 325 displayed_credit_card_field_on_http == | 329 displayed_credit_card_field_on_http == |
| 326 other.displayed_credit_card_field_on_http); | 330 other.displayed_credit_card_field_on_http); |
| 327 } | 331 } |
| 328 | 332 |
| 329 } // namespace security_state | 333 } // namespace security_state |
| OLD | NEW |