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 }; |