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

Unified Diff: content/browser/service_worker/service_worker_controllee_request_handler.cc

Issue 2410333006: Implement ServiceWorkerFetchDispatcher::MaybeStartNavigationPreload(). (Closed)
Patch Set: add comment in service_worker_url_request_job.h Created 4 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 e12c224c015060c76f997b96b39362959f18ca57..3c90ed6932d38ee796e8900c439687a74a2b7ebd 100644
--- a/content/browser/service_worker/service_worker_controllee_request_handler.cc
+++ b/content/browser/service_worker/service_worker_controllee_request_handler.cc
@@ -57,7 +57,8 @@ ServiceWorkerControlleeRequestHandler::ServiceWorkerControlleeRequestHandler(
ResourceType resource_type,
RequestContextType request_context_type,
RequestContextFrameType frame_type,
- scoped_refptr<ResourceRequestBodyImpl> body)
+ scoped_refptr<ResourceRequestBodyImpl> body,
+ const MojoURLLoaderFactoryGetter& url_loader_factory_getter)
: ServiceWorkerRequestHandler(context,
provider_host,
blob_storage_context,
@@ -73,6 +74,7 @@ ServiceWorkerControlleeRequestHandler::ServiceWorkerControlleeRequestHandler(
body_(body),
force_update_started_(false),
use_network_(false),
+ url_loader_factory_getter_(url_loader_factory_getter),
weak_factory_(this) {}
ServiceWorkerControlleeRequestHandler::
@@ -126,7 +128,7 @@ net::URLRequestJob* ServiceWorkerControlleeRequestHandler::MaybeCreateJob(
blob_storage_context_, resource_context, request_mode_,
credentials_mode_, redirect_mode_, resource_type_,
request_context_type_, frame_type_, body_,
- ServiceWorkerFetchType::FETCH, this));
+ ServiceWorkerFetchType::FETCH, url_loader_factory_getter_, this));
job_ = job->GetWeakPtr();
resource_context_ = resource_context;

Powered by Google App Engine
This is Rietveld 408576698