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

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

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
« no previous file with comments | « Source/modules/push_messaging/PushSubscription.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushSubscription.idl
diff --git a/Source/modules/push_messaging/PushSubscription.idl b/Source/modules/push_messaging/PushSubscription.idl
index 26c41e3948b7809f3a5ca790327f9c6407bc70a9..57946a67db5d0f834f2e7d5f0d1907aa5c0055b3 100644
--- a/Source/modules/push_messaging/PushSubscription.idl
+++ b/Source/modules/push_messaging/PushSubscription.idl
@@ -4,14 +4,21 @@
// https://w3c.github.io/push-api/#pushsubscription-interface
+enum PushEncryptionKeyName {
+ "curve25519dh"
+};
+
[
Exposed=(Window,ServiceWorker),
GarbageCollected,
RuntimeEnabled=PushMessaging,
] interface PushSubscription {
readonly attribute USVString endpoint;
+
+ // TODO(peter): Remove this once the embedder updates to getKey().
[RuntimeEnabled=PushMessagingData] readonly attribute ArrayBuffer curve25519dh;
+ [RuntimeEnabled=PushMessagingData] ArrayBuffer? getKey(PushEncryptionKeyName name);
[CallWith=ScriptState] Promise<boolean> unsubscribe();
serializer = { attribute };
« no previous file with comments | « Source/modules/push_messaging/PushSubscription.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698