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

Unified Diff: public/platform/modules/background_sync/WebSyncProvider.h

Issue 1096503002: [Background Sync] Converting Blink code to the MVP API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Unregister method requires the sync registration tag Created 5 years, 8 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: 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 111596d7d34123b92a70a6197311db03d999357f..82e94092566e5f7bdf1fddbbbce6546ee127cfdc 100644
--- a/public/platform/modules/background_sync/WebSyncProvider.h
+++ b/public/platform/modules/background_sync/WebSyncProvider.h
@@ -9,12 +9,12 @@
#include "public/platform/WebCommon.h"
#include "public/platform/WebString.h"
#include "public/platform/WebVector.h"
+#include "public/platform/modules/background_sync/WebSyncRegistration.h"
namespace blink {
class WebServiceWorkerRegistration;
struct WebSyncError;
-struct WebSyncRegistration;
using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>;
using WebSyncUnregistrationCallbacks = WebCallbacks<bool, WebSyncError>;
@@ -30,15 +30,15 @@ public:
// Takes ownership of the WebSyncUnregistrationCallbacks.
// Does not take ownership of the WebServiceWorkerRegistration.
- virtual void unregisterBackgroundSync(const WebString&, WebServiceWorkerRegistration*, WebSyncUnregistrationCallbacks*) = 0;
+ virtual void unregisterBackgroundSync(blink::WebSyncRegistration::Periodicity, int64_t, 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;
+ virtual void getRegistration(blink::WebSyncRegistration::Periodicity, const WebString&, WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) = 0;
// Takes ownership of the WebSyncGetRegistrationsCallbacks.
// Does not take ownership of the WebServiceWorkerRegistration.
- virtual void getRegistrations(WebServiceWorkerRegistration*, WebSyncGetRegistrationsCallbacks*) = 0;
+ virtual void getRegistrations(blink::WebSyncRegistration::Periodicity, WebServiceWorkerRegistration*, WebSyncGetRegistrationsCallbacks*) = 0;
};
} // namespace blink
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/platform/modules/background_sync/WebSyncRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698