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

Unified Diff: webkit/glue/websocketstreamhandle_impl.h

Issue 243108: Enable WebSocket in test_shell (Closed)
Patch Set: add +net/socket_stream in webkit/DEPS Created 11 years, 2 months 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 | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/glue/websocketstreamhandle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/websocketstreamhandle_impl.h
diff --git a/webkit/glue/websocketstreamhandle_impl.h b/webkit/glue/websocketstreamhandle_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..657884e9f8c9f8db11681858e3ddb6e588628865
--- /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_
« no previous file with comments | « webkit/glue/websocketstreamhandle_delegate.h ('k') | webkit/glue/websocketstreamhandle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698