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

Unified Diff: content/common/background_sync_service.mojom

Issue 1171173002: [Background Sync] Use Mojo IPC to fire background sync events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting fixes Created 5 years, 6 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 8321ae9dc7dccaa479d14e538c63500ddedc939d..1ec5fdf9151124e193b0e7a8316b33bc00348cfc 100644
--- a/content/common/background_sync_service.mojom
+++ b/content/common/background_sync_service.mojom
@@ -15,6 +15,13 @@ enum BackgroundSyncError {
MAX=NO_SERVICE_WORKER
};
+enum BackgroundSyncEventStatus {
+ COMPLETED,
+ REJECTED,
+ ABORT,
+ MAX=ABORT
+};
+
interface BackgroundSyncService {
Register(SyncRegistration options, int64 service_worker_registration_id)
=> (BackgroundSyncError err, SyncRegistration options);
@@ -31,7 +38,7 @@ interface BackgroundSyncService {
=> (BackgroundSyncError err, PermissionStatus status);
};
-interface BackgoundSyncServiceClient {
- Sync(SyncRegistration event);
+interface BackgroundSyncServiceClient {
+ Sync(SyncRegistration event, int32 thread_id) => (BackgroundSyncEventStatus status);
};

Powered by Google App Engine
This is Rietveld 408576698