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

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

Issue 2413063003: service worker: Add promise boilerplate for NavigationPreload enable/disable (Closed)
Patch Set: more boilerplate 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 ac80115cab0ef09fc8eb01c620f009134a9ab630..c7a393d75567734d53cdfbaa7c1dde2c69a3ff76 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -26,6 +26,10 @@ class WebServiceWorkerRegistration {
WebCallbacks<void, const WebServiceWorkerError&>;
using WebServiceWorkerUnregistrationCallbacks =
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
@@ -46,6 +50,9 @@ class WebServiceWorkerRegistration {
WebServiceWorkerUpdateCallbacks*) {}
virtual void unregister(WebServiceWorkerProvider*,
WebServiceWorkerUnregistrationCallbacks*) {}
+
+ virtual void enableNavigationPreload(WebEnableNavigationPreloadCallbacks*) {}
+ virtual void disableNavigationPreload(WebEnableNavigationPreloadCallbacks*) {}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698