Index: webkit/child/websocket_handle_impl.h |
diff --git a/webkit/child/websocket_handle_impl.h b/webkit/child/websocket_handle_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..20b1aa24e9f54ab9b0bcc973a7ac6bca59f0da56 |
--- /dev/null |
+++ b/webkit/child/websocket_handle_impl.h |
@@ -0,0 +1,45 @@ |
+// Copyright (c) 2013 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_CHILD_WEBSOCKET_HANDLE_IMPL_H_ |
+#define WEBKIT_CHILD_WEBSOCKET_HANDLE_IMPL_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/ref_counted.h" |
+#include "base/supports_user_data.h" |
+#include "third_party/WebKit/public/platform/WebSocketHandle.h" |
+ |
+namespace webkit_glue { |
+ |
+class WebKitPlatformSupportImpl; |
+ |
+class WebSocketHandleImpl : public WebKit::WebSocketHandle { |
+ public: |
+ explicit WebSocketHandleImpl(WebKitPlatformSupportImpl* platform); |
+ virtual ~WebSocketHandleImpl(); |
+ |
+ // WebSocketHandle functions. |
+ virtual void connect(const WebKit::WebURL& url, |
+ const WebKit::WebVector<WebKit::WebString>& protocols, |
+ const WebKit::WebString& origin, |
+ WebKit::WebSocketHandleClient* client) OVERRIDE {} |
+ virtual void send(bool fin, |
+ WebKit::WebSocketHandle::MessageType type, |
+ const char* data, |
+ size_t size) OVERRIDE {} |
+ virtual void flowControl(int64 quota) OVERRIDE {} |
+ virtual void close(unsigned short code, |
+ const WebKit::WebString& reason) OVERRIDE {} |
+ |
+ private: |
+ class Context; |
+ scoped_refptr<Context> context_; |
+ WebKitPlatformSupportImpl* platform_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(WebSocketHandleImpl); |
+}; |
+ |
+} // namespace webkit_glue |
+ |
+#endif // WEBKIT_CHILD_WEBSOCKET_HANDLE_IMPL_H_ |