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

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

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc Created 6 years, 2 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/common/service_worker/service_worker_types.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5e6b4be0b2dc61754629ea1bfcc0ce00c15aa031..f24c7b23d687c1929bf705ddcb54b6748efd2c7d 100644
--- a/content/common/service_worker/service_worker_types.cc
+++ b/content/common/service_worker/service_worker_types.cc
@@ -8,6 +8,8 @@ namespace content {
ServiceWorkerFetchRequest::ServiceWorkerFetchRequest()
: mode(FETCH_REQUEST_MODE_NO_CORS),
+ request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
+ frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
blob_size(0),
credentials_mode(FETCH_CREDENTIALS_MODE_OMIT),
is_reload(false) {
@@ -20,6 +22,8 @@ ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
const GURL& referrer,
bool is_reload)
: mode(FETCH_REQUEST_MODE_NO_CORS),
+ request_context_type(REQUEST_CONTEXT_TYPE_UNSPECIFIED),
+ frame_type(REQUEST_CONTEXT_FRAME_TYPE_NONE),
url(url),
method(method),
headers(headers),
« no previous file with comments | « content/common/service_worker/service_worker_types.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698