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

Unified Diff: content/common/background_sync_service.mojom

Issue 1131943005: [Background Sync] Add proper error status to API calls and callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split RegisterCallback into two methods Created 5 years, 7 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
« no previous file with comments | « content/child/background_sync/background_sync_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/background_sync_service.mojom
diff --git a/content/common/background_sync_service.mojom b/content/common/background_sync_service.mojom
index ec4996dda3b5afd79a2c2df68068ddad8876c3a0..bbacc54c262f18777f5ce833a653c2a8404d6895 100644
--- a/content/common/background_sync_service.mojom
+++ b/content/common/background_sync_service.mojom
@@ -6,17 +6,25 @@ module content;
import "content/public/common/background_sync.mojom";
+enum BackgroundSyncError {
+ NONE,
+ STORAGE,
+ NOT_FOUND,
+ NO_SERVICE_WORKER,
+ MAX=NO_SERVICE_WORKER
+};
+
interface BackgroundSyncService {
Register(SyncRegistration options, int64 service_worker_registration_id)
- => (SyncRegistration options);
+ => (BackgroundSyncError err, SyncRegistration options);
GetRegistration(BackgroundSyncPeriodicity periodicity, string tag,
int64 service_worker_registration_id)
- => (SyncRegistration? registration);
+ => (BackgroundSyncError err, SyncRegistration? registration);
GetRegistrations(BackgroundSyncPeriodicity periodicity,
int64 service_worker_registration_id)
- => (array<SyncRegistration> registrations);
+ => (BackgroundSyncError err, array<SyncRegistration> registrations);
Unregister(BackgroundSyncPeriodicity periodicity, int64 id, string tag,
- int64 service_worker_registration_id) => (bool success);
+ int64 service_worker_registration_id) => (BackgroundSyncError err);
};
interface BackgoundSyncServiceClient {
« no previous file with comments | « content/child/background_sync/background_sync_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698