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

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

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.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h
index 2066333d4a62d32fb0733b4cead947f7f8e0b41e..dd1bb3bbf58ffa4e942e45e0ebd02cb0010d07f0 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h
@@ -43,6 +43,7 @@
namespace blink {
+class NavigationPreloadOptions;
class ScriptPromiseResolver;
class MODULES_EXPORT ServiceWorker final : public AbstractWorker,
@@ -70,6 +71,10 @@ class MODULES_EXPORT ServiceWorker final : public AbstractWorker,
String state() const;
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
+ ScriptPromise getNavigationPreload(ScriptState*);
+ ScriptPromise setNavigationPreload(ScriptState*,
+ const NavigationPreloadOptions&);
+
// ScriptWrappable overrides.
bool hasPendingActivity() const final;

Powered by Google App Engine
This is Rietveld 408576698