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

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

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: 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
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 93d4fefbd732db5e6b161b7ded6305d2d9665859..a4b14235419f9f1828a4b869e27fe06710663f9d 100644
--- a/content/child/background_sync/background_sync_provider.h
+++ b/content/child/background_sync/background_sync_provider.h
@@ -52,12 +52,14 @@ class BackgroundSyncProvider : public blink::WebSyncProvider {
// Callback handlers
void RegisterCallback(
scoped_ptr<blink::WebSyncRegistrationCallbacks> callbacks,
+ BackgroundSyncError error,
const SyncRegistrationPtr& options);
void UnregisterCallback(
scoped_ptr<blink::WebSyncUnregistrationCallbacks> callbacks,
- bool success);
+ BackgroundSyncError error);
void GetRegistrationsCallback(
scoped_ptr<blink::WebSyncGetRegistrationsCallbacks> callbacks,
+ BackgroundSyncError error,
const mojo::Array<SyncRegistrationPtr>& registrations);
// Helper method that returns an initialized BackgroundSyncServicePtr.

Powered by Google App Engine
This is Rietveld 408576698