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 | 40 |
41 // Takes ownership of |user_authenticator|. Does not take ownership of | 41 // Takes ownership of |user_authenticator|. Does not take ownership of |
42 // |event_handler| or |input_stub|. | 42 // |event_handler| or |input_stub|. |
43 ClientSession(EventHandler* event_handler, | 43 ClientSession(EventHandler* event_handler, |
44 UserAuthenticator* user_authenticator, | 44 UserAuthenticator* user_authenticator, |
45 scoped_refptr<protocol::ConnectionToClient> connection, | 45 scoped_refptr<protocol::ConnectionToClient> connection, |
46 protocol::InputStub* input_stub); | 46 protocol::InputStub* input_stub); |
47 | 47 |
48 // protocol::HostStub interface. | 48 // protocol::HostStub interface. |
49 virtual void SuggestResolution( | |
50 const protocol::SuggestResolutionRequest* msg, Task* done); | |
51 virtual void BeginSessionRequest( | 49 virtual void BeginSessionRequest( |
52 const protocol::LocalLoginCredentials* credentials, Task* done); | 50 const protocol::LocalLoginCredentials* credentials, Task* done); |
53 | 51 |
54 // protocol::InputStub interface. | 52 // protocol::InputStub interface. |
55 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done); | 53 virtual void InjectKeyEvent(const protocol::KeyEvent* event, Task* done); |
56 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done); | 54 virtual void InjectMouseEvent(const protocol::MouseEvent* event, Task* done); |
57 | 55 |
58 // Disconnect this client session. | 56 // Disconnect this client session. |
59 void Disconnect(); | 57 void Disconnect(); |
60 | 58 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 std::list<gfx::Point> recent_remote_mouse_positions_; | 116 std::list<gfx::Point> recent_remote_mouse_positions_; |
119 base::Time latest_local_input_time_; | 117 base::Time latest_local_input_time_; |
120 std::set<int> pressed_keys_; | 118 std::set<int> pressed_keys_; |
121 | 119 |
122 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 120 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
123 }; | 121 }; |
124 | 122 |
125 } // namespace remoting | 123 } // namespace remoting |
126 | 124 |
127 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 125 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |