Index: public/platform/modules/background_sync/WebSyncProvider.h |
diff --git a/public/platform/modules/background_sync/WebSyncProvider.h b/public/platform/modules/background_sync/WebSyncProvider.h |
index 841bfd5ad7c733c5ab73f8c63b4be1daa7e25f7b..4ad004cabb5ec586e00ec67025220feab20801c0 100644 |
--- a/public/platform/modules/background_sync/WebSyncProvider.h |
+++ b/public/platform/modules/background_sync/WebSyncProvider.h |
@@ -7,15 +7,18 @@ |
#include "public/platform/WebCallbacks.h" |
#include "public/platform/WebCommon.h" |
+#include "public/platform/WebString.h" |
+#include "public/platform/WebVector.h" |
namespace blink { |
class WebServiceWorkerRegistration; |
struct WebSyncError; |
struct WebSyncRegistration; |
-struct WebSyncRegistrationOptions; |
using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>; |
+using WebSyncUnregistrationCallbacks = WebCallbacks<bool, WebSyncError>; |
+using WebSyncGetRegistrationsCallbacks = WebCallbacks<WebVector<WebSyncRegistration>, WebSyncError>; |
class WebSyncProvider { |
public: |
@@ -23,7 +26,19 @@ public: |
// Takes ownership of the WebSyncRegistrationCallbacks. |
// Does not take ownership of the WebServiceWorkerRegistration. |
- virtual void registerBackgroundSync(const WebSyncRegistrationOptions*, WebSyncRegistrationCallbacks*) = 0; |
+ virtual void registerBackgroundSync(const WebSyncRegistration*, WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) = 0; |
+ |
+ // Takes ownership of the WebSyncUnregistrationCallbacks. |
+ // Does not take ownership of the WebServiceWorkerRegistration. |
+ virtual void unregisterBackgroundSync(const WebString&, WebServiceWorkerRegistration*, WebSyncUnregistrationCallbacks*) = 0; |
+ |
+ // Takes ownership of the WebSyncRegistrationCallbacks. |
+ // Does not take ownership of the WebServiceWorkerRegistration. |
+ virtual void getRegistration(const WebString&, WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) = 0; |
+ |
+ // Takes ownership of the WebSyncGetRegistrationsCallbacks. |
+ // Does not take ownership of the WebServiceWorkerRegistration. |
+ virtual void getRegistrations(WebServiceWorkerRegistration*, WebSyncGetRegistrationsCallbacks*) = 0; |
}; |
} // namespace blink |