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

Unified Diff: content/browser/service_worker/service_worker_url_request_job.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_url_request_job.cc
diff --git a/content/browser/service_worker/service_worker_url_request_job.cc b/content/browser/service_worker/service_worker_url_request_job.cc
index 6becc5ae033040ce091b44b072c74dd92b5eecfd..14c82c61ecb9985196b3170a416d0dcbbbc8d82f 100644
--- a/content/browser/service_worker/service_worker_url_request_job.cc
+++ b/content/browser/service_worker/service_worker_url_request_job.cc
@@ -48,6 +48,8 @@ ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
base::WeakPtr<storage::BlobStorageContext> blob_storage_context,
FetchRequestMode request_mode,
FetchCredentialsMode credentials_mode,
+ RequestContextType request_context_type,
+ RequestContextFrameType frame_type,
scoped_refptr<ResourceRequestBody> body)
: net::URLRequestJob(request, network_delegate),
provider_host_(provider_host),
@@ -56,6 +58,8 @@ ServiceWorkerURLRequestJob::ServiceWorkerURLRequestJob(
blob_storage_context_(blob_storage_context),
request_mode_(request_mode),
credentials_mode_(credentials_mode),
+ request_context_type_(request_context_type),
+ frame_type_(frame_type),
fall_back_required_(false),
body_(body),
weak_factory_(this) {
@@ -284,6 +288,8 @@ ServiceWorkerURLRequestJob::CreateFetchRequest() {
scoped_ptr<ServiceWorkerFetchRequest> request(
new ServiceWorkerFetchRequest());
request->mode = request_mode_;
+ request->request_context_type = request_context_type_;
+ request->frame_type = frame_type_;
request->url = request_->url();
request->method = request_->method();
const net::HttpRequestHeaders& headers = request_->extra_request_headers();

Powered by Google App Engine
This is Rietveld 408576698