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

Unified Diff: content/browser/service_worker/foreign_fetch_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/foreign_fetch_request_handler.cc
diff --git a/content/browser/service_worker/foreign_fetch_request_handler.cc b/content/browser/service_worker/foreign_fetch_request_handler.cc
index f3437802e4c54618a9d751d33adb8f3f6e4e5689..20f830e9005de3637e4e52dcb91487b6cd2a668b 100644
--- a/content/browser/service_worker/foreign_fetch_request_handler.cc
+++ b/content/browser/service_worker/foreign_fetch_request_handler.cc
@@ -12,6 +12,7 @@
#include "content/browser/service_worker/service_worker_response_info.h"
#include "content/browser/service_worker/service_worker_url_request_job.h"
#include "content/common/resource_request_body_impl.h"
+#include "content/common/service_worker/service_worker_types.h"
#include "content/common/service_worker/service_worker_utils.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/resource_request_info.h"
@@ -159,7 +160,8 @@ net::URLRequestJob* ForeignFetchRequestHandler::MaybeCreateJob(
request, network_delegate, std::string(), blob_storage_context_,
resource_context, request_mode_, credentials_mode_, redirect_mode_,
resource_type_, request_context_type_, frame_type_, body_,
- ServiceWorkerFetchType::FOREIGN_FETCH, this);
+ ServiceWorkerFetchType::FOREIGN_FETCH, MojoURLLoaderFactoryGetter(),
+ this);
job_ = job->GetWeakPtr();
resource_context_ = resource_context;

Powered by Google App Engine
This is Rietveld 408576698