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 |