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

Unified Diff: Source/modules/navigatorconnect/ServicePortCollection.idl

Issue 1191393003: Update client side navigator.connect API to use ServicePortCollection [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport
Patch Set: improve comments Created 5 years, 6 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
Index: Source/modules/navigatorconnect/ServicePortCollection.idl
diff --git a/Source/modules/navigatorconnect/ServicePortCollection.idl b/Source/modules/navigatorconnect/ServicePortCollection.idl
index 29f0f9d6e4424098ef02b79c36991e9230664c1d..3b7c4f801bfac1f37a53a1dc2a4c19a1ad099df8 100644
--- a/Source/modules/navigatorconnect/ServicePortCollection.idl
+++ b/Source/modules/navigatorconnect/ServicePortCollection.idl
@@ -7,7 +7,7 @@
Exposed=(Window,Worker),
RuntimeEnabled=NavigatorConnect,
] interface ServicePortCollection : EventTarget {
- [CallWith=ScriptState] Promise<ServicePort> connect(DOMString url, optional ServicePortConnectOptions options);
+ [CallWith=ScriptState, RaisesException] Promise<ServicePort> connect(DOMString url, optional ServicePortConnectOptions options);
[CallWith=ScriptState] Promise<ServicePort> match(ServicePortMatchOptions options);
[CallWith=ScriptState] Promise<sequence<ServicePort>> matchAll(optional ServicePortMatchOptions options);
// TODO(mek): The spec has [Exposed=ServiceWorker] for onconnect, this is not currently

Powered by Google App Engine
This is Rietveld 408576698