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

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: 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..0e357ebc1a118edd203935ff19de6ba2544d9ba8 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 repsponse which was fetched via the ServiceWorker.
tyoshino (SeeGerritForStatus) 2014/07/08 14:27:49 response
horo 2014/07/09 03:15:01 Done.
+ // This may be empty if the repsponse was created inside the ServiceWorker.
tyoshino (SeeGerritForStatus) 2014/07/08 14:27:49 response
horo 2014/07/09 03:15:01 Done.
+ GURL original_url_via_service_worker;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698