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_CONTROL_DISPATCHER_H_ | 5 #ifndef REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ | 6 #define REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "remoting/protocol/channel_dispatcher_base.h" | 9 #include "remoting/protocol/channel_dispatcher_base.h" |
10 #include "remoting/protocol/client_stub.h" | 10 #include "remoting/protocol/client_stub.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 | 13 |
14 namespace net { | |
15 class StreamSocket; | |
16 } // namespace net | |
17 | |
18 namespace remoting { | 14 namespace remoting { |
19 namespace protocol { | 15 namespace protocol { |
20 | 16 |
21 class HostStub; | 17 class HostStub; |
22 class PairingResponse; | 18 class PairingResponse; |
23 class Session; | |
24 | 19 |
25 // HostControlDispatcher dispatches incoming messages on the control | 20 // HostControlDispatcher dispatches incoming messages on the control |
26 // channel to HostStub or ClipboardStub, and also implements ClientStub and | 21 // channel to HostStub or ClipboardStub, and also implements ClientStub and |
27 // CursorShapeStub for outgoing messages. | 22 // CursorShapeStub for outgoing messages. |
28 class HostControlDispatcher : public ChannelDispatcherBase, | 23 class HostControlDispatcher : public ChannelDispatcherBase, |
29 public ClientStub { | 24 public ClientStub { |
30 public: | 25 public: |
31 HostControlDispatcher(); | 26 HostControlDispatcher(); |
32 ~HostControlDispatcher() override; | 27 ~HostControlDispatcher() override; |
33 | 28 |
(...skipping 25 matching lines...) Expand all Loading... |
59 ClipboardStub* clipboard_stub_ = nullptr; | 54 ClipboardStub* clipboard_stub_ = nullptr; |
60 HostStub* host_stub_ = nullptr; | 55 HostStub* host_stub_ = nullptr; |
61 | 56 |
62 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); | 57 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); |
63 }; | 58 }; |
64 | 59 |
65 } // namespace protocol | 60 } // namespace protocol |
66 } // namespace remoting | 61 } // namespace remoting |
67 | 62 |
68 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ | 63 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
OLD | NEW |