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

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

Issue 782463002: Expose navigator.connect client side API in blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: also expose to workers Created 6 years 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/navigatorconnect/WorkerNavigatorConnect.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorconnect/WorkerNavigatorConnect.idl
diff --git a/Source/modules/netinfo/WorkerNavigatorNetworkInformation.idl b/Source/modules/navigatorconnect/WorkerNavigatorConnect.idl
similarity index 54%
copy from Source/modules/netinfo/WorkerNavigatorNetworkInformation.idl
copy to Source/modules/navigatorconnect/WorkerNavigatorConnect.idl
index a2126fa44a6f5a9dc90dbfb21223558008f9ae91..b2ccd3e25bcd76ee91dc1f213b0434324caf3fc5 100644
--- a/Source/modules/netinfo/WorkerNavigatorNetworkInformation.idl
+++ b/Source/modules/navigatorconnect/WorkerNavigatorConnect.idl
@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// https://mkruisselbrink.github.io/navigator-connect/#idl-def-NavigatorConnect
[
- RuntimeEnabled=NetworkInformation,
- Exposed=Worker
+ RuntimeEnabled=NavigatorConnect,
] partial interface WorkerNavigator {
- [CallWith=ExecutionContext] readonly attribute NetworkInformation connection;
+ [CallWith=ScriptState] Promise connect(USVString url);
};
« no previous file with comments | « Source/modules/navigatorconnect/WorkerNavigatorConnect.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698