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

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

Issue 2389693002: service worker: Add NavigationPreload runtime flag and skeleton interface (Closed)
Patch Set: 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..91bc4fd327fd53a98d58a3ca5f44c774766e040d 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.idl
@@ -49,6 +49,9 @@ enum ServiceWorkerState {
readonly attribute ServiceWorkerState state;
attribute EventHandler onstatechange;
+
+ [CallWith=ScriptState,RuntimeEnabled=ServiceWorkerNavigationPreload] Promise<Dictionary> getNavigationPreload();
horo 2016/10/03 14:05:16 ditto
+ [CallWith=ScriptState,RuntimeEnabled=ServiceWorkerNavigationPreload] Promise<void> setNavigationPreload(NavigationPreloadOptions options);
};
ServiceWorker implements AbstractWorker;

Powered by Google App Engine
This is Rietveld 408576698