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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 418 } |
419 | 419 |
420 unsigned short WebURLResponse::remotePort() const { | 420 unsigned short WebURLResponse::remotePort() const { |
421 return m_resourceResponse->remotePort(); | 421 return m_resourceResponse->remotePort(); |
422 } | 422 } |
423 | 423 |
424 void WebURLResponse::setRemotePort(unsigned short remotePort) { | 424 void WebURLResponse::setRemotePort(unsigned short remotePort) { |
425 m_resourceResponse->setRemotePort(remotePort); | 425 m_resourceResponse->setRemotePort(remotePort); |
426 } | 426 } |
427 | 427 |
| 428 long long WebURLResponse::encodedDataLength() const { |
| 429 return m_resourceResponse->encodedDataLength(); |
| 430 } |
| 431 |
| 432 void WebURLResponse::addToEncodedDataLength(long long length) { |
| 433 m_resourceResponse->addToEncodedDataLength(length); |
| 434 } |
| 435 |
428 long long WebURLResponse::encodedBodyLength() const { | 436 long long WebURLResponse::encodedBodyLength() const { |
429 return m_resourceResponse->encodedBodyLength(); | 437 return m_resourceResponse->encodedBodyLength(); |
430 } | 438 } |
431 | 439 |
432 void WebURLResponse::addToEncodedBodyLength(long long length) { | 440 void WebURLResponse::addToEncodedBodyLength(long long length) { |
433 m_resourceResponse->addToEncodedBodyLength(length); | 441 m_resourceResponse->addToEncodedBodyLength(length); |
434 } | 442 } |
435 | 443 |
436 long long WebURLResponse::decodedBodyLength() const { | 444 long long WebURLResponse::decodedBodyLength() const { |
437 return m_resourceResponse->decodedBodyLength(); | 445 return m_resourceResponse->decodedBodyLength(); |
438 } | 446 } |
439 | 447 |
440 void WebURLResponse::addToDecodedBodyLength(long long bytes) { | 448 void WebURLResponse::addToDecodedBodyLength(long long bytes) { |
441 m_resourceResponse->addToDecodedBodyLength(bytes); | 449 m_resourceResponse->addToDecodedBodyLength(bytes); |
442 } | 450 } |
443 | 451 |
444 WebURLResponse::ExtraData* WebURLResponse::getExtraData() const { | 452 WebURLResponse::ExtraData* WebURLResponse::getExtraData() const { |
445 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(); | 453 RefPtr<ResourceResponse::ExtraData> data = m_resourceResponse->getExtraData(); |
446 if (!data) | 454 if (!data) |
447 return 0; | 455 return 0; |
448 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); | 456 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); |
449 } | 457 } |
450 | 458 |
451 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { | 459 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { |
452 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
453 } | 461 } |
454 | 462 |
| 463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 465 } |
| 466 |
455 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
456 | 468 |
457 } // namespace blink | 469 } // namespace blink |
OLD | NEW |