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

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

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

Powered by Google App Engine
This is Rietveld 408576698