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

Unified Diff: third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years, 1 month 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: third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h
diff --git a/third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h b/third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h
index 7d0c53699da3280e6f919127ea0de4f2c4cddf76..8f70597b807596ca53f123b41ecd68d037eb42a0 100644
--- a/third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h
+++ b/third_party/WebKit/public/platform/modules/push_messaging/WebPushClient.h
@@ -8,6 +8,7 @@
#include "public/platform/WebCallbacks.h"
#include "public/platform/modules/push_messaging/WebPushError.h"
#include "public/platform/modules/push_messaging/WebPushProvider.h"
+#include <memory>
namespace blink {
@@ -23,7 +24,7 @@ class WebPushClient {
// Ownership of the callbacks is transferred to the client.
virtual void subscribe(WebServiceWorkerRegistration*,
const WebPushSubscriptionOptions&,
- WebPushSubscriptionCallbacks*) = 0;
+ std::unique_ptr<WebPushSubscriptionCallbacks>) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698