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

Unified Diff: net/http/http_response_info.cc

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.cc
diff --git a/net/http/http_response_info.cc b/net/http/http_response_info.cc
index be6fa4f8a1fa67ffabee94d2978c024565b9b03b..e4470c8a55e495c6b67efdc88c81ff0001126bec 100644
--- a/net/http/http_response_info.cc
+++ b/net/http/http_response_info.cc
@@ -103,6 +103,7 @@ HttpResponseInfo::HttpResponseInfo()
was_npn_negotiated(false),
was_fetched_via_proxy(false),
did_use_http_auth(false),
+ was_fetched_via_service_worker(false),
connection_info(CONNECTION_INFO_UNKNOWN) {
}
@@ -115,6 +116,8 @@ HttpResponseInfo::HttpResponseInfo(const HttpResponseInfo& rhs)
was_fetched_via_proxy(rhs.was_fetched_via_proxy),
proxy_server(rhs.proxy_server),
did_use_http_auth(rhs.did_use_http_auth),
+ was_fetched_via_service_worker(rhs.was_fetched_via_service_worker),
+ original_url_via_service_worker(rhs.original_url_via_service_worker),
socket_address(rhs.socket_address),
npn_negotiated_protocol(rhs.npn_negotiated_protocol),
connection_info(rhs.connection_info),
@@ -140,6 +143,8 @@ HttpResponseInfo& HttpResponseInfo::operator=(const HttpResponseInfo& rhs) {
was_npn_negotiated = rhs.was_npn_negotiated;
was_fetched_via_proxy = rhs.was_fetched_via_proxy;
did_use_http_auth = rhs.did_use_http_auth;
+ was_fetched_via_service_worker = rhs.was_fetched_via_service_worker;
+ original_url_via_service_worker = rhs.original_url_via_service_worker;
socket_address = rhs.socket_address;
npn_negotiated_protocol = rhs.npn_negotiated_protocol;
connection_info = rhs.connection_info;

Powered by Google App Engine
This is Rietveld 408576698