| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Called on notification of a route change event, when a channel is | 51 // Called on notification of a route change event, when a channel is |
| 52 // connected. | 52 // connected. |
| 53 virtual void OnSessionRouteChange( | 53 virtual void OnSessionRouteChange( |
| 54 ClientSession* client, | 54 ClientSession* client, |
| 55 const std::string& channel_name, | 55 const std::string& channel_name, |
| 56 const net::IPEndPoint& remote_end_point, | 56 const net::IPEndPoint& remote_end_point, |
| 57 const net::IPEndPoint& local_end_point) = 0; | 57 const net::IPEndPoint& local_end_point) = 0; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Takes ownership of |connection|. Does not take ownership of | |
| 61 // |event_handler|, |host_event_stub|, or |capturer|. | |
| 62 ClientSession(EventHandler* event_handler, | 60 ClientSession(EventHandler* event_handler, |
| 63 protocol::ConnectionToClient* connection, | 61 scoped_ptr<protocol::ConnectionToClient> connection, |
| 64 protocol::HostEventStub* host_event_stub, | 62 protocol::HostEventStub* host_event_stub, |
| 65 Capturer* capturer); | 63 Capturer* capturer); |
| 66 virtual ~ClientSession(); | 64 virtual ~ClientSession(); |
| 67 | 65 |
| 68 // protocol::ClipboardStub interface. | 66 // protocol::ClipboardStub interface. |
| 69 virtual void InjectClipboardEvent( | 67 virtual void InjectClipboardEvent( |
| 70 const protocol::ClipboardEvent& event) OVERRIDE; | 68 const protocol::ClipboardEvent& event) OVERRIDE; |
| 71 | 69 |
| 72 // protocol::InputStub interface. | 70 // protocol::InputStub interface. |
| 73 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; | 71 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // Set of keys that are currently pressed down by the user. This is used so | 166 // Set of keys that are currently pressed down by the user. This is used so |
| 169 // we can release them if the user disconnects. | 167 // we can release them if the user disconnects. |
| 170 std::set<int> pressed_keys_; | 168 std::set<int> pressed_keys_; |
| 171 | 169 |
| 172 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 170 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 173 }; | 171 }; |
| 174 | 172 |
| 175 } // namespace remoting | 173 } // namespace remoting |
| 176 | 174 |
| 177 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 175 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |