| Index: Source/modules/push_messaging/PushSubscriptionCallbacks.h
|
| diff --git a/Source/modules/push_messaging/PushSubscriptionCallbacks.h b/Source/modules/push_messaging/PushSubscriptionCallbacks.h
|
| index 55d00da7edd09fbd8fae569d7a10d8cb13e0cb17..c9244875b16d48ab822bc7a6a498f9223c54b293 100644
|
| --- a/Source/modules/push_messaging/PushSubscriptionCallbacks.h
|
| +++ b/Source/modules/push_messaging/PushSubscriptionCallbacks.h
|
| @@ -6,7 +6,7 @@
|
| #define PushSubscriptionCallbacks_h
|
|
|
| #include "platform/heap/Handle.h"
|
| -#include "public/platform/WebCallbacks.h"
|
| +#include "public/platform/modules/push_messaging/WebPushProvider.h"
|
| #include "wtf/Noncopyable.h"
|
|
|
| namespace blink {
|
| @@ -20,14 +20,14 @@ struct WebPushSubscription;
|
| // that will resolve the underlying promise depending on the result passed to
|
| // the callback. It takes a ServiceWorkerRegistration in its constructor and
|
| // will pass it to the PushSubscription.
|
| -class PushSubscriptionCallbacks final : public WebCallbacks<WebPushSubscription*, WebPushError*> {
|
| +class PushSubscriptionCallbacks final : public WebPushSubscriptionCallbacks {
|
| WTF_MAKE_NONCOPYABLE(PushSubscriptionCallbacks);
|
| public:
|
| PushSubscriptionCallbacks(ScriptPromiseResolver*, ServiceWorkerRegistration*);
|
| ~PushSubscriptionCallbacks() override;
|
|
|
| - void onSuccess(WebPushSubscription*) override;
|
| - void onError(WebPushError*) override;
|
| + void onSuccess(WebPassOwnPtr<WebPushSubscription>) override;
|
| + void onError(const WebPushError&) override;
|
|
|
| private:
|
| Persistent<ScriptPromiseResolver> m_resolver;
|
|
|