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_CLIENT_CONTROL_DISPATCHER_H_ | 5 #ifndef REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ | 6 #define REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "remoting/protocol/channel_dispatcher_base.h" | 10 #include "remoting/protocol/channel_dispatcher_base.h" |
11 #include "remoting/protocol/clipboard_stub.h" | 11 #include "remoting/protocol/clipboard_stub.h" |
12 #include "remoting/protocol/cursor_shape_stub.h" | 12 #include "remoting/protocol/cursor_shape_stub.h" |
13 #include "remoting/protocol/host_stub.h" | 13 #include "remoting/protocol/host_stub.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 namespace protocol { | 16 namespace protocol { |
17 | 17 |
18 class ClientStub; | 18 class ClientStub; |
19 class ControlMessage; | |
20 class Session; | |
21 | 19 |
22 // ClientControlDispatcher dispatches incoming messages on the control | 20 // ClientControlDispatcher dispatches incoming messages on the control |
23 // channel to ClientStub, ClipboardStub or CursorShapeStub. | 21 // channel to ClientStub, ClipboardStub or CursorShapeStub. |
24 // It also implements ClipboardStub and HostStub for outgoing messages. | 22 // It also implements ClipboardStub and HostStub for outgoing messages. |
25 class ClientControlDispatcher : public ChannelDispatcherBase, | 23 class ClientControlDispatcher : public ChannelDispatcherBase, |
26 public ClipboardStub, | 24 public ClipboardStub, |
27 public HostStub { | 25 public HostStub { |
28 public: | 26 public: |
29 ClientControlDispatcher(); | 27 ClientControlDispatcher(); |
30 ~ClientControlDispatcher() override; | 28 ~ClientControlDispatcher() override; |
(...skipping 25 matching lines...) Expand all Loading... |
56 ClientStub* client_stub_ = nullptr; | 54 ClientStub* client_stub_ = nullptr; |
57 ClipboardStub* clipboard_stub_ = nullptr; | 55 ClipboardStub* clipboard_stub_ = nullptr; |
58 | 56 |
59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); | 57 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); |
60 }; | 58 }; |
61 | 59 |
62 } // namespace protocol | 60 } // namespace protocol |
63 } // namespace remoting | 61 } // namespace remoting |
64 | 62 |
65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ | 63 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
OLD | NEW |