| Index: remoting/protocol/host_event_dispatcher.h
|
| diff --git a/remoting/protocol/host_event_dispatcher.h b/remoting/protocol/host_event_dispatcher.h
|
| index 0ee1a702d2c1c126056a595e64ad5816c29e7246..7076af1c6a6845cbc74fdf3fad4af74ec8557197 100644
|
| --- a/remoting/protocol/host_event_dispatcher.h
|
| +++ b/remoting/protocol/host_event_dispatcher.h
|
| @@ -5,7 +5,7 @@
|
| #ifndef REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_
|
| #define REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_
|
|
|
| -#include "base/basictypes.h"
|
| +#include "remoting/protocol/channel_dispatcher_base.h"
|
| #include "remoting/protocol/message_reader.h"
|
|
|
| namespace remoting {
|
| @@ -13,21 +13,16 @@ namespace protocol {
|
|
|
| class EventMessage;
|
| class InputStub;
|
| -class Session;
|
|
|
| // HostEventDispatcher dispatches incoming messages on the event
|
| // channel to InputStub.
|
| -class HostEventDispatcher {
|
| +class HostEventDispatcher : public ChannelDispatcherBase {
|
| public:
|
| typedef base::Callback<void(int64)> SequenceNumberCallback;
|
|
|
| HostEventDispatcher();
|
| virtual ~HostEventDispatcher();
|
|
|
| - // Initialize the event channel and the dispatcher for the
|
| - // |session|. Caller retains ownership of |session|.
|
| - void Init(Session* session);
|
| -
|
| // Set InputStub that will be called for each incoming input
|
| // message. Doesn't take ownership of |input_stub|. It must outlive
|
| // the dispatcher.
|
| @@ -39,8 +34,11 @@ class HostEventDispatcher {
|
| sequence_number_callback_ = value;
|
| }
|
|
|
| + protected:
|
| + // ChannelDispatcherBase overrides.
|
| + virtual void OnInitialized() OVERRIDE;
|
| +
|
| private:
|
| - // This method is called by |reader_| when a message is received.
|
| void OnMessageReceived(EventMessage* message,
|
| const base::Closure& done_task);
|
|
|
|
|