summaryrefslogtreecommitdiffstats
path: root/webkit/glue/websocketstreamhandle_impl.h
diff options
context:
space:
mode:
authorukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 09:17:26 +0000
committerukai@chromium.org <ukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 09:17:26 +0000
commit4644c7573d32f1064106557c0772c99b964b09c0 (patch)
tree12697bad6a18c25a34e6a49c535cf03ca2cade80 /webkit/glue/websocketstreamhandle_impl.h
parent329f3e727ee9a3ab5fd27bba7f2fc08c4c620d7b (diff)
downloadchromium_src-4644c7573d32f1064106557c0772c99b964b09c0.zip
chromium_src-4644c7573d32f1064106557c0772c99b964b09c0.tar.gz
chromium_src-4644c7573d32f1064106557c0772c99b964b09c0.tar.bz2
Enable WebSocket in test_shell
BUG=12497,24756 TEST=LayoutTests/fast/websockets success Review URL: http://codereview.chromium.org/243108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/websocketstreamhandle_impl.h')
-rw-r--r--webkit/glue/websocketstreamhandle_impl.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/webkit/glue/websocketstreamhandle_impl.h b/webkit/glue/websocketstreamhandle_impl.h
new file mode 100644
index 0000000..657884e
--- /dev/null
+++ b/webkit/glue/websocketstreamhandle_impl.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 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 WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
+#define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_
+
+#include "base/ref_counted.h"
+#include "webkit/api/public/WebSocketStreamHandle.h"
+
+namespace webkit_glue {
+
+class WebSocketStreamHandleImpl : public WebKit::WebSocketStreamHandle {
+ public:
+ WebSocketStreamHandleImpl();
+ virtual ~WebSocketStreamHandleImpl();
+
+ // WebSocketStreamHandle methods:
+ virtual void connect(
+ const WebKit::WebURL& url,
+ WebKit::WebSocketStreamHandleClient* client);
+ virtual bool send(const WebKit::WebData& data);
+ virtual void close();
+
+ private:
+ class Context;
+ scoped_refptr<Context> context_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl);
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_