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

Unified Diff: content/browser/service_worker/service_worker_fetch_dispatcher.h

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_fetch_dispatcher.h
diff --git a/content/browser/service_worker/service_worker_fetch_dispatcher.h b/content/browser/service_worker/service_worker_fetch_dispatcher.h
index 3d32ce39b79c2e463d71e2dd3919263c21bfa80a..c81ccef7632a09800784564d2e74808587a93908 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.h
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.h
@@ -27,11 +27,11 @@ class ServiceWorkerVersion;
// A helper class to dispatch fetch event to a service worker.
class CONTENT_EXPORT ServiceWorkerFetchDispatcher {
public:
- typedef base::Callback<void(ServiceWorkerStatusCode,
- ServiceWorkerFetchEventResult,
- const ServiceWorkerResponse&,
- const scoped_refptr<ServiceWorkerVersion>&)>
- FetchCallback;
+ using FetchCallback =
+ base::Callback<void(ServiceWorkerStatusCode,
+ ServiceWorkerFetchEventResult,
+ const ServiceWorkerResponse&,
+ const scoped_refptr<ServiceWorkerVersion>&)>;
ServiceWorkerFetchDispatcher(
std::unique_ptr<ServiceWorkerFetchRequest> request,
@@ -44,7 +44,9 @@ class CONTENT_EXPORT ServiceWorkerFetchDispatcher {
// If appropriate, starts the navigation preload request and creates
// |preload_handle_|.
- void MaybeStartNavigationPreload(net::URLRequest* original_request);
+ void MaybeStartNavigationPreload(
+ net::URLRequest* original_request,
+ const MojoURLLoaderFactoryGetter& url_loader_factory_getter);
// Dispatches a fetch event to the |version| given in ctor, and fires
// |fetch_callback| (also given in ctor) when finishes. It runs

Powered by Google App Engine
This is Rietveld 408576698