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

Side by Side Diff: webkit/glue/websocketstreamhandle_bridge.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 unified diff | Download patch
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/glue/websocketstreamhandle_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11
12 class GURL;
13
14 namespace WebKit {
15 class WebSocketStreamHandle;
16 }
17
18 namespace webkit_glue {
19
20 class WebSocketStreamHandleDelegate;
21
22 class WebSocketStreamHandleBridge {
23 public:
24 virtual ~WebSocketStreamHandleBridge() {}
25
26 static WebSocketStreamHandleBridge* Create(
27 WebKit::WebSocketStreamHandle* handle,
28 WebSocketStreamHandleDelegate* delegate);
29
30 virtual void Connect(const GURL& url) = 0;
31
32 virtual bool Send(const std::vector<char>& data) = 0;
33
34 virtual void Close() = 0;
35
36 protected:
37 WebSocketStreamHandleBridge() {}
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleBridge);
41 };
42
43 } // namespace webkit_glue
44
45 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_BRIDGE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/glue/websocketstreamhandle_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698