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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 2316573002: PlzNavigate: Support ResourceTiming API (Closed)
Patch Set: Move redirect response inside the final response. 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/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 3e63db337cff78fbb3111d687e3e9e252b3b70dc..14a5cfaaada464a0d3d109ff03e2a782697c7234 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -162,6 +162,11 @@ void ResourceRequest::setURL(const KURL& url)
m_url = url;
}
+const KURL& ResourceRequest::initialUrl() const
+{
+ return m_initialUrl.isNull() ? m_url : m_initialUrl;
+}
+
void ResourceRequest::removeCredentials()
{
if (m_url.user().isEmpty() && m_url.pass().isEmpty())
@@ -380,6 +385,16 @@ void ResourceRequest::setExternalRequestStateFromRequestorAddressSpace(WebAddres
m_isExternalRequest = requestorSpace > targetSpace;
}
+void ResourceRequest::setInitialURL(const KURL& url)
+{
+ m_initialUrl = url;
+}
+
+void ResourceRequest::setNavigationStartTime(double navigationStart)
+{
+ m_navigationStart = navigationStart;
+}
+
bool ResourceRequest::isConditional() const
{
return (m_httpHeaderFields.contains(HTTPNames::If_Match)

Powered by Google App Engine
This is Rietveld 408576698