| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 DCHECK(!audio_scheduler_.get()); | 249 DCHECK(!audio_scheduler_.get()); |
| 250 DCHECK(!desktop_environment_); | 250 DCHECK(!desktop_environment_); |
| 251 DCHECK(!input_injector_); | 251 DCHECK(!input_injector_); |
| 252 DCHECK(!screen_controls_); | 252 DCHECK(!screen_controls_); |
| 253 DCHECK(!video_scheduler_.get()); | 253 DCHECK(!video_scheduler_.get()); |
| 254 | 254 |
| 255 auth_input_filter_.set_enabled(true); | 255 auth_input_filter_.set_enabled(true); |
| 256 auth_clipboard_filter_.set_enabled(true); | 256 auth_clipboard_filter_.set_enabled(true); |
| 257 | 257 |
| 258 clipboard_echo_filter_.set_client_stub(connection_->client_stub()); | 258 clipboard_echo_filter_.set_client_stub(connection_->client_stub()); |
| 259 mouse_clamping_filter_.set_video_stub(connection_->video_stub()); | 259 mouse_clamping_filter_.set_video_sender(connection_->video_sender()); |
| 260 | 260 |
| 261 if (max_duration_ > base::TimeDelta()) { | 261 if (max_duration_ > base::TimeDelta()) { |
| 262 // TODO(simonmorris): Let Disconnect() tell the client that the | 262 // TODO(simonmorris): Let Disconnect() tell the client that the |
| 263 // disconnection was caused by the session exceeding its maximum duration. | 263 // disconnection was caused by the session exceeding its maximum duration. |
| 264 max_duration_timer_.Start(FROM_HERE, max_duration_, | 264 max_duration_timer_.Start(FROM_HERE, max_duration_, |
| 265 this, &ClientSession::DisconnectSession); | 265 this, &ClientSession::DisconnectSession); |
| 266 } | 266 } |
| 267 | 267 |
| 268 // Disconnect the session if the connection was rejected by the host. | 268 // Disconnect the session if the connection was rejected by the host. |
| 269 if (!event_handler_->OnSessionAuthenticated(this)) { | 269 if (!event_handler_->OnSessionAuthenticated(this)) { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 return make_scoped_ptr(new AudioEncoderVerbatim()); | 513 return make_scoped_ptr(new AudioEncoderVerbatim()); |
| 514 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { | 514 } else if (audio_config.codec == protocol::ChannelConfig::CODEC_OPUS) { |
| 515 return make_scoped_ptr(new AudioEncoderOpus()); | 515 return make_scoped_ptr(new AudioEncoderOpus()); |
| 516 } | 516 } |
| 517 | 517 |
| 518 NOTREACHED(); | 518 NOTREACHED(); |
| 519 return nullptr; | 519 return nullptr; |
| 520 } | 520 } |
| 521 | 521 |
| 522 } // namespace remoting | 522 } // namespace remoting |
| OLD | NEW |