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) |