| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 visible_security_state.url.SchemeIsCryptographic(); | 235 visible_security_state.url.SchemeIsCryptographic(); |
| 236 security_info->obsolete_ssl_status = | 236 security_info->obsolete_ssl_status = |
| 237 net::ObsoleteSSLStatus(security_info->connection_status); | 237 net::ObsoleteSSLStatus(security_info->connection_status); |
| 238 security_info->pkp_bypassed = visible_security_state.pkp_bypassed; | 238 security_info->pkp_bypassed = visible_security_state.pkp_bypassed; |
| 239 security_info->sct_verify_statuses = | 239 security_info->sct_verify_statuses = |
| 240 visible_security_state.sct_verify_statuses; | 240 visible_security_state.sct_verify_statuses; |
| 241 | 241 |
| 242 security_info->fails_malware_check = | 242 security_info->fails_malware_check = |
| 243 visible_security_state.fails_malware_check; | 243 visible_security_state.fails_malware_check; |
| 244 | 244 |
| 245 security_info->displayed_password_field_on_http = | 245 security_info->displayed_private_user_data_input_on_http = |
| 246 visible_security_state.displayed_password_field_on_http; | 246 visible_security_state.displayed_password_field_on_http || |
| 247 security_info->displayed_credit_card_field_on_http = | |
| 248 visible_security_state.displayed_credit_card_field_on_http; | 247 visible_security_state.displayed_credit_card_field_on_http; |
| 249 | 248 |
| 250 security_info->security_level = GetSecurityLevelForRequest( | 249 security_info->security_level = GetSecurityLevelForRequest( |
| 251 visible_security_state, client, security_info->sha1_deprecation_status, | 250 visible_security_state, client, security_info->sha1_deprecation_status, |
| 252 security_info->mixed_content_status, | 251 security_info->mixed_content_status, |
| 253 security_info->content_with_cert_errors_status); | 252 security_info->content_with_cert_errors_status); |
| 254 } | 253 } |
| 255 | 254 |
| 256 } // namespace | 255 } // namespace |
| 257 | 256 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 268 sha1_deprecation_status(SecurityStateModel::NO_DEPRECATED_SHA1), | 267 sha1_deprecation_status(SecurityStateModel::NO_DEPRECATED_SHA1), |
| 269 mixed_content_status(SecurityStateModel::CONTENT_STATUS_NONE), | 268 mixed_content_status(SecurityStateModel::CONTENT_STATUS_NONE), |
| 270 content_with_cert_errors_status(SecurityStateModel::CONTENT_STATUS_NONE), | 269 content_with_cert_errors_status(SecurityStateModel::CONTENT_STATUS_NONE), |
| 271 scheme_is_cryptographic(false), | 270 scheme_is_cryptographic(false), |
| 272 cert_status(0), | 271 cert_status(0), |
| 273 security_bits(-1), | 272 security_bits(-1), |
| 274 connection_status(0), | 273 connection_status(0), |
| 275 key_exchange_group(0), | 274 key_exchange_group(0), |
| 276 obsolete_ssl_status(net::OBSOLETE_SSL_NONE), | 275 obsolete_ssl_status(net::OBSOLETE_SSL_NONE), |
| 277 pkp_bypassed(false), | 276 pkp_bypassed(false), |
| 278 displayed_password_field_on_http(false), | 277 displayed_private_user_data_input_on_http(false) {} |
| 279 displayed_credit_card_field_on_http(false) {} | |
| 280 | 278 |
| 281 SecurityStateModel::SecurityInfo::~SecurityInfo() {} | 279 SecurityStateModel::SecurityInfo::~SecurityInfo() {} |
| 282 | 280 |
| 283 SecurityStateModel::SecurityStateModel() {} | 281 SecurityStateModel::SecurityStateModel() {} |
| 284 | 282 |
| 285 SecurityStateModel::~SecurityStateModel() {} | 283 SecurityStateModel::~SecurityStateModel() {} |
| 286 | 284 |
| 287 void SecurityStateModel::GetSecurityInfo( | 285 void SecurityStateModel::GetSecurityInfo( |
| 288 SecurityStateModel::SecurityInfo* result) const { | 286 SecurityStateModel::SecurityInfo* result) const { |
| 289 VisibleSecurityState new_visible_state; | 287 VisibleSecurityState new_visible_state; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 other.displayed_content_with_cert_errors && | 326 other.displayed_content_with_cert_errors && |
| 329 ran_content_with_cert_errors == other.ran_content_with_cert_errors && | 327 ran_content_with_cert_errors == other.ran_content_with_cert_errors && |
| 330 pkp_bypassed == other.pkp_bypassed && | 328 pkp_bypassed == other.pkp_bypassed && |
| 331 displayed_password_field_on_http == | 329 displayed_password_field_on_http == |
| 332 other.displayed_password_field_on_http && | 330 other.displayed_password_field_on_http && |
| 333 displayed_credit_card_field_on_http == | 331 displayed_credit_card_field_on_http == |
| 334 other.displayed_credit_card_field_on_http); | 332 other.displayed_credit_card_field_on_http); |
| 335 } | 333 } |
| 336 | 334 |
| 337 } // namespace security_state | 335 } // namespace security_state |
| OLD | NEW |