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

Unified Diff: content/common/service_worker/service_worker_types.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: rebase 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/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 43e8ebbaca3e5afb945291c87934f2d303b7a5af..e6b69fa4e9006909f9115739e0623cca0062b97c 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -62,12 +62,14 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
// Represents a response to a fetch.
struct CONTENT_EXPORT ServiceWorkerResponse {
ServiceWorkerResponse();
- ServiceWorkerResponse(int status_code,
+ ServiceWorkerResponse(const GURL& url,
+ int status_code,
const std::string& status_text,
const std::map<std::string, std::string>& headers,
const std::string& blob_uuid);
~ServiceWorkerResponse();
+ GURL url;
int status_code;
std::string status_text;
std::map<std::string, std::string> headers;

Powered by Google App Engine
This is Rietveld 408576698