| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2009 Google Inc. All rights reserved. | 2  * Copyright (C) 2009 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  *     * Redistributions of source code must retain the above copyright | 8  *     * Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  *     * Redistributions in binary form must reproduce the above | 10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 328 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) | 328 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) | 
| 329 { | 329 { | 
| 330     m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse::SecurityS
     tyle>(securityStyle)); | 330     m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse::SecurityS
     tyle>(securityStyle)); | 
| 331 } | 331 } | 
| 332 | 332 | 
| 333 void WebURLResponse::setSecurityDetails(const WebSecurityDetails& webSecurityDet
     ails) | 333 void WebURLResponse::setSecurityDetails(const WebSecurityDetails& webSecurityDet
     ails) | 
| 334 { | 334 { | 
| 335     blink::ResourceResponse::SignedCertificateTimestampList sctList; | 335     blink::ResourceResponse::SignedCertificateTimestampList sctList; | 
| 336     for (const auto& iter : webSecurityDetails.sctList) | 336     for (const auto& iter : webSecurityDetails.sctList) | 
| 337         sctList.append(static_cast<blink::ResourceResponse::SignedCertificateTim
     estamp>(iter)); | 337         sctList.append(static_cast<blink::ResourceResponse::SignedCertificateTim
     estamp>(iter)); | 
|  | 338     Vector<String> sanList; | 
|  | 339     sanList.append(webSecurityDetails.sanList.data(), webSecurityDetails.sanList
     .size()); | 
| 338     m_resourceResponse->setSecurityDetails( | 340     m_resourceResponse->setSecurityDetails( | 
| 339         webSecurityDetails.protocol, | 341         webSecurityDetails.protocol, | 
| 340         webSecurityDetails.keyExchange, | 342         webSecurityDetails.keyExchange, | 
| 341         webSecurityDetails.cipher, | 343         webSecurityDetails.cipher, | 
| 342         webSecurityDetails.mac, | 344         webSecurityDetails.mac, | 
| 343         webSecurityDetails.certId, | 345         webSecurityDetails.subjectName, | 
|  | 346         sanList, | 
|  | 347         webSecurityDetails.issuer, | 
|  | 348         static_cast<time_t>(webSecurityDetails.validFrom), | 
|  | 349         static_cast<time_t>(webSecurityDetails.validTo), | 
|  | 350         webSecurityDetails.certificate, | 
| 344         sctList); | 351         sctList); | 
| 345 } | 352 } | 
| 346 | 353 | 
| 347 ResourceResponse& WebURLResponse::toMutableResourceResponse() | 354 ResourceResponse& WebURLResponse::toMutableResourceResponse() | 
| 348 { | 355 { | 
| 349     return *m_resourceResponse; | 356     return *m_resourceResponse; | 
| 350 } | 357 } | 
| 351 | 358 | 
| 352 const ResourceResponse& WebURLResponse::toResourceResponse() const | 359 const ResourceResponse& WebURLResponse::toResourceResponse() const | 
| 353 { | 360 { | 
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 538 { | 545 { | 
| 539     m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 546     m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 
| 540 } | 547 } | 
| 541 | 548 | 
| 542 WebURLResponse::WebURLResponse(ResourceResponse& r) | 549 WebURLResponse::WebURLResponse(ResourceResponse& r) | 
| 543     : m_resourceResponse(&r) | 550     : m_resourceResponse(&r) | 
| 544 { | 551 { | 
| 545 } | 552 } | 
| 546 | 553 | 
| 547 } // namespace blink | 554 } // namespace blink | 
| OLD | NEW | 
|---|