Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698