| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 WebURLResponse::SecurityStyle WebURLResponse::securityStyle() const | 314 WebURLResponse::SecurityStyle WebURLResponse::securityStyle() const |
| 315 { | 315 { |
| 316 return static_cast<SecurityStyle>(m_private->m_resourceResponse->securitySty
le()); | 316 return static_cast<SecurityStyle>(m_private->m_resourceResponse->securitySty
le()); |
| 317 } | 317 } |
| 318 | 318 |
| 319 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) | 319 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) |
| 320 { | 320 { |
| 321 m_private->m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse
::SecurityStyle>(securityStyle)); | 321 m_private->m_resourceResponse->setSecurityStyle(static_cast<ResourceResponse
::SecurityStyle>(securityStyle)); |
| 322 } | 322 } |
| 323 | 323 |
| 324 void WebURLResponse::setSecurityDetails(const WebString& protocol, const WebStri
ng& keyExchange, const WebString& cipher, const WebString& mac, int certId) | 324 void WebURLResponse::setSecurityDetails(const WebSecurityDetails& webSecurityDet
ails) |
| 325 { | 325 { |
| 326 m_private->m_resourceResponse->setSecurityDetails(protocol, keyExchange, cip
her, mac, certId); | 326 m_private->m_resourceResponse->setSecurityDetails( |
| 327 webSecurityDetails.protocol, |
| 328 webSecurityDetails.keyExchange, |
| 329 webSecurityDetails.cipher, |
| 330 webSecurityDetails.mac, |
| 331 webSecurityDetails.certId, |
| 332 webSecurityDetails.numUnknownScts, |
| 333 webSecurityDetails.numInvalidScts, |
| 334 webSecurityDetails.numValidScts); |
| 327 } | 335 } |
| 328 | 336 |
| 329 ResourceResponse& WebURLResponse::toMutableResourceResponse() | 337 ResourceResponse& WebURLResponse::toMutableResourceResponse() |
| 330 { | 338 { |
| 331 ASSERT(m_private); | 339 ASSERT(m_private); |
| 332 ASSERT(m_private->m_resourceResponse); | 340 ASSERT(m_private->m_resourceResponse); |
| 333 | 341 |
| 334 return *m_private->m_resourceResponse; | 342 return *m_private->m_resourceResponse; |
| 335 } | 343 } |
| 336 | 344 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 // Subclasses may call this directly so a self-assignment check is needed | 498 // Subclasses may call this directly so a self-assignment check is needed |
| 491 // here as well as in the public assign method. | 499 // here as well as in the public assign method. |
| 492 if (m_private == p) | 500 if (m_private == p) |
| 493 return; | 501 return; |
| 494 if (m_private) | 502 if (m_private) |
| 495 m_private->dispose(); | 503 m_private->dispose(); |
| 496 m_private = p; | 504 m_private = p; |
| 497 } | 505 } |
| 498 | 506 |
| 499 } // namespace blink | 507 } // namespace blink |
| OLD | NEW |