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

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

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remembering how ASCII works Created 5 years, 10 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
« public/platform/Platform.h ('K') | « public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ef19784be0b00808b36a8db17bd5c4b6f9c8bb29 100644
--- a/public/platform/modules/background_sync/WebSyncProvider.h
+++ b/public/platform/modules/background_sync/WebSyncProvider.h
@@ -7,6 +7,7 @@
#include "public/platform/WebCallbacks.h"
#include "public/platform/WebCommon.h"
+#include "public/platform/WebString.h"
namespace blink {
@@ -16,14 +17,17 @@ struct WebSyncRegistration;
struct WebSyncRegistrationOptions;
using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>;
+using WebSyncUnregistrationCallbacks = WebCallbacks<bool, WebSyncError>;
class WebSyncProvider {
public:
virtual ~WebSyncProvider() { }
// Takes ownership of the WebSyncRegistrationCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
virtual void registerBackgroundSync(const WebSyncRegistrationOptions*, WebSyncRegistrationCallbacks*) = 0;
jkarlin 2015/02/27 20:08:13 Who owns the WebSyncRegistrationOptions?
iclelland 2015/03/02 03:51:12 I believe the caller will retain ownership of that
+
+ // Takes ownership of the WebSyncRegistrationCallbacks.
+ virtual void unregisterBackgroundSync(const WebString&, WebSyncUnregistrationCallbacks*) = 0;
};
} // namespace blink
« public/platform/Platform.h ('K') | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698