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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.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
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h
index 5e6f2f5a8ba27e0a207029ed86323a14d13ab22b..1bf9b86e4aba7bcb3caec3791bac174261f2b0ab 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorker.h
@@ -31,11 +31,13 @@
#ifndef WebServiceWorker_h
#define WebServiceWorker_h
+#include "public/platform/WebCallbacks.h"
#include "public/platform/WebCommon.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
#include "public/platform/WebVector.h"
+#include "public/platform/modules/serviceworker/WebServiceWorkerError.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerState.h"
namespace blink {
@@ -47,6 +49,11 @@ typedef WebVector<class WebMessagePortChannel*> WebMessagePortChannelArray;
class WebServiceWorker {
public:
+ using WebSetNavigationPreloadCallbacks =
+ WebCallbacks<void, const WebServiceWorkerError&>;
+ using WebGetNavigationPreloadCallbacks =
+ WebCallbacks<const WebString&, const WebServiceWorkerError&>;
+
// The handle interface that retains a reference to the implementation of
// WebServiceWorker in the embedder and is owned by ServiceWorker object in
// Blink. The embedder must keep the service worker representation while
@@ -78,6 +85,9 @@ class WebServiceWorker {
const WebSecurityOrigin&,
WebMessagePortChannelArray*) = 0;
+ virtual void setNavigationPreload(const WebString& /* value */,
+ WebSetNavigationPreloadCallbacks*) {}
+ virtual void getNavigationPreload(WebGetNavigationPreloadCallbacks*) {}
virtual void terminate() {}
};
}
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698