| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_CHROMOTING_HOST_H_ |
| 6 #define REMOTING_CHROMOTING_HOST_H_ | 6 #define REMOTING_CHROMOTING_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void OnClientConnected(protocol::ConnectionToClient* client); | 93 void OnClientConnected(protocol::ConnectionToClient* client); |
| 94 | 94 |
| 95 // This method is called if a client is disconnected from the host. | 95 // This method is called if a client is disconnected from the host. |
| 96 void OnClientDisconnected(protocol::ConnectionToClient* client); | 96 void OnClientDisconnected(protocol::ConnectionToClient* client); |
| 97 | 97 |
| 98 //////////////////////////////////////////////////////////////////////////// | 98 //////////////////////////////////////////////////////////////////////////// |
| 99 // protocol::ConnectionToClient::EventHandler implementations | 99 // protocol::ConnectionToClient::EventHandler implementations |
| 100 virtual void OnConnectionOpened(protocol::ConnectionToClient* client); | 100 virtual void OnConnectionOpened(protocol::ConnectionToClient* client); |
| 101 virtual void OnConnectionClosed(protocol::ConnectionToClient* client); | 101 virtual void OnConnectionClosed(protocol::ConnectionToClient* client); |
| 102 virtual void OnConnectionFailed(protocol::ConnectionToClient* client); | 102 virtual void OnConnectionFailed(protocol::ConnectionToClient* client); |
| 103 virtual void OnSequenceNumberUpdated(protocol::ConnectionToClient* client, |
| 104 int64 sequence_number); |
| 103 | 105 |
| 104 //////////////////////////////////////////////////////////////////////////// | 106 //////////////////////////////////////////////////////////////////////////// |
| 105 // JingleClient::Callback implementations | 107 // JingleClient::Callback implementations |
| 106 virtual void OnStateChange(JingleClient* client, JingleClient::State state); | 108 virtual void OnStateChange(JingleClient* client, JingleClient::State state); |
| 107 | 109 |
| 108 //////////////////////////////////////////////////////////////////////////// | 110 //////////////////////////////////////////////////////////////////////////// |
| 109 // ClientSession::EventHandler implementations | 111 // ClientSession::EventHandler implementations |
| 110 virtual void LocalLoginSucceeded( | 112 virtual void LocalLoginSucceeded( |
| 111 scoped_refptr<protocol::ConnectionToClient> client); | 113 scoped_refptr<protocol::ConnectionToClient> client); |
| 112 virtual void LocalLoginFailed( | 114 virtual void LocalLoginFailed( |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 194 |
| 193 // Whether or not the host is currently curtained. | 195 // Whether or not the host is currently curtained. |
| 194 bool is_curtained_; | 196 bool is_curtained_; |
| 195 | 197 |
| 196 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 198 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 197 }; | 199 }; |
| 198 | 200 |
| 199 } // namespace remoting | 201 } // namespace remoting |
| 200 | 202 |
| 201 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 203 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |