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_CLIENT_CLIENT_USER_INTERFACE_H_ | 5 #ifndef REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 virtual void OnConnectionReady(bool ready) = 0; | 35 virtual void OnConnectionReady(bool ready) = 0; |
36 | 36 |
37 // Passes the final set of capabilities negotiated between the client and host | 37 // Passes the final set of capabilities negotiated between the client and host |
38 // to the application. | 38 // to the application. |
39 virtual void SetCapabilities(const std::string& capabilities) = 0; | 39 virtual void SetCapabilities(const std::string& capabilities) = 0; |
40 | 40 |
41 // Passes a pairing response message to the client. | 41 // Passes a pairing response message to the client. |
42 virtual void SetPairingResponse( | 42 virtual void SetPairingResponse( |
43 const protocol::PairingResponse& pairing_response) = 0; | 43 const protocol::PairingResponse& pairing_response) = 0; |
44 | 44 |
| 45 // Deliver an extension message from the host to the client. |
| 46 virtual void DeliverHostMessage( |
| 47 const protocol::ExtensionMessage& message) = 0; |
| 48 |
45 // Get the view's ClipboardStub implementation. | 49 // Get the view's ClipboardStub implementation. |
46 virtual protocol::ClipboardStub* GetClipboardStub() = 0; | 50 virtual protocol::ClipboardStub* GetClipboardStub() = 0; |
47 | 51 |
48 // Get the view's CursorShapeStub implementation. | 52 // Get the view's CursorShapeStub implementation. |
49 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; | 53 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; |
50 | 54 |
51 // Get the view's TokenFetcher implementation. | 55 // Get the view's TokenFetcher implementation. |
52 // The TokenFetcher implementation may require interactive authentication. | 56 // The TokenFetcher implementation may require interactive authentication. |
53 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> | 57 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> |
54 GetTokenFetcher(const std::string& host_public_key) = 0; | 58 GetTokenFetcher(const std::string& host_public_key) = 0; |
55 }; | 59 }; |
56 | 60 |
57 } // namespace remoting | 61 } // namespace remoting |
58 | 62 |
59 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 63 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
OLD | NEW |