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

Unified Diff: content/child/background_sync/background_sync_provider.h

Issue 1344843003: [BackgroundSync] Add browser side support for SyncRegistration.done (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ncn_max
Patch Set: Address comments from PS7 Created 5 years, 3 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: content/child/background_sync/background_sync_provider.h
diff --git a/content/child/background_sync/background_sync_provider.h b/content/child/background_sync/background_sync_provider.h
index 2668faa77e8bf39596e54f7b14d5beea47b2a9b5..0dc6d6c3a56d2acdad12b756f4369698ad532373 100644
--- a/content/child/background_sync/background_sync_provider.h
+++ b/content/child/background_sync/background_sync_provider.h
@@ -57,6 +57,9 @@ class BackgroundSyncProvider : public blink::WebSyncProvider {
blink::WebSyncGetPermissionStatusCallbacks* callbacks) override;
// TODO(jkarlin): Rename to releaseRegistrationHandle.
void releaseRegistration(int64_t handle_id) override;
+ void notifyWhenDone(
+ int64_t handle_id,
+ blink::WebSyncNotifyWhenDoneCallbacks* callbacks) override;
void DuplicateRegistrationHandle(
int handle_id,
@@ -84,6 +87,10 @@ class BackgroundSyncProvider : public blink::WebSyncProvider {
scoped_ptr<blink::WebSyncGetPermissionStatusCallbacks> callbacks,
BackgroundSyncError error,
PermissionStatus status);
+ void NotifyWhenDoneCallback(
+ scoped_ptr<blink::WebSyncNotifyWhenDoneCallbacks> callbacks,
+ BackgroundSyncError error,
+ BackgroundSyncState state);
// Helper method that returns an initialized BackgroundSyncServicePtr.
BackgroundSyncServicePtr& GetBackgroundSyncServicePtr();

Powered by Google App Engine
This is Rietveld 408576698