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

Unified Diff: public/platform/WebPushProvider.h

Issue 841333002: Push API: rename registration to subscription. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use https in the spec link. Created 5 years, 11 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 | « public/platform/WebPushClient.h ('k') | public/platform/WebPushRegistration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPushProvider.h
diff --git a/public/platform/WebPushProvider.h b/public/platform/WebPushProvider.h
index af5d353ca5dd451d46d832c0eb8b02074d23df42..a525bee1204c4368ae9973852d4126626ffcc611 100644
--- a/public/platform/WebPushProvider.h
+++ b/public/platform/WebPushProvider.h
@@ -13,11 +13,15 @@ namespace blink {
class WebServiceWorkerRegistration;
struct WebPushError;
-struct WebPushRegistration;
-
-typedef WebCallbacks<WebPushRegistration, WebPushError> WebPushRegistrationCallbacks;
-typedef WebCallbacks<WebPushPermissionStatus, void> WebPushPermissionStatusCallbacks;
-typedef WebCallbacks<bool, WebPushError> WebPushUnregisterCallbacks;
+struct WebPushSubscription;
+
+using WebPushSubscriptionCallbacks = WebCallbacks<WebPushSubscription, WebPushError>;
+// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883.
+using WebPushRegistrationCallbacks = WebPushSubscriptionCallbacks;
+using WebPushPermissionStatusCallbacks = WebCallbacks<WebPushPermissionStatus, void>;
+using WebPushUnsubscribeCallbacks = WebCallbacks<bool, WebPushError>;
+// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883.
+using WebPushUnregisterCallbacks = WebPushUnsubscribeCallbacks;
class WebPushProvider {
public:
« no previous file with comments | « public/platform/WebPushClient.h ('k') | public/platform/WebPushRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698