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

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: via -> by 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
« no previous file with comments | « content/renderer/service_worker/embedded_worker_context_client.cc ('k') | net/http/http_response_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..40d707e8a62efb5e5d3ed6fa17441b38af080d8b 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 by a ServiceWorker.
+ bool was_fetched_via_service_worker;
+ // The original URL of the repsponse which was fetched by the ServiceWorker.
+ // This may be empty if the repsponse was created inside the ServiceWorker.
+ GURL original_url_via_service_worker;
michaeln 2014/07/15 23:16:38 These service_worker specific data members probabl
+
// Remote address of the socket which fetched this resource.
//
// NOTE: If the response was served from the cache (was_cached is true),
« no previous file with comments | « content/renderer/service_worker/embedded_worker_context_client.cc ('k') | net/http/http_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698