Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / push_messaging / WebPushSubscription.h
blob699b929030c30baf5d5c66cb20943e14c40185b7
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebPushSubscription_h
6 #define WebPushSubscription_h
8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebURL.h"
10 #include "public/platform/WebVector.h"
12 namespace blink {
14 struct WebPushSubscription {
15 // The |endpoint| and |curve25519dh| must both be unique for each subscription.
16 WebPushSubscription(const WebURL& endpoint, const WebVector<unsigned char>& curve25519dh)
17 : endpoint(endpoint)
18 , curve25519dh(curve25519dh)
22 WebURL endpoint;
23 WebVector<unsigned char> curve25519dh;
26 } // namespace blink
28 #endif // WebPushSubscription_h