Unreviewed build fix for chromium.
authorukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Jan 2010 02:57:53 +0000 (02:57 +0000)
committerukai@chromium.org <ukai@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Jan 2010 02:57:53 +0000 (02:57 +0000)
Add "bool V8WorkerContext::WebSocketEnabled()"

* bindings/v8/custom/V8WorkerContextCustom.cpp:
(WebCore::V8WorkerContext::WebSocketEnabled):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@52894 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp

index 16324be..d725eaf 100644 (file)
@@ -1,5 +1,13 @@
 2010-01-06  Fumitoshi Ukai  <ukai@chromium.org>
 
+        Unreviewed build fix for chromium.
+        Add "bool V8WorkerContext::WebSocketEnabled()"
+
+        * bindings/v8/custom/V8WorkerContextCustom.cpp:
+        (WebCore::V8WorkerContext::WebSocketEnabled):
+
+2010-01-06  Fumitoshi Ukai  <ukai@chromium.org>
+
         Unreviewed build fix.
         remove wrong assertion
 
index d257fe4..ed54a1d 100644 (file)
@@ -55,6 +55,13 @@ bool V8WorkerContext::WebkitNotificationsEnabled()
 }
 #endif
 
+#if ENABLE(WEB_SOCKETS)
+bool V8WorkerContext::WebSocketEnabled()
+{
+    return WebSocket::isAvailable();
+}
+#endif
+
 v8::Handle<v8::Value> SetTimeoutOrInterval(const v8::Arguments& args, bool singleShot)
 {
     WorkerContext* workerContext = V8DOMWrapper::convertDOMWrapperToNative<WorkerContext>(args.Holder());