| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 unsigned short WebURLResponse::remotePort() const | 501 unsigned short WebURLResponse::remotePort() const |
| 502 { | 502 { |
| 503 return m_resourceResponse->remotePort(); | 503 return m_resourceResponse->remotePort(); |
| 504 } | 504 } |
| 505 | 505 |
| 506 void WebURLResponse::setRemotePort(unsigned short remotePort) | 506 void WebURLResponse::setRemotePort(unsigned short remotePort) |
| 507 { | 507 { |
| 508 m_resourceResponse->setRemotePort(remotePort); | 508 m_resourceResponse->setRemotePort(remotePort); |
| 509 } | 509 } |
| 510 | 510 |
| 511 long long WebURLResponse::encodedDataLength() const |
| 512 { |
| 513 return m_resourceResponse->encodedDataLength(); |
| 514 } |
| 515 |
| 516 void WebURLResponse::addToEncodedDataLength(long long length) |
| 517 { |
| 518 m_resourceResponse->addToEncodedDataLength(length); |
| 519 } |
| 520 |
| 511 long long WebURLResponse::encodedBodyLength() const | 521 long long WebURLResponse::encodedBodyLength() const |
| 512 { | 522 { |
| 513 return m_resourceResponse->encodedBodyLength(); | 523 return m_resourceResponse->encodedBodyLength(); |
| 514 } | 524 } |
| 515 | 525 |
| 516 void WebURLResponse::addToEncodedBodyLength(long long length) | 526 void WebURLResponse::addToEncodedBodyLength(long long length) |
| 517 { | 527 { |
| 518 m_resourceResponse->addToEncodedBodyLength(length); | 528 m_resourceResponse->addToEncodedBodyLength(length); |
| 519 } | 529 } |
| 520 | 530 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 534 if (!data) | 544 if (!data) |
| 535 return 0; | 545 return 0; |
| 536 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); | 546 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); |
| 537 } | 547 } |
| 538 | 548 |
| 539 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) | 549 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) |
| 540 { | 550 { |
| 541 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 551 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 542 } | 552 } |
| 543 | 553 |
| 554 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) |
| 555 { |
| 556 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 557 } |
| 558 |
| 544 WebURLResponse::WebURLResponse(ResourceResponse& r) | 559 WebURLResponse::WebURLResponse(ResourceResponse& r) |
| 545 : m_resourceResponse(&r) | 560 : m_resourceResponse(&r) |
| 546 { | 561 { |
| 547 } | 562 } |
| 548 | 563 |
| 549 } // namespace blink | 564 } // namespace blink |
| OLD | NEW |