| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(); | 453 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(); |
| 454 if (!data) | 454 if (!data) |
| 455 return 0; | 455 return 0; |
| 456 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); | 456 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); |
| 457 } | 457 } |
| 458 | 458 |
| 459 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { | 459 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { |
| 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 461 } | 461 } |
| 462 | 462 |
| 463 WebString WebURLResponse::alpnNegotiatedProtocol() const { |
| 464 return m_resourceResponse->alpnNegotiatedProtocol(); |
| 465 } |
| 466 |
| 467 void WebURLResponse::setALPNNegotiatedProtocol( |
| 468 const WebString& alpnNegotiatedProtocol) { |
| 469 m_resourceResponse->setALPNNegotiatedProtocol(alpnNegotiatedProtocol); |
| 470 } |
| 471 |
| 472 WebString WebURLResponse::connectionInfo() const { |
| 473 return m_resourceResponse->connectionInfo(); |
| 474 } |
| 475 |
| 476 void WebURLResponse::setConnectionInfo(const WebString& connectionInfo) { |
| 477 m_resourceResponse->setConnectionInfo(connectionInfo); |
| 478 } |
| 479 |
| 463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 480 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 481 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 465 } | 482 } |
| 466 | 483 |
| 467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 484 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 468 | 485 |
| 469 } // namespace blink | 486 } // namespace blink |
| OLD | NEW |