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

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

Issue 2460223003: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: fix windows compile error Created 4 years, 1 month 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 e6985500f85171c1b8df3c7e25ea1d9f507fd552..59b41da850e2fa3800df386c9f6ec1a8585e8e37 100644
--- a/content/browser/service_worker/service_worker_fetch_dispatcher.h
+++ b/content/browser/service_worker/service_worker_fetch_dispatcher.h
@@ -22,6 +22,7 @@ class URLRequest;
namespace content {
+class ServiceWorkerProviderHost;
class ServiceWorkerVersion;
// A helper class to dispatch fetch event to a service worker.
@@ -44,7 +45,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,
+ base::WeakPtr<ServiceWorkerProviderHost> provider_host);
// 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