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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Nit + rebase + build fix 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp b/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
index 5b5c8c4a03d449fa3ae09795fcf0eb44a10f5c38..bb22a09fc4ca40e2448ce5020d9c1a0235220355 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLResponse.cpp
@@ -508,6 +508,16 @@ void WebURLResponse::setRemotePort(unsigned short remotePort)
m_resourceResponse->setRemotePort(remotePort);
}
+long long WebURLResponse::encodedDataLength() const
+{
+ return m_resourceResponse->encodedDataLength();
+}
+
+void WebURLResponse::addToEncodedDataLength(long long length)
+{
+ m_resourceResponse->addToEncodedDataLength(length);
+}
+
long long WebURLResponse::encodedBodyLength() const
{
return m_resourceResponse->encodedBodyLength();
@@ -541,6 +551,11 @@ void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData)
m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
}
+void WebURLResponse::appendRedirectResponse(const WebURLResponse& response)
+{
+ m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
+}
+
WebURLResponse::WebURLResponse(ResourceResponse& r)
: m_resourceResponse(&r)
{

Powered by Google App Engine
This is Rietveld 408576698