| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ | 5 #ifndef REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ |
| 6 #define REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ | 6 #define REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "remoting/protocol/channel_dispatcher_base.h" | 11 #include "remoting/protocol/channel_dispatcher_base.h" |
| 12 #include "remoting/protocol/input_event_timestamps.h" | 12 #include "remoting/protocol/input_event_timestamps.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 namespace protocol { | 15 namespace protocol { |
| 16 | 16 |
| 17 class EventMessage; | |
| 18 class InputStub; | 17 class InputStub; |
| 19 | 18 |
| 20 // HostEventDispatcher dispatches incoming messages on the event | 19 // HostEventDispatcher dispatches incoming messages on the event |
| 21 // channel to InputStub. | 20 // channel to InputStub. |
| 22 class HostEventDispatcher : public ChannelDispatcherBase { | 21 class HostEventDispatcher : public ChannelDispatcherBase { |
| 23 public: | 22 public: |
| 24 HostEventDispatcher(); | 23 HostEventDispatcher(); |
| 25 ~HostEventDispatcher() override; | 24 ~HostEventDispatcher() override; |
| 26 | 25 |
| 27 // Set InputStub that will be called for each incoming input | 26 // Set InputStub that will be called for each incoming input |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 | 47 |
| 49 InputStub* input_stub_ = nullptr; | 48 InputStub* input_stub_ = nullptr; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher); | 50 DISALLOW_COPY_AND_ASSIGN(HostEventDispatcher); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace protocol | 53 } // namespace protocol |
| 55 } // namespace remoting | 54 } // namespace remoting |
| 56 | 55 |
| 57 #endif // REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ | 56 #endif // REMOTING_PROTOCOL_HOST_EVENT_DISPATCHER_H_ |
| OLD | NEW |