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

Unified Diff: content/public/common/resource_response_info.h

Issue 375513002: [ServiceWorker] Propagates ServiceWorker fetched response's URL and wasFetchedViaServiceWorker flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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: content/public/common/resource_response_info.h
diff --git a/content/public/common/resource_response_info.h b/content/public/common/resource_response_info.h
index 31fa4b905b961afada157bd89bc1d54c4123b23e..7d22c1c94d607eb0d93d5d1a42ea214ea4642f29 100644
--- a/content/public/common/resource_response_info.h
+++ b/content/public/common/resource_response_info.h
@@ -97,6 +97,13 @@ struct ResourceResponseInfo {
// Remote address of the socket which fetched this resource.
net::HostPortPair socket_address;
+
+ // True if the response was fetched via a ServiceWorker.
+ bool was_fetched_via_service_worker;
+
+ // The original URL of the response which was fetched via the ServiceWorker.
tyoshino (SeeGerritForStatus) 2014/07/14 07:00:42 via -> by would be better? I think the response ca
horo 2014/07/15 00:36:17 Done.
+ // This may be empty if the response was created inside the ServiceWorker.
+ GURL original_url_via_service_worker;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698