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

Unified Diff: content/common/background_sync_service.mojom

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/common/background_sync_service.mojom
diff --git a/content/common/background_sync_service.mojom b/content/common/background_sync_service.mojom
index 8b2f8b4ee642f78f570e0e89f5a3d49f30fa3919..b4c9b935c66bb80631f2855b64f9bb24dcea64f2 100644
--- a/content/common/background_sync_service.mojom
+++ b/content/common/background_sync_service.mojom
@@ -20,7 +20,10 @@ enum BackgroundSyncError {
enum BackgroundSyncState {
PENDING,
FIRING,
- FAILED
+ UNREGISTERED_WHILE_FIRING,
+ FAILED,
+ SUCCESS,
+ UNREGISTERED
};
interface BackgroundSyncService {
@@ -41,6 +44,7 @@ interface BackgroundSyncService {
DuplicateRegistrationHandle(int32 handle_id)
=> (BackgroundSyncError err, SyncRegistration? registration);
ReleaseRegistration(int32 handle_id);
+ NotifyWhenDone(int32 handle_id) => (BackgroundSyncError err, BackgroundSyncState final_status);
};
interface BackgroundSyncServiceClient {

Powered by Google App Engine
This is Rietveld 408576698