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

Unified Diff: modules/push_messaging/PushSubscription.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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 | « modules/push_messaging/PushMessageData.idl ('k') | modules/quota/NavigatorStorageQuota.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/push_messaging/PushSubscription.idl
diff --git a/modules/push_messaging/PushSubscription.idl b/modules/push_messaging/PushSubscription.idl
index 0575d1f5af6befeb84b74f05688ed0872c6e3bbf..469bd8c0fa5f35eba73065c5738edc637f024cf0 100644
--- a/modules/push_messaging/PushSubscription.idl
+++ b/modules/push_messaging/PushSubscription.idl
@@ -4,13 +4,20 @@
// https://w3c.github.io/push-api/#pushsubscription-interface
+enum PushEncryptionKeyName {
+ "p256dh",
+ "auth"
+};
+
[
Exposed=(Window,ServiceWorker),
GarbageCollected,
RuntimeEnabled=PushMessaging,
] interface PushSubscription {
readonly attribute USVString endpoint;
+
+ [RuntimeEnabled=PushMessagingData] ArrayBuffer? getKey(PushEncryptionKeyName name);
[CallWith=ScriptState] Promise<boolean> unsubscribe();
- serializer = { attribute };
+ serializer;
};
« no previous file with comments | « modules/push_messaging/PushMessageData.idl ('k') | modules/quota/NavigatorStorageQuota.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698