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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h

Issue 2433273003: service worker: Plumb NavigationPreloadManager.enable/disable to browser-side (Closed)
Patch Set: comments 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: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
index c7a393d75567734d53cdfbaa7c1dde2c69a3ff76..fe5ba1b332179e13ce47b84d58dfcf2780685a04 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -28,8 +28,6 @@ class WebServiceWorkerRegistration {
WebCallbacks<bool, const WebServiceWorkerError&>;
using WebEnableNavigationPreloadCallbacks =
WebCallbacks<void, const WebServiceWorkerError&>;
- using WebDisableNavigationPreloadCallbacks =
- WebCallbacks<void, const WebServiceWorkerError&>;
// The handle interface that retains a reference to the implementation of
// WebServiceWorkerRegistration in the embedder and is owned by
@@ -51,8 +49,10 @@ class WebServiceWorkerRegistration {
virtual void unregister(WebServiceWorkerProvider*,
WebServiceWorkerUnregistrationCallbacks*) {}
- virtual void enableNavigationPreload(WebEnableNavigationPreloadCallbacks*) {}
- virtual void disableNavigationPreload(WebEnableNavigationPreloadCallbacks*) {}
+ virtual void enableNavigationPreload(
+ bool enable,
+ WebServiceWorkerProvider*,
+ std::unique_ptr<WebEnableNavigationPreloadCallbacks>) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/NavigationPreloadManager.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698