Index: public/platform/WebPushClient.h |
diff --git a/public/platform/WebPushClient.h b/public/platform/WebPushClient.h |
index f728bd7dc512637147d48f2a21b8206e92113f2e..1f9a6df598ea5dec58bc87f5b7425e290bc25ef9 100644 |
--- a/public/platform/WebPushClient.h |
+++ b/public/platform/WebPushClient.h |
@@ -11,9 +11,11 @@ |
namespace blink { |
class WebServiceWorkerRegistration; |
-struct WebPushRegistration; |
+struct WebPushSubscription; |
-typedef WebCallbacks<WebPushRegistration, WebPushError> WebPushRegistrationCallbacks; |
+using WebPushSubscriptionCallbacks = WebCallbacks<WebPushSubscription, WebPushError>; |
+// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883. |
+using WebPushRegistrationCallbacks = WebPushSubscriptionCallbacks; |
class WebPushClient { |
public: |
@@ -21,7 +23,7 @@ public: |
// Ownership of the WebServiceWorkerRegistration is not transferred. |
// Ownership of the callbacks is transferred to the client. |
- virtual void registerPushMessaging(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { } |
+ virtual void registerPushMessaging(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); } |
}; |
} // namespace blink |