Index: remoting/protocol/client_event_dispatcher.h |
diff --git a/remoting/protocol/client_event_dispatcher.h b/remoting/protocol/client_event_dispatcher.h |
index ce3759d5e9bfb3ff8d3b067ed235109a505d5993..5a4be7dd5eebe370839988a0f6e293c89a0e6065 100644 |
--- a/remoting/protocol/client_event_dispatcher.h |
+++ b/remoting/protocol/client_event_dispatcher.h |
@@ -5,35 +5,30 @@ |
#ifndef REMOTING_PROTOCOL_CLIENT_INPUT_DISPATCHER_H_ |
#define REMOTING_PROTOCOL_CLIENT_INPUT_DISPATCHER_H_ |
-#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
+#include "remoting/protocol/channel_dispatcher_base.h" |
#include "remoting/protocol/input_stub.h" |
-namespace base { |
-class MessageLoopProxy; |
-} // namespace base |
- |
namespace remoting { |
namespace protocol { |
class BufferedSocketWriter; |
-class Session; |
// ClientEventDispatcher manages the event channel on the client |
// side. It implements InputStub for outgoing input messages. |
-class ClientEventDispatcher : public InputStub { |
+class ClientEventDispatcher : public ChannelDispatcherBase, public InputStub { |
public: |
ClientEventDispatcher(); |
virtual ~ClientEventDispatcher(); |
- // Initialize the event channel and the dispatcher for the |
- // |session|. |
- void Init(Session* session); |
- |
// InputStub implementation. |
virtual void InjectKeyEvent(const KeyEvent& event); |
virtual void InjectMouseEvent(const MouseEvent& event); |
+ protected: |
+ // ChannelDispatcherBase overrides. |
+ virtual void OnInitialized() OVERRIDE; |
+ |
private: |
scoped_refptr<BufferedSocketWriter> writer_; |