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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 } // namespace base | 34 } // namespace base |
35 | 35 |
36 namespace remoting { | 36 namespace remoting { |
37 | 37 |
38 class AudioPump; | 38 class AudioPump; |
39 class DesktopEnvironment; | 39 class DesktopEnvironment; |
40 class DesktopEnvironmentFactory; | 40 class DesktopEnvironmentFactory; |
41 class InputInjector; | 41 class InputInjector; |
42 class MouseShapePump; | 42 class MouseShapePump; |
43 class ScreenControls; | 43 class ScreenControls; |
| 44 |
| 45 namespace protocol { |
44 class VideoFramePump; | 46 class VideoFramePump; |
| 47 } // namespace protocol |
45 | 48 |
46 // A ClientSession keeps a reference to a connection to a client, and maintains | 49 // A ClientSession keeps a reference to a connection to a client, and maintains |
47 // per-client state. | 50 // per-client state. |
48 class ClientSession | 51 class ClientSession |
49 : public base::NonThreadSafe, | 52 : public base::NonThreadSafe, |
50 public protocol::HostStub, | 53 public protocol::HostStub, |
51 public protocol::ConnectionToClient::EventHandler, | 54 public protocol::ConnectionToClient::EventHandler, |
52 public ClientSessionControl { | 55 public ClientSessionControl { |
53 public: | 56 public: |
54 // Callback interface for passing events to the ChromotingHost. | 57 // Callback interface for passing events to the ChromotingHost. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 205 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
203 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; | 206 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; |
204 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; | 207 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; |
205 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 208 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
206 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 209 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
207 | 210 |
208 // Pumps for audio, video and mouse shape. | 211 // Pumps for audio, video and mouse shape. |
209 // |video_frame_pump_| and |mouse_shape_pump_| may be nullptr if the video | 212 // |video_frame_pump_| and |mouse_shape_pump_| may be nullptr if the video |
210 // stream is handled by an extension, see ResetVideoPipeline(). | 213 // stream is handled by an extension, see ResetVideoPipeline(). |
211 scoped_ptr<AudioPump> audio_pump_; | 214 scoped_ptr<AudioPump> audio_pump_; |
212 scoped_ptr<VideoFramePump> video_frame_pump_; | 215 scoped_ptr<protocol::VideoFramePump> video_frame_pump_; |
213 scoped_ptr<MouseShapePump> mouse_shape_pump_; | 216 scoped_ptr<MouseShapePump> mouse_shape_pump_; |
214 | 217 |
215 // The set of all capabilities supported by the client. | 218 // The set of all capabilities supported by the client. |
216 scoped_ptr<std::string> client_capabilities_; | 219 scoped_ptr<std::string> client_capabilities_; |
217 | 220 |
218 // The set of all capabilities supported by the host. | 221 // The set of all capabilities supported by the host. |
219 std::string host_capabilities_; | 222 std::string host_capabilities_; |
220 | 223 |
221 // The set of all capabilities negotiated between client and host. | 224 // The set of all capabilities negotiated between client and host. |
222 std::string capabilities_; | 225 std::string capabilities_; |
(...skipping 24 matching lines...) Expand all Loading... |
247 // Used to disable callbacks to |this| once DisconnectSession() has been | 250 // Used to disable callbacks to |this| once DisconnectSession() has been |
248 // called. | 251 // called. |
249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 252 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
250 | 253 |
251 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 254 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
252 }; | 255 }; |
253 | 256 |
254 } // namespace remoting | 257 } // namespace remoting |
255 | 258 |
256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 259 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |