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() {} |
}; |
} |