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

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

Issue 1309723004: Change PushSubscription.curve25519dh to PushSubscription.getKey() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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.cpp
diff --git a/Source/modules/push_messaging/PushSubscription.cpp b/Source/modules/push_messaging/PushSubscription.cpp
index bbe326a8722e291a3379b0ff8bf09a0e12e94815..a1704fbeaaa286459c401e35d8e1fd5f100ace25 100644
--- a/Source/modules/push_messaging/PushSubscription.cpp
+++ b/Source/modules/push_messaging/PushSubscription.cpp
@@ -51,6 +51,14 @@ PassRefPtr<DOMArrayBuffer> PushSubscription::curve25519dh() const
return m_curve25519dh;
}
+PassRefPtr<DOMArrayBuffer> PushSubscription::getKey(const AtomicString& name) const
+{
+ if (name == "curve25519dh")
+ return m_curve25519dh;
+
+ return nullptr;
+}
+
ScriptPromise PushSubscription::unsubscribe(ScriptState* scriptState)
{
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
« no previous file with comments | « Source/modules/push_messaging/PushSubscription.h ('k') | Source/modules/push_messaging/PushSubscription.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698