| 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/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "remoting/protocol/channel_dispatcher_base.h" | 10 #include "remoting/protocol/channel_dispatcher_base.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // message. |client_stub| must outlive this object. | 44 // message. |client_stub| must outlive this object. |
| 45 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } | 45 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } |
| 46 | 46 |
| 47 // Sets the ClipboardStub that will be called for each incoming clipboard | 47 // Sets the ClipboardStub that will be called for each incoming clipboard |
| 48 // message. |clipboard_stub| must outlive this object. | 48 // message. |clipboard_stub| must outlive this object. |
| 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { | 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) { |
| 50 clipboard_stub_ = clipboard_stub; | 50 clipboard_stub_ = clipboard_stub; |
| 51 } | 51 } |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 void OnIncomingMessage(scoped_ptr<CompoundBuffer> message) override; | 54 void OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) override; |
| 55 | 55 |
| 56 ClientStub* client_stub_ = nullptr; | 56 ClientStub* client_stub_ = nullptr; |
| 57 ClipboardStub* clipboard_stub_ = nullptr; | 57 ClipboardStub* clipboard_stub_ = nullptr; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); | 59 DISALLOW_COPY_AND_ASSIGN(ClientControlDispatcher); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace protocol | 62 } // namespace protocol |
| 63 } // namespace remoting | 63 } // namespace remoting |
| 64 | 64 |
| 65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ | 65 #endif // REMOTING_PROTOCOL_CLIENT_CONTROL_DISPATCHER_H_ |
| OLD | NEW |