| 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 "content/child/web_url_loader_impl.h" | 5 #include "content/child/web_url_loader_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 securityStyle = WebURLResponse::SecurityStyleWarning; | 272 securityStyle = WebURLResponse::SecurityStyleWarning; |
| 273 break; | 273 break; |
| 274 case SECURITY_STYLE_AUTHENTICATED: | 274 case SECURITY_STYLE_AUTHENTICATED: |
| 275 securityStyle = WebURLResponse::SecurityStyleAuthenticated; | 275 securityStyle = WebURLResponse::SecurityStyleAuthenticated; |
| 276 break; | 276 break; |
| 277 } | 277 } |
| 278 | 278 |
| 279 response->setSecurityStyle(securityStyle); | 279 response->setSecurityStyle(securityStyle); |
| 280 | 280 |
| 281 size_t num_unknown_scts = ssl_status.num_unknown_scts; | 281 size_t num_unknown_scts = ssl_status.num_unknown_scts; |
| 282 size_t num_invalid_scts = ssl_status.num_invalid_scts; | 282 size_t num_invalid_scts = ssl_status.num_scts_invalid_signature + |
| 283 ssl_status.num_scts_invalid_timestamp; |
| 283 size_t num_valid_scts = ssl_status.num_valid_scts; | 284 size_t num_valid_scts = ssl_status.num_valid_scts; |
| 284 | 285 |
| 285 blink::WebURLResponse::SignedCertificateTimestampList sct_list( | 286 blink::WebURLResponse::SignedCertificateTimestampList sct_list( |
| 286 info.signed_certificate_timestamps.size()); | 287 info.signed_certificate_timestamps.size()); |
| 287 | 288 |
| 288 for (size_t i = 0; i < sct_list.size(); ++i) | 289 for (size_t i = 0; i < sct_list.size(); ++i) |
| 289 sct_list[i] = NetSCTToBlinkSCT(info.signed_certificate_timestamps[i]); | 290 sct_list[i] = NetSCTToBlinkSCT(info.signed_certificate_timestamps[i]); |
| 290 | 291 |
| 291 blink::WebURLResponse::WebSecurityDetails webSecurityDetails( | 292 blink::WebURLResponse::WebSecurityDetails webSecurityDetails( |
| 292 WebString::fromUTF8(protocol), WebString::fromUTF8(key_exchange), | 293 WebString::fromUTF8(protocol), WebString::fromUTF8(key_exchange), |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 response->clearHTTPHeaderField(webStringName); | 1235 response->clearHTTPHeaderField(webStringName); |
| 1235 while (response_headers->EnumerateHeader(&iterator, name, &value)) { | 1236 while (response_headers->EnumerateHeader(&iterator, name, &value)) { |
| 1236 response->addHTTPHeaderField(webStringName, | 1237 response->addHTTPHeaderField(webStringName, |
| 1237 WebString::fromLatin1(value)); | 1238 WebString::fromLatin1(value)); |
| 1238 } | 1239 } |
| 1239 } | 1240 } |
| 1240 return true; | 1241 return true; |
| 1241 } | 1242 } |
| 1242 | 1243 |
| 1243 } // namespace content | 1244 } // namespace content |
| OLD | NEW |