Index: third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h |
diff --git a/third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h b/third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h |
index 5b1540071a542bb4db8457d0eaefe6ea2ee7b4d3..3fff7f4e6f66c0fc12ffa84ee9ed5d13e2c47563 100644 |
--- a/third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h |
+++ b/third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h |
@@ -31,23 +31,25 @@ class WebPushProvider { |
// Does not take ownership of the WebServiceWorkerRegistration. |
virtual void subscribe(WebServiceWorkerRegistration*, |
const WebPushSubscriptionOptions&, |
- WebPushSubscriptionCallbacks*) = 0; |
+ std::unique_ptr<WebPushSubscriptionCallbacks>) = 0; |
// Takes ownership of the WebPushSubscriptionCallbacks. |
// Does not take ownership of the WebServiceWorkerRegistration. |
- virtual void getSubscription(WebServiceWorkerRegistration*, |
- WebPushSubscriptionCallbacks*) = 0; |
+ virtual void getSubscription( |
+ WebServiceWorkerRegistration*, |
+ std::unique_ptr<WebPushSubscriptionCallbacks>) = 0; |
// Takes ownership of the WebPushPermissionStatusCallbacks. |
// Does not take ownership of the WebServiceWorkerRegistration. |
- virtual void getPermissionStatus(WebServiceWorkerRegistration*, |
- const WebPushSubscriptionOptions&, |
- WebPushPermissionStatusCallbacks*) = 0; |
+ virtual void getPermissionStatus( |
+ WebServiceWorkerRegistration*, |
+ const WebPushSubscriptionOptions&, |
+ std::unique_ptr<WebPushPermissionStatusCallbacks>) = 0; |
// Takes ownership if the WebPushUnsubscribeCallbacks. |
// Does not take ownership of the WebServiceWorkerRegistration. |
virtual void unsubscribe(WebServiceWorkerRegistration*, |
- WebPushUnsubscribeCallbacks*) = 0; |
+ std::unique_ptr<WebPushUnsubscribeCallbacks>) = 0; |
}; |
} // namespace blink |