| 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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "remoting/protocol/buffered_socket_writer.h" | 9 #include "remoting/protocol/buffered_socket_writer.h" |
| 10 #include "remoting/protocol/channel_dispatcher_base.h" | 10 #include "remoting/protocol/channel_dispatcher_base.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual ~ClientControlDispatcher(); | 31 virtual ~ClientControlDispatcher(); |
| 32 | 32 |
| 33 // ClipboardStub implementation. | 33 // ClipboardStub implementation. |
| 34 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; | 34 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
| 35 | 35 |
| 36 // HostStub implementation. | 36 // HostStub implementation. |
| 37 virtual void NotifyClientResolution( | 37 virtual void NotifyClientResolution( |
| 38 const ClientResolution& resolution) OVERRIDE; | 38 const ClientResolution& resolution) OVERRIDE; |
| 39 virtual void ControlVideo(const VideoControl& video_control) OVERRIDE; | 39 virtual void ControlVideo(const VideoControl& video_control) OVERRIDE; |
| 40 virtual void ControlAudio(const AudioControl& audio_control) OVERRIDE; | 40 virtual void ControlAudio(const AudioControl& audio_control) OVERRIDE; |
| 41 virtual void SetCapabilities(const Capabilities& capabilities) OVERRIDE; |
| 41 | 42 |
| 42 // Sets the ClientStub that will be called for each incoming control | 43 // Sets the ClientStub that will be called for each incoming control |
| 43 // message. |client_stub| must outlive this object. | 44 // message. |client_stub| must outlive this object. |
| 44 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } | 45 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } |
| 45 | 46 |
| 46 // Sets the ClipboardStub that will be called for each incoming clipboard | 47 // Sets the ClipboardStub that will be called for each incoming clipboard |
| 47 // message. |clipboard_stub| must outlive this object. | 48 // message. |clipboard_stub| must outlive this object. |
| 48 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
| 49 clipboard_stub_ = clipboard_stub; | 50 clipboard_stub_ = clipboard_stub; |
| 50 } | 51 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 63 ProtobufMessageReader<ControlMessage> reader_; | 64 ProtobufMessageReader<ControlMessage> reader_; |
| 64 BufferedSocketWriter writer_; | 65 BufferedSocketWriter writer_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); | 67 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace protocol | 70 } // namespace protocol |
| 70 } // namespace remoting | 71 } // namespace remoting |
| 71 | 72 |
| 72 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ | 73 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
| OLD | NEW |