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

Unified Diff: content/common/service_worker/service_worker_types.cc

Issue 1108273002: Add Client Attribute to FetchEvent- Chromium Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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.cc
diff --git a/content/common/service_worker/service_worker_types.cc b/content/common/service_worker/service_worker_types.cc
index c6be99d9c7c797eff842c756d0a41fe397fd1e95..e6152b7a7ee3b101f789bea82dfe5ed56afaba69 100644
--- a/content/common/service_worker/service_worker_types.cc
+++ b/content/common/service_worker/service_worker_types.cc
@@ -21,7 +21,8 @@ ServiceWorkerFetchRequest::ServiceWorkerFetchRequest()
frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
blob_size(0),
credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
- is_reload(false) {
+ is_reload(false),
+ client(ServiceWorkerClientInfo()) {
}
ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
@@ -29,7 +30,8 @@ ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
const std::string& method,
const ServiceWorkerHeaderMap& headers,
const Referrer& referrer,
- bool is_reload)
+ bool is_reload,
+ const ServiceWorkerClientInfo& client)
: mode(FETCH_REQUEST_MODE_NO_CORS),
request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
@@ -39,7 +41,8 @@ ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
blob_size(0),
referrer(referrer),
credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
- is_reload(is_reload) {
+ is_reload(is_reload),
+ client(client) {
}
ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {}
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | content/renderer/cache_storage/cache_storage_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698