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..752f35167a145c0a97712793d0e05c11ace51633 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, |
@@ -81,6 +82,10 @@ class MODULES_EXPORT ServiceWorker final : public AbstractWorker, |
void internalsTerminate(); |
+ ScriptPromise setNavigationPreload(ScriptState*, |
+ const NavigationPreloadOptions&); |
+ ScriptPromise getNavigationPreload(ScriptState*); |
+ |
private: |
static ServiceWorker* getOrCreate(ExecutionContext*, |
std::unique_ptr<WebServiceWorker::Handle>); |