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

Unified Diff: content/child/push_messaging/push_provider.h

Issue 1134733006: Push API: use (un)subscription instead of (un)registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated patch set 2 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/push_messaging/push_provider.h
diff --git a/content/child/push_messaging/push_provider.h b/content/child/push_messaging/push_provider.h
index 47442ae0230820edd0ba183b93ac7531a3347b8e..6ffdf5d957d88d77951af7818cf3745ca936eb53 100644
--- a/content/child/push_messaging/push_provider.h
+++ b/content/child/push_messaging/push_provider.h
@@ -63,12 +63,12 @@ class PushProvider : public blink::WebPushProvider,
PushDispatcher* push_dispatcher);
// IPC message handlers.
- void OnRegisterFromWorkerSuccess(int request_id,
+ void OnSubscribeFromWorkerSuccess(int request_id,
const GURL& endpoint,
Peter Beverloo 2015/05/18 12:44:37 nit: indentation +1
Pranay 2015/05/19 04:40:39 Done.
- const std::string& registration_id);
- void OnRegisterFromWorkerError(int request_id, PushRegistrationStatus status);
- void OnUnregisterSuccess(int request_id, bool did_unregister);
- void OnUnregisterError(int request_id,
+ const std::string& subscription_id);
+ void OnSubscribeFromWorkerError(int request_id, PushRegistrationStatus status);
+ void OnUnsubscribeSuccess(int request_id, bool did_unsubscribe);
+ void OnUnsubscribeError(int request_id,
blink::WebPushError::ErrorType error_type,
Peter Beverloo 2015/05/18 12:44:37 nit: indentation +1
Pranay 2015/05/19 04:40:39 Done.
const std::string& error_message);
void OnGetRegistrationSuccess(int request_id,

Powered by Google App Engine
This is Rietveld 408576698