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

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

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/OWNERS ('k') | Source/modules/navigatorconnect/WorkerNavigatorConnect.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorconnect/WorkerNavigatorConnect.h
diff --git a/Source/modules/navigatorconnect/WorkerNavigatorConnect.h b/Source/modules/navigatorconnect/WorkerNavigatorConnect.h
new file mode 100644
index 0000000000000000000000000000000000000000..c3436720ae22e21b8770217409770117ce0d9e6c
--- /dev/null
+++ b/Source/modules/navigatorconnect/WorkerNavigatorConnect.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WorkerNavigatorConnect_h
+#define WorkerNavigatorConnect_h
+
+#include "modules/navigatorconnect/NavigatorConnect.h"
+
+namespace blink {
+
+class WorkerNavigator;
+
+class WorkerNavigatorConnect {
+public:
+ static ScriptPromise connect(ScriptState* scriptState, WorkerNavigator&, const String& url)
+ {
+ return NavigatorConnect::connect(scriptState, url);
+ }
+};
+
+} // namespace blink
+
+#endif // WorkerNavigatorConnect_h
« no previous file with comments | « Source/modules/navigatorconnect/OWNERS ('k') | Source/modules/navigatorconnect/WorkerNavigatorConnect.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698