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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl

Issue 2388023002: service worker: navigation preload basic setters/getters and flag
Patch Set: idl 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/Source/modules/serviceworkers/ServiceWorker.idl
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl
index 8c556979c8b199f9e2133758c117b31b01a1c433..d93a2a82af50104f8f5cccdb691de1694562e6f5 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl
@@ -44,11 +44,13 @@ enum ServiceWorkerState {
] interface ServiceWorker : EventTarget {
[PostMessage, RaisesException] void postMessage(SerializedScriptValue message, optional sequence<Transferable> transfer);
-
readonly attribute USVString scriptURL;
readonly attribute ServiceWorkerState state;
attribute EventHandler onstatechange;
+
+ [CallWith=ScriptState,RuntimeEnabled=ServiceWorkerNavigationPreload] Promise<void> setNavigationPreload(NavigationPreloadOptions options);
+ [CallWith=ScriptState,RuntimeEnabled=ServiceWorkerNavigationPreload] Promise<Dictionary> getNavigationPreload();
};
ServiceWorker implements AbstractWorker;

Powered by Google App Engine
This is Rietveld 408576698