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

Unified Diff: net/http/http_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: fix comment 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: net/http/http_response_info.h
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index efd76fe7b517e98d9fcca9242a51a4f792d758a4..917cc1406d22e6cd8e9ce516abecbdd15b4eeaa6 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -13,6 +13,7 @@
#include "net/http/http_vary_data.h"
#include "net/socket/next_proto.h"
#include "net/ssl/ssl_info.h"
+#include "url/gurl.h"
class Pickle;
@@ -93,6 +94,12 @@ class NET_EXPORT HttpResponseInfo {
// Whether the request use http proxy or server authentication.
bool did_use_http_auth;
+ // True if the request was fetched via a ServiceWorker.
+ bool was_fetched_via_service_worker;
+ // The original URL of the repsponse which was fetched via the ServiceWorker.
+ // This may be empty if the repsponse was created inside the ServiceWorker.
+ GURL original_url_via_service_worker;
+
// Remote address of the socket which fetched this resource.
//
// NOTE: If the response was served from the cache (was_cached is true),

Powered by Google App Engine
This is Rietveld 408576698