| 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 <cstdint> | 8 #include <cstdint> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/sequenced_task_runner_helpers.h" | 15 #include "base/sequenced_task_runner_helpers.h" |
| 16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
| 19 #include "remoting/host/client_session_control.h" | 19 #include "remoting/host/client_session_control.h" |
| 20 #include "remoting/host/client_session_details.h" | 20 #include "remoting/host/client_session_details.h" |
| 21 #include "remoting/host/desktop_environment_options.h" | 21 #include "remoting/host/desktop_environment_options.h" |
| 22 #include "remoting/host/host_experiment_session_plugin.h" |
| 22 #include "remoting/host/host_extension_session_manager.h" | 23 #include "remoting/host/host_extension_session_manager.h" |
| 23 #include "remoting/host/remote_input_filter.h" | 24 #include "remoting/host/remote_input_filter.h" |
| 24 #include "remoting/protocol/clipboard_echo_filter.h" | 25 #include "remoting/protocol/clipboard_echo_filter.h" |
| 25 #include "remoting/protocol/clipboard_filter.h" | 26 #include "remoting/protocol/clipboard_filter.h" |
| 26 #include "remoting/protocol/clipboard_stub.h" | 27 #include "remoting/protocol/clipboard_stub.h" |
| 27 #include "remoting/protocol/connection_to_client.h" | 28 #include "remoting/protocol/connection_to_client.h" |
| 28 #include "remoting/protocol/host_stub.h" | 29 #include "remoting/protocol/host_stub.h" |
| 29 #include "remoting/protocol/input_event_tracker.h" | 30 #include "remoting/protocol/input_event_tracker.h" |
| 30 #include "remoting/protocol/input_filter.h" | 31 #include "remoting/protocol/input_filter.h" |
| 31 #include "remoting/protocol/input_stub.h" | 32 #include "remoting/protocol/input_stub.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 bool lossless_video_encode_ = false; | 239 bool lossless_video_encode_ = false; |
| 239 bool lossless_video_color_ = false; | 240 bool lossless_video_color_ = false; |
| 240 | 241 |
| 241 // VideoLayout is sent only after the control channel is connected. Until | 242 // VideoLayout is sent only after the control channel is connected. Until |
| 242 // then it's stored in |pending_video_layout_message_|. | 243 // then it's stored in |pending_video_layout_message_|. |
| 243 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_; | 244 std::unique_ptr<protocol::VideoLayout> pending_video_layout_message_; |
| 244 | 245 |
| 245 scoped_refptr<protocol::InputEventTimestampsSource> | 246 scoped_refptr<protocol::InputEventTimestampsSource> |
| 246 event_timestamp_source_for_tests_; | 247 event_timestamp_source_for_tests_; |
| 247 | 248 |
| 249 HostExperimentSessionPlugin host_experiment_session_plugin_; |
| 250 |
| 248 // Used to disable callbacks to |this| once DisconnectSession() has been | 251 // Used to disable callbacks to |this| once DisconnectSession() has been |
| 249 // called. | 252 // called. |
| 250 base::WeakPtrFactory<ClientSessionControl> weak_factory_; | 253 base::WeakPtrFactory<ClientSessionControl> weak_factory_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(ClientSession); | 255 DISALLOW_COPY_AND_ASSIGN(ClientSession); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 } // namespace remoting | 258 } // namespace remoting |
| 256 | 259 |
| 257 #endif // REMOTING_HOST_CLIENT_SESSION_H_ | 260 #endif // REMOTING_HOST_CLIENT_SESSION_H_ |
| OLD | NEW |