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 "remoting/protocol/buffered_socket_writer.h" | 8 #include "remoting/protocol/buffered_socket_writer.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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 class HostControlDispatcher : public ChannelDispatcherBase, | 30 class HostControlDispatcher : public ChannelDispatcherBase, |
31 public ClientStub { | 31 public ClientStub { |
32 public: | 32 public: |
33 HostControlDispatcher(); | 33 HostControlDispatcher(); |
34 virtual ~HostControlDispatcher(); | 34 virtual ~HostControlDispatcher(); |
35 | 35 |
36 // ClientStub implementation. | 36 // ClientStub implementation. |
37 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE; | 37 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE; |
38 virtual void SetPairingResponse( | 38 virtual void SetPairingResponse( |
39 const PairingResponse& pairing_response) OVERRIDE; | 39 const PairingResponse& pairing_response) OVERRIDE; |
| 40 virtual void DeliverHostMessage( |
| 41 const ExtensionMessage& message) OVERRIDE; |
40 | 42 |
41 // ClipboardStub implementation for sending clipboard data to client. | 43 // ClipboardStub implementation for sending clipboard data to client. |
42 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; | 44 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
43 | 45 |
44 // CursorShapeStub implementation for sending cursor shape to client. | 46 // CursorShapeStub implementation for sending cursor shape to client. |
45 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE; | 47 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE; |
46 | 48 |
47 // Sets the ClipboardStub that will be called for each incoming clipboard | 49 // Sets the ClipboardStub that will be called for each incoming clipboard |
48 // message. |clipboard_stub| must outlive this object. | 50 // message. |clipboard_stub| must outlive this object. |
49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 51 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
(...skipping 18 matching lines...) Expand all Loading... |
68 ProtobufMessageReader<ControlMessage> reader_; | 70 ProtobufMessageReader<ControlMessage> reader_; |
69 BufferedSocketWriter writer_; | 71 BufferedSocketWriter writer_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); | 73 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace protocol | 76 } // namespace protocol |
75 } // namespace remoting | 77 } // namespace remoting |
76 | 78 |
77 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ | 79 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
OLD | NEW |