| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/web/net/request_tracker_impl.h" | 5 #include "ios/web/net/request_tracker_impl.h" |
| 6 | 6 |
| 7 #include <pthread.h> | 7 #include <pthread.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 NSString* sslInfo = @""; | 312 NSString* sslInfo = @""; |
| 313 if (sslInfo_.is_valid()) { | 313 if (sslInfo_.is_valid()) { |
| 314 switch (status_.security_style) { | 314 switch (status_.security_style) { |
| 315 case web::SECURITY_STYLE_UNKNOWN: | 315 case web::SECURITY_STYLE_UNKNOWN: |
| 316 case web::SECURITY_STYLE_UNAUTHENTICATED: | 316 case web::SECURITY_STYLE_UNAUTHENTICATED: |
| 317 sslInfo = @"Unexpected SSL state "; | 317 sslInfo = @"Unexpected SSL state "; |
| 318 break; | 318 break; |
| 319 case web::SECURITY_STYLE_AUTHENTICATION_BROKEN: | 319 case web::SECURITY_STYLE_AUTHENTICATION_BROKEN: |
| 320 sslInfo = @"Not secure "; | 320 sslInfo = @"Not secure "; |
| 321 break; | 321 break; |
| 322 case web::SECURITY_STYLE_WARNING: | |
| 323 sslInfo = @"Security warning"; | |
| 324 break; | |
| 325 case web::SECURITY_STYLE_AUTHENTICATED: | 322 case web::SECURITY_STYLE_AUTHENTICATED: |
| 326 if (status_.content_status == | 323 if (status_.content_status == |
| 327 web::SSLStatus::DISPLAYED_INSECURE_CONTENT) | 324 web::SSLStatus::DISPLAYED_INSECURE_CONTENT) |
| 328 sslInfo = @"Mixed "; | 325 sslInfo = @"Mixed "; |
| 329 else | 326 else |
| 330 sslInfo = @"Secure "; | 327 sslInfo = @"Secure "; |
| 331 break; | 328 break; |
| 332 } | 329 } |
| 333 } | 330 } |
| 334 | 331 |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 })); | 1302 })); |
| 1306 } | 1303 } |
| 1307 } | 1304 } |
| 1308 | 1305 |
| 1309 void RequestTrackerImpl::SetCertificatePolicyCacheForTest( | 1306 void RequestTrackerImpl::SetCertificatePolicyCacheForTest( |
| 1310 web::CertificatePolicyCache* cache) { | 1307 web::CertificatePolicyCache* cache) { |
| 1311 policy_cache_ = cache; | 1308 policy_cache_ = cache; |
| 1312 } | 1309 } |
| 1313 | 1310 |
| 1314 } // namespace web | 1311 } // namespace web |
| OLD | NEW |