| 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_HOST_CLIENT_SESSION_H_ | 5 #ifndef REMOTING_HOST_CLIENT_SESSION_H_ |
| 6 #define REMOTING_HOST_CLIENT_SESSION_H_ | 6 #define REMOTING_HOST_CLIENT_SESSION_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // protocol::ConnectionToClient::EventHandler interface. | 50 // protocol::ConnectionToClient::EventHandler interface. |
| 51 virtual void OnConnectionOpened( | 51 virtual void OnConnectionOpened( |
| 52 protocol::ConnectionToClient* connection) OVERRIDE; | 52 protocol::ConnectionToClient* connection) OVERRIDE; |
| 53 virtual void OnConnectionClosed( | 53 virtual void OnConnectionClosed( |
| 54 protocol::ConnectionToClient* connection) OVERRIDE; | 54 protocol::ConnectionToClient* connection) OVERRIDE; |
| 55 virtual void OnConnectionFailed( | 55 virtual void OnConnectionFailed( |
| 56 protocol::ConnectionToClient* connection) OVERRIDE; | 56 protocol::ConnectionToClient* connection) OVERRIDE; |
| 57 virtual void OnSequenceNumberUpdated( | 57 virtual void OnSequenceNumberUpdated( |
| 58 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 58 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; |
| 59 | 59 |
| 60 // Disconnect the session | 60 // Disconnect the session. |
| 61 void Disconnect(); | 61 void Disconnect(); |
| 62 | 62 |
| 63 protocol::ConnectionToClient* connection() const { | 63 protocol::ConnectionToClient* connection() const { |
| 64 return connection_.get(); | 64 return connection_.get(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 bool authenticated() const { | 67 bool authenticated() const { |
| 68 return authenticated_; | 68 return authenticated_; |
| 69 } | 69 } |
| 70 | 70 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Set of keys that are currently pressed down by the user. This is used so | 136 // Set of keys that are currently pressed down by the user. This is used so |
| 137 // we can release them if the user disconnects. | 137 // we can release them if the user disconnects. |
| 138 std::set<int> pressed_keys_; | 138 std::set<int> pressed_keys_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 140 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace remoting | 143 } // namespace remoting |
| 144 | 144 |
| 145 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 145 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |