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 #include "remoting/host/client_session.h" | 5 #include "remoting/host/client_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "remoting/base/capabilities.h" | 10 #include "remoting/base/capabilities.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 client_jid_(connection_->session()->jid()), | 53 client_jid_(connection_->session()->jid()), |
54 control_factory_(this), | 54 control_factory_(this), |
55 desktop_environment_factory_(desktop_environment_factory), | 55 desktop_environment_factory_(desktop_environment_factory), |
56 input_tracker_(&host_input_filter_), | 56 input_tracker_(&host_input_filter_), |
57 remote_input_filter_(&input_tracker_), | 57 remote_input_filter_(&input_tracker_), |
58 mouse_clamping_filter_(&remote_input_filter_), | 58 mouse_clamping_filter_(&remote_input_filter_), |
59 disable_input_filter_(mouse_clamping_filter_.input_filter()), | 59 disable_input_filter_(mouse_clamping_filter_.input_filter()), |
60 disable_clipboard_filter_(clipboard_echo_filter_.host_filter()), | 60 disable_clipboard_filter_(clipboard_echo_filter_.host_filter()), |
61 auth_input_filter_(&disable_input_filter_), | 61 auth_input_filter_(&disable_input_filter_), |
62 auth_clipboard_filter_(&disable_clipboard_filter_), | 62 auth_clipboard_filter_(&disable_clipboard_filter_), |
63 client_clipboard_factory_(clipboard_echo_filter_.client_filter()), | |
64 max_duration_(max_duration), | 63 max_duration_(max_duration), |
65 audio_task_runner_(audio_task_runner), | 64 audio_task_runner_(audio_task_runner), |
66 input_task_runner_(input_task_runner), | 65 input_task_runner_(input_task_runner), |
67 video_capture_task_runner_(video_capture_task_runner), | 66 video_capture_task_runner_(video_capture_task_runner), |
68 video_encode_task_runner_(video_encode_task_runner), | 67 video_encode_task_runner_(video_encode_task_runner), |
69 network_task_runner_(network_task_runner), | 68 network_task_runner_(network_task_runner), |
70 ui_task_runner_(ui_task_runner), | 69 ui_task_runner_(ui_task_runner), |
71 pairing_registry_(pairing_registry), | 70 pairing_registry_(pairing_registry), |
72 pause_video_(false), | 71 pause_video_(false), |
73 lossless_video_encode_(false), | 72 lossless_video_encode_(false), |
74 lossless_video_color_(false) { | 73 lossless_video_color_(false), |
| 74 client_clipboard_factory_(clipboard_echo_filter_.client_filter()) { |
75 connection_->SetEventHandler(this); | 75 connection_->SetEventHandler(this); |
76 | 76 |
77 // TODO(sergeyu): Currently ConnectionToClient expects stubs to be | 77 // TODO(sergeyu): Currently ConnectionToClient expects stubs to be |
78 // set before channels are connected. Make it possible to set stubs | 78 // set before channels are connected. Make it possible to set stubs |
79 // later and set them only when connection is authenticated. | 79 // later and set them only when connection is authenticated. |
80 connection_->set_clipboard_stub(&auth_clipboard_filter_); | 80 connection_->set_clipboard_stub(&auth_clipboard_filter_); |
81 connection_->set_host_stub(this); | 81 connection_->set_host_stub(this); |
82 connection_->set_input_stub(&auth_input_filter_); | 82 connection_->set_input_stub(&auth_input_filter_); |
83 | 83 |
84 // |auth_*_filter_|'s states reflect whether the session is authenticated. | 84 // |auth_*_filter_|'s states reflect whether the session is authenticated. |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim()); | 529 return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim()); |
530 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { | 530 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { |
531 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus()); | 531 return scoped_ptr<AudioEncoder>(new AudioEncoderOpus()); |
532 } | 532 } |
533 | 533 |
534 NOTREACHED(); | 534 NOTREACHED(); |
535 return scoped_ptr<AudioEncoder>(); | 535 return scoped_ptr<AudioEncoder>(); |
536 } | 536 } |
537 | 537 |
538 } // namespace remoting | 538 } // namespace remoting |
OLD | NEW |