| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HOST_CONNECTION_H_ | 5 #ifndef REMOTING_CLIENT_HOST_CONNECTION_H_ |
| 6 #define REMOTING_CLIENT_HOST_CONNECTION_H_ | 6 #define REMOTING_CLIENT_HOST_CONNECTION_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "remoting/base/protocol_decoder.h" | 10 #include "remoting/base/protocol_decoder.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void OnConnectionFailed(HostConnection* conn) = 0; | 36 virtual void OnConnectionFailed(HostConnection* conn) = 0; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 virtual ~HostConnection() {} | 39 virtual ~HostConnection() {} |
| 40 | 40 |
| 41 // TODO(ajwong): We need to generalize this API. | 41 // TODO(ajwong): We need to generalize this API. |
| 42 virtual void Connect(const ClientConfig& config, | 42 virtual void Connect(const ClientConfig& config, |
| 43 HostEventCallback* event_callback) = 0; | 43 HostEventCallback* event_callback) = 0; |
| 44 virtual void Disconnect() = 0; | 44 virtual void Disconnect() = 0; |
| 45 | 45 |
| 46 // Send an input event to the host. |
| 47 virtual void SendEvent(const ChromotingClientMessage& msg) = 0; |
| 48 |
| 46 protected: | 49 protected: |
| 47 HostConnection() {} | 50 HostConnection() {} |
| 48 | 51 |
| 49 private: | 52 private: |
| 50 DISALLOW_COPY_AND_ASSIGN(HostConnection); | 53 DISALLOW_COPY_AND_ASSIGN(HostConnection); |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 } // namespace remoting | 56 } // namespace remoting |
| 54 | 57 |
| 55 #endif // REMOTING_CLIENT_HOST_CONNECTION_H_ | 58 #endif // REMOTING_CLIENT_HOST_CONNECTION_H_ |
| OLD | NEW |