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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // Takes ownership of |connection|. Does not take ownership of | 40 // Takes ownership of |connection|. Does not take ownership of |
41 // |event_handler|, |input_stub| or |capturer|. | 41 // |event_handler|, |input_stub| or |capturer|. |
42 ClientSession(EventHandler* event_handler, | 42 ClientSession(EventHandler* event_handler, |
43 protocol::ConnectionToClient* connection, | 43 protocol::ConnectionToClient* connection, |
44 protocol::InputStub* input_stub, | 44 protocol::InputStub* input_stub, |
45 Capturer* capturer); | 45 Capturer* capturer); |
46 virtual ~ClientSession(); | 46 virtual ~ClientSession(); |
47 | 47 |
48 // protocol::InputStub interface. | 48 // protocol::InputStub interface. |
49 virtual void InjectKeyEvent(const protocol::KeyEvent& event); | 49 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
50 virtual void InjectMouseEvent(const protocol::MouseEvent& event); | 50 virtual void InjectMouseEvent(const protocol::MouseEvent& event) OVERRIDE; |
51 | 51 |
52 // protocol::ConnectionToClient::EventHandler interface. | 52 // protocol::ConnectionToClient::EventHandler interface. |
53 virtual void OnConnectionOpened( | 53 virtual void OnConnectionOpened( |
54 protocol::ConnectionToClient* connection) OVERRIDE; | 54 protocol::ConnectionToClient* connection) OVERRIDE; |
55 virtual void OnConnectionClosed( | 55 virtual void OnConnectionClosed( |
56 protocol::ConnectionToClient* connection) OVERRIDE; | 56 protocol::ConnectionToClient* connection) OVERRIDE; |
57 virtual void OnConnectionFailed( | 57 virtual void OnConnectionFailed( |
58 protocol::ConnectionToClient* connection) OVERRIDE; | 58 protocol::ConnectionToClient* connection) OVERRIDE; |
59 virtual void OnSequenceNumberUpdated( | 59 virtual void OnSequenceNumberUpdated( |
60 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; | 60 protocol::ConnectionToClient* connection, int64 sequence_number) OVERRIDE; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Set of keys that are currently pressed down by the user. This is used so | 139 // Set of keys that are currently pressed down by the user. This is used so |
140 // we can release them if the user disconnects. | 140 // we can release them if the user disconnects. |
141 std::set<int> pressed_keys_; | 141 std::set<int> pressed_keys_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 143 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace remoting | 146 } // namespace remoting |
147 | 147 |
148 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 148 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |