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

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

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.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
index 34c926f1e8219f03faba6e375cf43e123c3a645e..51dae1303c9b5897e26e6a68191b38368ef37030 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp
@@ -36,6 +36,7 @@
#include "core/events/Event.h"
#include "core/inspector/ConsoleMessage.h"
#include "modules/EventTargetModules.h"
+#include "modules/serviceworkers/NavigationPreloadOptions.h"
#include "modules/serviceworkers/ServiceWorkerContainerClient.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebSecurityOrigin.h"
@@ -122,6 +123,18 @@ String ServiceWorker::state() const {
}
}
+ScriptPromise ServiceWorker::getNavigationPreload(ScriptState* scriptState) {
+ NOTIMPLEMENTED();
+ return ScriptPromise();
+}
+
+ScriptPromise ServiceWorker::setNavigationPreload(
+ ScriptState* scriptState,
+ const NavigationPreloadOptions& options) {
+ NOTIMPLEMENTED();
+ return ScriptPromise();
+}
+
ServiceWorker* ServiceWorker::from(
ExecutionContext* executionContext,
std::unique_ptr<WebServiceWorker::Handle> handle) {

Powered by Google App Engine
This is Rietveld 408576698