| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 261 } |
| 262 | 262 |
| 263 void WebURLResponse::setAppCacheManifestURL(const WebURL& url) { | 263 void WebURLResponse::setAppCacheManifestURL(const WebURL& url) { |
| 264 m_resourceResponse->setAppCacheManifestURL(url); | 264 m_resourceResponse->setAppCacheManifestURL(url); |
| 265 } | 265 } |
| 266 | 266 |
| 267 void WebURLResponse::setHasMajorCertificateErrors(bool value) { | 267 void WebURLResponse::setHasMajorCertificateErrors(bool value) { |
| 268 m_resourceResponse->setHasMajorCertificateErrors(value); | 268 m_resourceResponse->setHasMajorCertificateErrors(value); |
| 269 } | 269 } |
| 270 | 270 |
| 271 WebURLResponse::SecurityStyle WebURLResponse::getSecurityStyle() const { | 271 WebSecurityStyle WebURLResponse::getSecurityStyle() const { |
| 272 return static_cast<SecurityStyle>(m_resourceResponse->getSecurityStyle()); | 272 return static_cast<WebSecurityStyle>(m_resourceResponse->getSecurityStyle()); |
| 273 } | 273 } |
| 274 | 274 |
| 275 void WebURLResponse::setSecurityStyle(SecurityStyle securityStyle) { | 275 void WebURLResponse::setSecurityStyle(WebSecurityStyle securityStyle) { |
| 276 m_resourceResponse->setSecurityStyle( | 276 m_resourceResponse->setSecurityStyle( |
| 277 static_cast<ResourceResponse::SecurityStyle>(securityStyle)); | 277 static_cast<ResourceResponse::SecurityStyle>(securityStyle)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void WebURLResponse::setSecurityDetails( | 280 void WebURLResponse::setSecurityDetails( |
| 281 const WebSecurityDetails& webSecurityDetails) { | 281 const WebSecurityDetails& webSecurityDetails) { |
| 282 blink::ResourceResponse::SignedCertificateTimestampList sctList; | 282 blink::ResourceResponse::SignedCertificateTimestampList sctList; |
| 283 for (const auto& iter : webSecurityDetails.sctList) | 283 for (const auto& iter : webSecurityDetails.sctList) |
| 284 sctList.append( | 284 sctList.append( |
| 285 static_cast<blink::ResourceResponse::SignedCertificateTimestamp>(iter)); | 285 static_cast<blink::ResourceResponse::SignedCertificateTimestamp>(iter)); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 465 } | 465 } |
| 466 | 466 |
| 467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 468 | 468 |
| 469 } // namespace blink | 469 } // namespace blink |
| OLD | NEW |