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 |