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

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: 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: 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 86324baf8d320fe65ee1b4c820942d1f1bcce1f5..11c9470e87dd7abc462586e2a8543ff2eab3293f 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -60,12 +60,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