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

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: Make sure ids are 64 bit; fix formatting anomaly 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..11667dc197bc6fbf898eb96323255a9112247597 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, 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

Powered by Google App Engine
This is Rietveld 408576698