Index: chrome/common/socket_stream_dispatcher.h |
=================================================================== |
--- chrome/common/socket_stream_dispatcher.h (revision 70108) |
+++ chrome/common/socket_stream_dispatcher.h (working copy) |
@@ -9,11 +9,8 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "ipc/ipc_channel.h" |
-namespace IPC { |
-class Message; |
-} |
- |
namespace WebKit { |
class WebSocketStreamHandle; |
} |
@@ -27,7 +24,7 @@ |
// main browser process. There is one instance per child process. Messages |
// are dispatched on the main child thread. The RenderThread class |
// creates an instance of SocketStreamDispatcher and delegates calls to it. |
-class SocketStreamDispatcher { |
+class SocketStreamDispatcher : public IPC::Channel::Listener { |
public: |
SocketStreamDispatcher(); |
~SocketStreamDispatcher() {} |
@@ -35,6 +32,8 @@ |
static webkit_glue::WebSocketStreamHandleBridge* CreateBridge( |
WebKit::WebSocketStreamHandle* handle, |
webkit_glue::WebSocketStreamHandleDelegate* delegate); |
+ |
+ // IPC::Channel::Listener implementation. |
bool OnMessageReceived(const IPC::Message& msg); |
private: |