| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 namespace remoting { | 36 namespace remoting { |
| 37 | 37 |
| 38 class AudioEncoder; | 38 class AudioEncoder; |
| 39 class AudioScheduler; | 39 class AudioScheduler; |
| 40 class DesktopEnvironment; | 40 class DesktopEnvironment; |
| 41 class DesktopEnvironmentFactory; | 41 class DesktopEnvironmentFactory; |
| 42 class InputInjector; | 42 class InputInjector; |
| 43 class ScreenControls; | 43 class ScreenControls; |
| 44 class VideoEncoder; | 44 class VideoEncoder; |
| 45 class VideoScheduler; | 45 class VideoFramePump; |
| 46 | 46 |
| 47 // A ClientSession keeps a reference to a connection to a client, and maintains | 47 // A ClientSession keeps a reference to a connection to a client, and maintains |
| 48 // per-client state. | 48 // per-client state. |
| 49 class ClientSession | 49 class ClientSession |
| 50 : public base::NonThreadSafe, | 50 : public base::NonThreadSafe, |
| 51 public protocol::HostStub, | 51 public protocol::HostStub, |
| 52 public protocol::ConnectionToClient::EventHandler, | 52 public protocol::ConnectionToClient::EventHandler, |
| 53 public ClientSessionControl { | 53 public ClientSessionControl { |
| 54 public: | 54 public: |
| 55 // Callback interface for passing events to the ChromotingHost. | 55 // Callback interface for passing events to the ChromotingHost. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 base::OneShotTimer<ClientSession> max_duration_timer_; | 212 base::OneShotTimer<ClientSession> max_duration_timer_; |
| 213 | 213 |
| 214 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; | 214 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; |
| 215 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 215 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
| 216 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; | 216 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; |
| 217 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; | 217 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; |
| 218 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 218 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
| 219 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 219 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
| 220 | 220 |
| 221 // Schedulers for audio and video capture. | 221 // Schedulers for audio and video capture. |
| 222 // |video_scheduler_| may be nullptr if the video channel is not required - | 222 // |video_frame_pump_| may be nullptr if the video channel is not required - |
| 223 // see ResetVideoPipeline(). | 223 // see ResetVideoPipeline(). |
| 224 scoped_refptr<AudioScheduler> audio_scheduler_; | 224 scoped_refptr<AudioScheduler> audio_scheduler_; |
| 225 scoped_refptr<VideoScheduler> video_scheduler_; | 225 scoped_refptr<VideoFramePump> video_frame_pump_; |
| 226 | 226 |
| 227 // The set of all capabilities supported by the client. | 227 // The set of all capabilities supported by the client. |
| 228 scoped_ptr<std::string> client_capabilities_; | 228 scoped_ptr<std::string> client_capabilities_; |
| 229 | 229 |
| 230 // The set of all capabilities supported by the host. | 230 // The set of all capabilities supported by the host. |
| 231 std::string host_capabilities_; | 231 std::string host_capabilities_; |
| 232 | 232 |
| 233 // The set of all capabilities negotiated between client and host. | 233 // The set of all capabilities negotiated between client and host. |
| 234 std::string capabilities_; | 234 std::string capabilities_; |
| 235 | 235 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 256 // Used to disable callbacks to |this| once DisconnectSession() has been | 256 // Used to disable callbacks to |this| once DisconnectSession() has been |
| 257 // called. | 257 // called. |
| 258 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 258 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
| 259 | 259 |
| 260 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 260 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 } // namespace remoting | 263 } // namespace remoting |
| 264 | 264 |
| 265 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 265 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |