Index: modules/push_messaging/PushManager.idl |
diff --git a/modules/push_messaging/PushManager.idl b/modules/push_messaging/PushManager.idl |
index 4346304f2dd9b9587ee20ff38a6040123f267944..ddb613921d1989001a83a466f87a3a389e568f74 100644 |
--- a/modules/push_messaging/PushManager.idl |
+++ b/modules/push_messaging/PushManager.idl |
@@ -2,10 +2,14 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+// https://w3c.github.io/push-api/#pushmanager-interface |
+ |
[ |
- NoInterfaceObject, |
- RuntimeEnabled=PushMessaging, |
+ Exposed=(Window,ServiceWorker), |
GarbageCollected, |
+ RuntimeEnabled=PushMessaging, |
] interface PushManager { |
- [CallWith=ScriptState, ImplementedAs=registerPushMessaging] Promise register(DOMString senderId); |
+ [CallWith=ScriptState] Promise<PushSubscription> subscribe(optional PushSubscriptionOptions options); |
+ [CallWith=ScriptState] Promise<PushSubscription?> getSubscription(); |
+ [CallWith=ScriptState] Promise permissionState(optional PushSubscriptionOptions options); |
}; |