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

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: *original_url_via_service_worker = GURL(); 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..675b3310d23308827715e93a48cc06767aa7a413 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 by a ServiceWorker.
+ bool was_fetched_via_service_worker;
+
+ // The original URL of the response which was fetched by the ServiceWorker.
+ // This may be empty if the response was created inside the ServiceWorker.
+ GURL original_url_via_service_worker;
};
} // namespace content
« no previous file with comments | « content/common/service_worker/service_worker_types.cc ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698