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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // protocol::InputStub interface. | 67 // protocol::InputStub interface. |
68 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; | 68 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
69 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; | 69 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
70 | 70 |
71 // protocol::ConnectionToClient::EventHandler interface. | 71 // protocol::ConnectionToClient::EventHandler interface. |
72 virtual void OnConnectionOpened( | 72 virtual void OnConnectionOpened( |
73 protocol::ConnectionToClient* connection) OVERRIDE; | 73 protocol::ConnectionToClient* connection) OVERRIDE; |
74 virtual void OnConnectionClosed( | 74 virtual void OnConnectionClosed( |
75 protocol::ConnectionToClient* connection) OVERRIDE; | 75 protocol::ConnectionToClient* connection) OVERRIDE; |
76 virtual void OnConnectionFailed(protocol::ConnectionToClient* connection, | 76 virtual void OnConnectionFailed(protocol::ConnectionToClient* connection, |
77 protocol::Session::Error error) OVERRIDE; | 77 protocol::ErrorCode error) OVERRIDE; |
78 virtual void OnSequenceNumberUpdated( | 78 virtual void OnSequenceNumberUpdated( |
79 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 79 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; |
80 virtual void OnRouteChange( | 80 virtual void OnRouteChange( |
81 protocol::ConnectionToClient* connection, | 81 protocol::ConnectionToClient* connection, |
82 const std::string& channel_name, | 82 const std::string& channel_name, |
83 const net::IPEndPoint& remote_end_point, | 83 const net::IPEndPoint& remote_end_point, |
84 const net::IPEndPoint& local_end_point) OVERRIDE; | 84 const net::IPEndPoint& local_end_point) OVERRIDE; |
85 | 85 |
86 // Disconnects the session and destroys the transport. Event handler | 86 // Disconnects the session and destroys the transport. Event handler |
87 // is guaranteed not to be called after this method is called. Can | 87 // is guaranteed not to be called after this method is called. Can |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Set of keys that are currently pressed down by the user. This is used so | 163 // Set of keys that are currently pressed down by the user. This is used so |
164 // we can release them if the user disconnects. | 164 // we can release them if the user disconnects. |
165 std::set<int> pressed_keys_; | 165 std::set<int> pressed_keys_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 167 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace remoting | 170 } // namespace remoting |
171 | 171 |
172 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 172 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |