| 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/chrome_security_state_model_client.h" | 5 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| 6 | 6 |
| 7 #include <openssl/ssl.h> | 7 #include <openssl/ssl.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 } | 321 } |
| 322 | 322 |
| 323 return security_style; | 323 return security_style; |
| 324 } | 324 } |
| 325 | 325 |
| 326 void ChromeSecurityStateModelClient::GetSecurityInfo( | 326 void ChromeSecurityStateModelClient::GetSecurityInfo( |
| 327 SecurityStateModel::SecurityInfo* result) const { | 327 SecurityStateModel::SecurityInfo* result) const { |
| 328 security_state_model_->GetSecurityInfo(result); | 328 security_state_model_->GetSecurityInfo(result); |
| 329 } | 329 } |
| 330 | 330 |
| 331 void ChromeSecurityStateModelClient::VisibleSecurityStateChanged() { | 331 void ChromeSecurityStateModelClient::VisibleSSLStateChanged() { |
| 332 if (logged_http_warning_on_current_navigation_) | 332 if (logged_http_warning_on_current_navigation_) |
| 333 return; | 333 return; |
| 334 | 334 |
| 335 security_state::SecurityStateModel::SecurityInfo security_info; | 335 security_state::SecurityStateModel::SecurityInfo security_info; |
| 336 GetSecurityInfo(&security_info); | 336 GetSecurityInfo(&security_info); |
| 337 if (!security_info.displayed_private_user_data_input_on_http) | 337 if (!security_info.displayed_private_user_data_input_on_http) |
| 338 return; | 338 return; |
| 339 | 339 |
| 340 std::string warning; | 340 std::string warning; |
| 341 switch (security_info.security_level) { | 341 switch (security_info.security_level) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS); | 427 !!(ssl.content_status & content::SSLStatus::RAN_CONTENT_WITH_CERT_ERRORS); |
| 428 state->displayed_password_field_on_http = | 428 state->displayed_password_field_on_http = |
| 429 !!(ssl.content_status & | 429 !!(ssl.content_status & |
| 430 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP); | 430 content::SSLStatus::DISPLAYED_PASSWORD_FIELD_ON_HTTP); |
| 431 state->displayed_credit_card_field_on_http = | 431 state->displayed_credit_card_field_on_http = |
| 432 !!(ssl.content_status & | 432 !!(ssl.content_status & |
| 433 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP); | 433 content::SSLStatus::DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP); |
| 434 | 434 |
| 435 CheckSafeBrowsingStatus(entry, web_contents_, state); | 435 CheckSafeBrowsingStatus(entry, web_contents_, state); |
| 436 } | 436 } |
| OLD | NEW |