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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // This must appear after |clipboard_echo_filter_|, so that it won't outlive | 189 // This must appear after |clipboard_echo_filter_|, so that it won't outlive |
190 // it. | 190 // it. |
191 base::WeakPtrFactory<protocol::ClipboardStub> client_clipboard_factory_; | 191 base::WeakPtrFactory<protocol::ClipboardStub> client_clipboard_factory_; |
192 | 192 |
193 // The maximum duration of this session. | 193 // The maximum duration of this session. |
194 // There is no maximum if this value is <= 0. | 194 // There is no maximum if this value is <= 0. |
195 base::TimeDelta max_duration_; | 195 base::TimeDelta max_duration_; |
196 | 196 |
197 // A timer that triggers a disconnect when the maximum session duration | 197 // A timer that triggers a disconnect when the maximum session duration |
198 // is reached. | 198 // is reached. |
199 base::OneShotTimer<ClientSession> max_duration_timer_; | 199 base::OneShotTimer max_duration_timer_; |
200 | 200 |
201 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; | 201 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_; |
202 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; | 202 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; |
203 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; | 203 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner_; |
204 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; | 204 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; |
205 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 205 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
206 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 206 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
207 | 207 |
208 // Pumps for audio, video and mouse shape. | 208 // Pumps for audio, video and mouse shape. |
209 // |video_frame_pump_| and |mouse_shape_pump_| may be nullptr if the video | 209 // |video_frame_pump_| and |mouse_shape_pump_| may be nullptr if the video |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // Used to disable callbacks to |this| once DisconnectSession() has been | 247 // Used to disable callbacks to |this| once DisconnectSession() has been |
248 // called. | 248 // called. |
249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 249 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
250 | 250 |
251 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 251 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
252 }; | 252 }; |
253 | 253 |
254 } // namespace remoting | 254 } // namespace remoting |
255 | 255 |
256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 256 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
OLD | NEW |