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/channel_dispatcher_base.h" | 9 #include "remoting/protocol/channel_dispatcher_base.h" |
10 #include "remoting/protocol/clipboard_stub.h" | 10 #include "remoting/protocol/clipboard_stub.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class ClientControlDispatcher : public ChannelDispatcherBase, | 25 class ClientControlDispatcher : public ChannelDispatcherBase, |
26 public ClipboardStub, | 26 public ClipboardStub, |
27 public HostStub { | 27 public HostStub { |
28 public: | 28 public: |
29 ClientControlDispatcher(); | 29 ClientControlDispatcher(); |
30 virtual ~ClientControlDispatcher(); | 30 virtual ~ClientControlDispatcher(); |
31 | 31 |
32 // ClipboardStub implementation. | 32 // ClipboardStub implementation. |
33 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; | 33 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; |
34 | 34 |
| 35 // HostStub implementation. |
| 36 virtual void NotifyClientDimensions( |
| 37 const ClientDimensions& dimensions) OVERRIDE; |
| 38 |
35 // Sets the ClientStub that will be called for each incoming control | 39 // Sets the ClientStub that will be called for each incoming control |
36 // message. |client_stub| must outlive this object. | 40 // message. |client_stub| must outlive this object. |
37 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } | 41 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } |
38 | 42 |
39 // Sets the ClipboardStub that will be called for each incoming clipboard | 43 // Sets the ClipboardStub that will be called for each incoming clipboard |
40 // message. |clipboard_stub| must outlive this object. | 44 // message. |clipboard_stub| must outlive this object. |
41 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 45 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
42 clipboard_stub_ = clipboard_stub; | 46 clipboard_stub_ = clipboard_stub; |
43 } | 47 } |
44 | 48 |
(...skipping 11 matching lines...) Expand all Loading... |
56 ProtobufMessageReader<ControlMessage> reader_; | 60 ProtobufMessageReader<ControlMessage> reader_; |
57 scoped_refptr<BufferedSocketWriter> writer_; | 61 scoped_refptr<BufferedSocketWriter> writer_; |
58 | 62 |
59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); | 63 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); |
60 }; | 64 }; |
61 | 65 |
62 } // namespace protocol | 66 } // namespace protocol |
63 } // namespace remoting | 67 } // namespace remoting |
64 | 68 |
65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ | 69 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
OLD | NEW |