| 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 <openssl/ssl.h> | 7 #include <openssl/ssl.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 switch (security_style) { | 265 switch (security_style) { |
| 266 case SECURITY_STYLE_UNKNOWN: | 266 case SECURITY_STYLE_UNKNOWN: |
| 267 security_style_blink = WebURLResponse::SecurityStyleUnknown; | 267 security_style_blink = WebURLResponse::SecurityStyleUnknown; |
| 268 break; | 268 break; |
| 269 case SECURITY_STYLE_UNAUTHENTICATED: | 269 case SECURITY_STYLE_UNAUTHENTICATED: |
| 270 security_style_blink = WebURLResponse::SecurityStyleUnauthenticated; | 270 security_style_blink = WebURLResponse::SecurityStyleUnauthenticated; |
| 271 break; | 271 break; |
| 272 case SECURITY_STYLE_AUTHENTICATION_BROKEN: | 272 case SECURITY_STYLE_AUTHENTICATION_BROKEN: |
| 273 security_style_blink = WebURLResponse::SecurityStyleAuthenticationBroken; | 273 security_style_blink = WebURLResponse::SecurityStyleAuthenticationBroken; |
| 274 break; | 274 break; |
| 275 case SECURITY_STYLE_WARNING: | |
| 276 security_style_blink = WebURLResponse::SecurityStyleWarning; | |
| 277 break; | |
| 278 case SECURITY_STYLE_AUTHENTICATED: | 275 case SECURITY_STYLE_AUTHENTICATED: |
| 279 security_style_blink = WebURLResponse::SecurityStyleAuthenticated; | 276 security_style_blink = WebURLResponse::SecurityStyleAuthenticated; |
| 280 break; | 277 break; |
| 281 } | 278 } |
| 282 | 279 |
| 283 response->setSecurityStyle(security_style_blink); | 280 response->setSecurityStyle(security_style_blink); |
| 284 | 281 |
| 285 blink::WebURLResponse::SignedCertificateTimestampList sct_list( | 282 blink::WebURLResponse::SignedCertificateTimestampList sct_list( |
| 286 info.signed_certificate_timestamps.size()); | 283 info.signed_certificate_timestamps.size()); |
| 287 | 284 |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 response->clearHTTPHeaderField(webStringName); | 1239 response->clearHTTPHeaderField(webStringName); |
| 1243 while (response_headers->EnumerateHeader(&iterator, name, &value)) { | 1240 while (response_headers->EnumerateHeader(&iterator, name, &value)) { |
| 1244 response->addHTTPHeaderField(webStringName, | 1241 response->addHTTPHeaderField(webStringName, |
| 1245 WebString::fromLatin1(value)); | 1242 WebString::fromLatin1(value)); |
| 1246 } | 1243 } |
| 1247 } | 1244 } |
| 1248 return true; | 1245 return true; |
| 1249 } | 1246 } |
| 1250 | 1247 |
| 1251 } // namespace content | 1248 } // namespace content |
| OLD | NEW |