| 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 // Passes a JSON message from the host to the client. |
| 46 virtual void ProcessHostJson(const protocol::JsonMessage& message) = 0; |
| 47 |
| 45 // Get the view's ClipboardStub implementation. | 48 // Get the view's ClipboardStub implementation. |
| 46 virtual protocol::ClipboardStub* GetClipboardStub() = 0; | 49 virtual protocol::ClipboardStub* GetClipboardStub() = 0; |
| 47 | 50 |
| 48 // Get the view's CursorShapeStub implementation. | 51 // Get the view's CursorShapeStub implementation. |
| 49 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; | 52 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; |
| 50 | 53 |
| 51 // Get the view's TokenFetcher implementation. | 54 // Get the view's TokenFetcher implementation. |
| 52 // The TokenFetcher implementation may require interactive authentication. | 55 // The TokenFetcher implementation may require interactive authentication. |
| 53 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> | 56 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> |
| 54 GetTokenFetcher(const std::string& host_public_key) = 0; | 57 GetTokenFetcher(const std::string& host_public_key) = 0; |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace remoting | 60 } // namespace remoting |
| 58 | 61 |
| 59 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ | 62 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ |
| OLD | NEW |