Index: public/platform/WebServiceWorkerProvider.h |
diff --git a/public/platform/WebServiceWorkerProvider.h b/public/platform/WebServiceWorkerProvider.h |
index ce600c50206a661cecf36bf815fc2b19843cea0a..ca60a58314672b1972dd2b33fd46b46b5b74118d 100644 |
--- a/public/platform/WebServiceWorkerProvider.h |
+++ b/public/platform/WebServiceWorkerProvider.h |
@@ -32,13 +32,14 @@ |
#define WebServiceWorkerProvider_h |
#include "public/platform/WebCallbacks.h" |
+#include "public/platform/WebServiceWorkerRegistration.h" |
+#include "public/platform/WebVector.h" |
namespace blink { |
class WebURL; |
class WebServiceWorker; |
class WebServiceWorkerProviderClient; |
-class WebServiceWorkerRegistration; |
struct WebServiceWorkerError; |
// Created on the main thread, and may be passed to another script context |
@@ -55,6 +56,7 @@ public: |
typedef WebCallbacks<WebServiceWorkerRegistration, WebServiceWorkerError> WebServiceWorkerRegistrationCallbacks; |
typedef WebCallbacks<bool, WebServiceWorkerError> WebServiceWorkerUnregistrationCallbacks; |
typedef WebCallbacks<WebServiceWorkerRegistration, WebServiceWorkerError> WebServiceWorkerGetRegistrationCallbacks; |
+ typedef WebCallbacks<WebVector<WebServiceWorkerRegistration*>, WebServiceWorkerError> WebServiceWorkerGetRegistrationsCallbacks; |
typedef WebCallbacks<WebServiceWorkerRegistration, void> WebServiceWorkerGetRegistrationForReadyCallbacks; |
virtual void registerServiceWorker(const WebURL& pattern, const WebURL& scriptUrl, WebServiceWorkerRegistrationCallbacks*) { } |
@@ -63,6 +65,7 @@ public: |
virtual void unregisterServiceWorker(const WebURL& pattern, WebServiceWorkerUnregistrationCallbacks*) { } |
virtual void getRegistration(const WebURL& documentURL, WebServiceWorkerGetRegistrationCallbacks*) { } |
+ virtual void getRegistrations(WebServiceWorkerGetRegistrationsCallbacks*) { } |
virtual void getRegistrationForReady(WebServiceWorkerGetRegistrationForReadyCallbacks*) { } |
virtual ~WebServiceWorkerProvider() { } |