summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/client_event_dispatcher.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:07:13 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 00:07:13 +0000
commit2e8b52cb6b93877a77557fa519ddbceec7deab6e (patch)
tree23ad90684e62f9139a7859a2c8a935284bad33c6 /remoting/protocol/client_event_dispatcher.h
parentd1850b19dccf7be8310d031b956f27b4b2a71e9d (diff)
downloadchromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.zip
chromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.tar.gz
chromium_src-2e8b52cb6b93877a77557fa519ddbceec7deab6e.tar.bz2
Remove event_channel() and control_channel() from Session interface.
Now all channels are created using CreateStreamChannel() as they should be! Review URL: http://codereview.chromium.org/8587053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/client_event_dispatcher.h')
-rw-r--r--remoting/protocol/client_event_dispatcher.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/remoting/protocol/client_event_dispatcher.h b/remoting/protocol/client_event_dispatcher.h
index 32a570b..2e493eb 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) OVERRIDE;
virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
+ protected:
+ // ChannelDispatcherBase overrides.
+ virtual void OnInitialized() OVERRIDE;
+
private:
scoped_refptr<BufferedSocketWriter> writer_;