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

Unified Diff: Source/modules/navigatorconnect/NavigatorConnect.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/modules.gypi ('k') | Source/modules/navigatorconnect/NavigatorConnect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorconnect/NavigatorConnect.h
diff --git a/Source/modules/navigatorconnect/NavigatorConnect.h b/Source/modules/navigatorconnect/NavigatorConnect.h
new file mode 100644
index 0000000000000000000000000000000000000000..25eca8dc6b5a683291acef8f99c648a9e9af0bc5
--- /dev/null
+++ b/Source/modules/navigatorconnect/NavigatorConnect.h
@@ -0,0 +1,28 @@
+// 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 NavigatorConnect_h
+#define NavigatorConnect_h
+
+#include "bindings/core/v8/ScriptPromise.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class Navigator;
+class ScriptState;
+
+class NavigatorConnect {
+public:
+ static ScriptPromise connect(ScriptState* scriptState, Navigator&, const String& url)
+ {
+ return connect(scriptState, url);
+ }
+
+ static ScriptPromise connect(ScriptState*, const String& url);
+};
+
+} // namespace blink
+
+#endif // NavigatorConnect_h
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/navigatorconnect/NavigatorConnect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698