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

Unified Diff: content/renderer/push_messaging/push_messaging_dispatcher.cc

Issue 1210283005: Introduce the PushSubscription.curve25519dh attribute (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: content/renderer/push_messaging/push_messaging_dispatcher.cc
diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc
index 4e53d754976b1e6e04631e23bcfc6f992e79cf6a..ec1f8eb3be2b905dafbbf6e49187588dc39db653 100644
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
@@ -84,13 +84,14 @@ void PushMessagingDispatcher::DoSubscribe(
void PushMessagingDispatcher::OnSubscribeFromDocumentSuccess(
int32_t request_id,
- const GURL& endpoint) {
+ const GURL& endpoint,
+ const std::vector<uint8_t>& curve25519dh) {
blink::WebPushSubscriptionCallbacks* callbacks =
subscription_callbacks_.Lookup(request_id);
DCHECK(callbacks);
scoped_ptr<blink::WebPushSubscription> subscription(
- new blink::WebPushSubscription(endpoint));
+ new blink::WebPushSubscription(endpoint, curve25519dh));
callbacks->onSuccess(subscription.release());
subscription_callbacks_.Remove(request_id);

Powered by Google App Engine
This is Rietveld 408576698