| 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 ProcessHostJson(const JsonMessage& json_message) OVERRIDE; |
| 40 | 41 |
| 41 // ClipboardStub implementation for sending clipboard data to client. | 42 // ClipboardStub implementation for sending clipboard data to client. |
| 42 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; | 43 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
| 43 | 44 |
| 44 // CursorShapeStub implementation for sending cursor shape to client. | 45 // CursorShapeStub implementation for sending cursor shape to client. |
| 45 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE; | 46 virtual void SetCursorShape(const CursorShapeInfo& cursor_shape) OVERRIDE; |
| 46 | 47 |
| 47 // Sets the ClipboardStub that will be called for each incoming clipboard | 48 // Sets the ClipboardStub that will be called for each incoming clipboard |
| 48 // message. |clipboard_stub| must outlive this object. | 49 // message. |clipboard_stub| must outlive this object. |
| 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 50 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 68 ProtobufMessageReader<ControlMessage> reader_; | 69 ProtobufMessageReader<ControlMessage> reader_; |
| 69 BufferedSocketWriter writer_; | 70 BufferedSocketWriter writer_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); | 72 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace protocol | 75 } // namespace protocol |
| 75 } // namespace remoting | 76 } // namespace remoting |
| 76 | 77 |
| 77 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ | 78 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
| OLD | NEW |