OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ |
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ |
7 | 7 |
8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
9 #include "webkit/api/public/WebSocketStreamHandle.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebSocketStreamHandle.h" |
10 | 10 |
11 namespace webkit_glue { | 11 namespace webkit_glue { |
12 | 12 |
13 class WebSocketStreamHandleImpl : public WebKit::WebSocketStreamHandle { | 13 class WebSocketStreamHandleImpl : public WebKit::WebSocketStreamHandle { |
14 public: | 14 public: |
15 WebSocketStreamHandleImpl(); | 15 WebSocketStreamHandleImpl(); |
16 virtual ~WebSocketStreamHandleImpl(); | 16 virtual ~WebSocketStreamHandleImpl(); |
17 | 17 |
18 // WebSocketStreamHandle methods: | 18 // WebSocketStreamHandle methods: |
19 virtual void connect( | 19 virtual void connect( |
20 const WebKit::WebURL& url, | 20 const WebKit::WebURL& url, |
21 WebKit::WebSocketStreamHandleClient* client); | 21 WebKit::WebSocketStreamHandleClient* client); |
22 virtual bool send(const WebKit::WebData& data); | 22 virtual bool send(const WebKit::WebData& data); |
23 virtual void close(); | 23 virtual void close(); |
24 | 24 |
25 private: | 25 private: |
26 class Context; | 26 class Context; |
27 scoped_refptr<Context> context_; | 27 scoped_refptr<Context> context_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl); | 29 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImpl); |
30 }; | 30 }; |
31 | 31 |
32 } // namespace webkit_glue | 32 } // namespace webkit_glue |
33 | 33 |
34 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ | 34 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_IMPL_H_ |
OLD | NEW |