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

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

Issue 841333002: Push API: rename registration to subscription. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use https in the spec link. Created 5 years, 11 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/PushManager.cpp ('k') | Source/modules/push_messaging/PushRegistration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushManager.idl
diff --git a/Source/modules/push_messaging/PushManager.idl b/Source/modules/push_messaging/PushManager.idl
index cbf2f8fe358f0cc1d7c4080b00d3548740171157..7bd91452b9ad1a1e766449b637fa00105e879a96 100644
--- a/Source/modules/push_messaging/PushManager.idl
+++ b/Source/modules/push_messaging/PushManager.idl
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// http://w3c.github.io/push-api/#pushregistrationmanager-interface
+// https://w3c.github.io/push-api/#pushmanager-interface
[
GarbageCollected,
RuntimeEnabled=PushMessaging,
] interface PushManager {
- [CallWith=ScriptState, ImplementedAs=registerPushMessaging] Promise register();
- [CallWith=ScriptState] Promise<PushRegistration?> getRegistration();
+ [CallWith=ScriptState] Promise<PushSubscription> subscribe();
+ [CallWith=ScriptState] Promise<PushSubscription?> getSubscription();
[CallWith=ScriptState] Promise hasPermission();
};
« no previous file with comments | « Source/modules/push_messaging/PushManager.cpp ('k') | Source/modules/push_messaging/PushRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698