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 // Interface of a client that receives commands from a Chromoting host. | 5 // Interface of a client that receives commands from a Chromoting host. |
6 // | 6 // |
7 // This interface is responsible for a subset of control messages sent to | 7 // This interface is responsible for a subset of control messages sent to |
8 // the Chromoting client. | 8 // the Chromoting client. |
9 | 9 |
10 #ifndef REMOTING_PROTOCOL_CLIENT_STUB_H_ | 10 #ifndef REMOTING_PROTOCOL_CLIENT_STUB_H_ |
11 #define REMOTING_PROTOCOL_CLIENT_STUB_H_ | 11 #define REMOTING_PROTOCOL_CLIENT_STUB_H_ |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "remoting/protocol/clipboard_stub.h" | 14 #include "remoting/protocol/clipboard_stub.h" |
15 #include "remoting/protocol/cursor_shape_stub.h" | 15 #include "remoting/protocol/cursor_shape_stub.h" |
16 | 16 |
17 namespace remoting { | 17 namespace remoting { |
18 namespace protocol { | 18 namespace protocol { |
19 | 19 |
20 class Capabilities; | 20 class Capabilities; |
| 21 class PairingResponse; |
21 | 22 |
22 class ClientStub : public ClipboardStub, | 23 class ClientStub : public ClipboardStub, |
23 public CursorShapeStub { | 24 public CursorShapeStub { |
24 public: | 25 public: |
25 ClientStub() {} | 26 ClientStub() {} |
26 virtual ~ClientStub() {} | 27 virtual ~ClientStub() {} |
27 | 28 |
28 // Passes the set of capabilities supported by the host to the client. | 29 // Passes the set of capabilities supported by the host to the client. |
29 virtual void SetCapabilities(const Capabilities& capabilities) = 0; | 30 virtual void SetCapabilities(const Capabilities& capabilities) = 0; |
30 | 31 |
| 32 // Passes a pairing response message to the client. |
| 33 // TODO(jamiewalch): Make this pure virtual once the PIN-less authentication |
| 34 // implementation CLs have landed. |
| 35 virtual void SetPairingResponse(const PairingResponse& pairing_response) {} |
| 36 |
31 private: | 37 private: |
32 DISALLOW_COPY_AND_ASSIGN(ClientStub); | 38 DISALLOW_COPY_AND_ASSIGN(ClientStub); |
33 }; | 39 }; |
34 | 40 |
35 } // namespace protocol | 41 } // namespace protocol |
36 } // namespace remoting | 42 } // namespace remoting |
37 | 43 |
38 #endif // REMOTING_PROTOCOL_CLIENT_STUB_H_ | 44 #endif // REMOTING_PROTOCOL_CLIENT_STUB_H_ |
OLD | NEW |