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

Unified Diff: Source/platform/network/ResourceResponse.h

Issue 732963003: Use the request URL as the URL of the resources which are fetched ServiceWorker [1/3 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Source/platform/exported/WebURLResponse.cpp ('k') | Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/network/ResourceResponse.h
diff --git a/Source/platform/network/ResourceResponse.h b/Source/platform/network/ResourceResponse.h
index 9062c085b6163889c68cf340ef63028143971b35..5ac1093d88c02041a854e387f6160c965ccd9544 100644
--- a/Source/platform/network/ResourceResponse.h
+++ b/Source/platform/network/ResourceResponse.h
@@ -169,6 +169,9 @@ public:
WebServiceWorkerResponseType serviceWorkerResponseType() const { return m_serviceWorkerResponseType; }
void setServiceWorkerResponseType(WebServiceWorkerResponseType value) { m_serviceWorkerResponseType = value; }
+ const KURL& originalURLViaServiceWorker() const { return m_originalURLViaServiceWorker; }
+ void setOriginalURLViaServiceWorker(const KURL& url) { m_originalURLViaServiceWorker = url; };
+
bool isMultipartPayload() const { return m_isMultipartPayload; }
void setIsMultipartPayload(bool value) { m_isMultipartPayload = value; }
@@ -271,6 +274,10 @@ private:
// The type of the response which was fetched by the ServiceWorker.
WebServiceWorkerResponseType m_serviceWorkerResponseType;
+ // The original URL of the response which was fetched by the ServiceWorker.
+ // This may be empty if the response was created inside the ServiceWorker.
+ KURL m_originalURLViaServiceWorker;
+
// The time at which the response headers were received. For cached
// responses, this time could be "far" in the past.
double m_responseTime;
@@ -321,6 +328,7 @@ public:
bool m_wasFetchedViaServiceWorker;
bool m_wasFallbackRequiredByServiceWorker;
WebServiceWorkerResponseType m_serviceWorkerResponseType;
+ KURL m_originalURLViaServiceWorker;
double m_responseTime;
String m_remoteIPAddress;
unsigned short m_remotePort;
« no previous file with comments | « Source/platform/exported/WebURLResponse.cpp ('k') | Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698