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

Unified Diff: public/platform/modules/push_messaging/WebPushSubscription.h

Issue 1222903007: Introduce the PushSubscription.curve25519dh attribute (1/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/platform/exported/WebPushSubscription.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/push_messaging/WebPushSubscription.h
diff --git a/public/platform/modules/push_messaging/WebPushSubscription.h b/public/platform/modules/push_messaging/WebPushSubscription.h
index b582bf4c92b11a7dab59a96c287ae03e2ca29569..677fd24649fd066055ea0bf1835aad71ac3abf41 100644
--- a/public/platform/modules/push_messaging/WebPushSubscription.h
+++ b/public/platform/modules/push_messaging/WebPushSubscription.h
@@ -8,19 +8,26 @@
#include "public/platform/WebCommon.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
+#include "public/platform/WebVector.h"
namespace blink {
struct WebPushSubscription {
- explicit WebPushSubscription(const WebURL& endpoint)
+ // The |endpoint| must be unique for each subscription.
+ WebPushSubscription(const WebURL& endpoint, const WebVector<unsigned char>& curve25519dh)
: endpoint(endpoint)
+ , curve25519dh(curve25519dh)
{
}
- // TODO(peter): Remove this constructor when the embedder switched over to the one above.
- BLINK_PLATFORM_EXPORT WebPushSubscription(const WebString& endpointWithoutSubscriptionId, const WebString& subscriptionId);
+ // TODO(peter): Remove this constructor when the embedder doesn't use it anymore.
+ explicit WebPushSubscription(const WebURL& endpoint)
+ : endpoint(endpoint)
+ {
+ }
WebURL endpoint;
+ WebVector<unsigned char> curve25519dh;
};
} // namespace blink
« no previous file with comments | « Source/platform/exported/WebPushSubscription.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698