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

Unified Diff: content/browser/service_worker/service_worker_controllee_request_handler.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
Index: content/browser/service_worker/service_worker_controllee_request_handler.cc
diff --git a/content/browser/service_worker/service_worker_controllee_request_handler.cc b/content/browser/service_worker/service_worker_controllee_request_handler.cc
index 50e8145cb61ee1ad8d1efa6c85e41636187e7b65..83ab7c3eb5d2f52ad63228e9fa352e7ff958662e 100644
--- a/content/browser/service_worker/service_worker_controllee_request_handler.cc
+++ b/content/browser/service_worker/service_worker_controllee_request_handler.cc
@@ -26,6 +26,8 @@ ServiceWorkerControlleeRequestHandler::ServiceWorkerControlleeRequestHandler(
FetchRequestMode request_mode,
FetchCredentialsMode credentials_mode,
ResourceType resource_type,
+ RequestContextType request_context_type,
+ RequestContextFrameType frame_type,
scoped_refptr<ResourceRequestBody> body)
: ServiceWorkerRequestHandler(context,
provider_host,
@@ -35,6 +37,8 @@ ServiceWorkerControlleeRequestHandler::ServiceWorkerControlleeRequestHandler(
ServiceWorkerUtils::IsMainResourceType(resource_type)),
request_mode_(request_mode),
credentials_mode_(credentials_mode),
+ request_context_type_(request_context_type),
+ frame_type_(frame_type),
body_(body),
weak_factory_(this) {
}
@@ -86,6 +90,8 @@ net::URLRequestJob* ServiceWorkerControlleeRequestHandler::MaybeCreateJob(
blob_storage_context_,
request_mode_,
credentials_mode_,
+ request_context_type_,
+ frame_type_,
body_);
if (is_main_resource_load_)
PrepareForMainResource(request->url());

Powered by Google App Engine
This is Rietveld 408576698