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