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" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // message. |clipboard_stub| must outlive this object. | 47 // message. |clipboard_stub| must outlive this object. |
48 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 48 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
49 clipboard_stub_ = clipboard_stub; | 49 clipboard_stub_ = clipboard_stub; |
50 } | 50 } |
51 | 51 |
52 // Sets the HostStub that will be called for each incoming control | 52 // Sets the HostStub that will be called for each incoming control |
53 // message. |host_stub| must outlive this object. | 53 // message. |host_stub| must outlive this object. |
54 void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; } | 54 void set_host_stub(HostStub* host_stub) { host_stub_ = host_stub; } |
55 | 55 |
56 private: | 56 private: |
57 void OnIncomingMessage(scoped_ptr<CompoundBuffer> buffer) override; | 57 void OnIncomingMessage(std::unique_ptr<CompoundBuffer> buffer) override; |
58 | 58 |
59 ClipboardStub* clipboard_stub_ = nullptr; | 59 ClipboardStub* clipboard_stub_ = nullptr; |
60 HostStub* host_stub_ = nullptr; | 60 HostStub* host_stub_ = nullptr; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); | 62 DISALLOW_COPY_AND_ASSIGN(HostControlDispatcher); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace protocol | 65 } // namespace protocol |
66 } // namespace remoting | 66 } // namespace remoting |
67 | 67 |
68 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ | 68 #endif // REMOTING_PROTOCOL_HOST_CONTROL_DISPATCHER_H_ |
OLD | NEW |