| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 unsigned short WebURLResponse::remotePort() const | 492 unsigned short WebURLResponse::remotePort() const |
| 493 { | 493 { |
| 494 return m_resourceResponse->remotePort(); | 494 return m_resourceResponse->remotePort(); |
| 495 } | 495 } |
| 496 | 496 |
| 497 void WebURLResponse::setRemotePort(unsigned short remotePort) | 497 void WebURLResponse::setRemotePort(unsigned short remotePort) |
| 498 { | 498 { |
| 499 m_resourceResponse->setRemotePort(remotePort); | 499 m_resourceResponse->setRemotePort(remotePort); |
| 500 } | 500 } |
| 501 | 501 |
| 502 long long WebURLResponse::encodedBodyLength() const |
| 503 { |
| 504 return m_resourceResponse->encodedBodyLength(); |
| 505 } |
| 506 |
| 507 void WebURLResponse::addToEncodedBodyLength(long long length) |
| 508 { |
| 509 m_resourceResponse->addToEncodedBodyLength(length); |
| 510 } |
| 511 |
| 512 long long WebURLResponse::decodedBodyLength() const |
| 513 { |
| 514 return m_resourceResponse->decodedBodyLength(); |
| 515 } |
| 516 |
| 517 void WebURLResponse::addToDecodedBodyLength(long long bytes) |
| 518 { |
| 519 m_resourceResponse->addToDecodedBodyLength(bytes); |
| 520 } |
| 521 |
| 502 WebURLResponse::ExtraData* WebURLResponse::getExtraData() const | 522 WebURLResponse::ExtraData* WebURLResponse::getExtraData() const |
| 503 { | 523 { |
| 504 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(
); | 524 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(
); |
| 505 if (!data) | 525 if (!data) |
| 506 return 0; | 526 return 0; |
| 507 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); | 527 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); |
| 508 } | 528 } |
| 509 | 529 |
| 510 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) | 530 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) |
| 511 { | 531 { |
| 512 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 532 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 513 } | 533 } |
| 514 | 534 |
| 515 WebURLResponse::WebURLResponse(ResourceResponse& r) | 535 WebURLResponse::WebURLResponse(ResourceResponse& r) |
| 516 : m_resourceResponse(&r) | 536 : m_resourceResponse(&r) |
| 517 { | 537 { |
| 518 } | 538 } |
| 519 | 539 |
| 520 } // namespace blink | 540 } // namespace blink |
| OLD | NEW |