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

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

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Support resourceLoadInfo (encodedDataLength) Created 4 years, 3 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 19 matching lines...) Expand all
538 { 548 {
539 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 549 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
540 } 550 }
541 551
542 WebURLResponse::WebURLResponse(ResourceResponse& r) 552 WebURLResponse::WebURLResponse(ResourceResponse& r)
543 : m_resourceResponse(&r) 553 : m_resourceResponse(&r)
544 { 554 {
545 } 555 }
546 556
547 } // namespace blink 557 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698