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

Unified Diff: Source/modules/push_messaging/PushSubscription.h

Issue 1237673002: Introduce the PushSubscription.curve25519dh attribute (3/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
Index: Source/modules/push_messaging/PushSubscription.h
diff --git a/Source/modules/push_messaging/PushSubscription.h b/Source/modules/push_messaging/PushSubscription.h
index e5a6305cfdc9dc9c89d8b4aacf7e4e15f4e10a83..d9de3ea76c7eb18de5fde3afbf689678bf875268 100644
--- a/Source/modules/push_messaging/PushSubscription.h
+++ b/Source/modules/push_messaging/PushSubscription.h
@@ -8,8 +8,11 @@
#include "bindings/core/v8/ScriptPromise.h"
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/dom/DOMArrayBuffer.h"
#include "platform/heap/Handle.h"
#include "platform/weborigin/KURL.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefPtr.h"
namespace blink {
@@ -27,6 +30,8 @@ public:
virtual ~PushSubscription();
KURL endpoint() const;
+ PassRefPtr<DOMArrayBuffer> curve25519dh() const;
+
ScriptPromise unsubscribe(ScriptState*);
ScriptValue toJSONForBinding(ScriptState*);
@@ -34,9 +39,11 @@ public:
DECLARE_TRACE();
private:
- PushSubscription(const KURL& endpoint, ServiceWorkerRegistration*);
+ PushSubscription(const WebPushSubscription&, ServiceWorkerRegistration*);
KURL m_endpoint;
+ RefPtr<DOMArrayBuffer> m_curve25519dh;
+
Member<ServiceWorkerRegistration> m_serviceWorkerRegistration;
};
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/modules/push_messaging/PushSubscription.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698