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; |