| 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 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 mouse_shape_pump_.reset(); | 349 mouse_shape_pump_.reset(); |
| 350 client_clipboard_factory_.InvalidateWeakPtrs(); | 350 client_clipboard_factory_.InvalidateWeakPtrs(); |
| 351 input_injector_.reset(); | 351 input_injector_.reset(); |
| 352 screen_controls_.reset(); | 352 screen_controls_.reset(); |
| 353 desktop_environment_.reset(); | 353 desktop_environment_.reset(); |
| 354 | 354 |
| 355 // Notify the ChromotingHost that this client is disconnected. | 355 // Notify the ChromotingHost that this client is disconnected. |
| 356 event_handler_->OnSessionClosed(this); | 356 event_handler_->OnSessionClosed(this); |
| 357 } | 357 } |
| 358 | 358 |
| 359 void ClientSession::OnInputEventReceived( | |
| 360 int64_t event_timestamp) { | |
| 361 DCHECK(CalledOnValidThread()); | |
| 362 | |
| 363 if (video_stream_.get()) | |
| 364 video_stream_->OnInputEventReceived(event_timestamp); | |
| 365 } | |
| 366 | |
| 367 void ClientSession::OnRouteChange( | 359 void ClientSession::OnRouteChange( |
| 368 const std::string& channel_name, | 360 const std::string& channel_name, |
| 369 const protocol::TransportRoute& route) { | 361 const protocol::TransportRoute& route) { |
| 370 DCHECK(CalledOnValidThread()); | 362 DCHECK(CalledOnValidThread()); |
| 371 event_handler_->OnSessionRouteChange(this, channel_name, route); | 363 event_handler_->OnSessionRouteChange(this, channel_name, route); |
| 372 } | 364 } |
| 373 | 365 |
| 374 const std::string& ClientSession::client_jid() const { | 366 const std::string& ClientSession::client_jid() const { |
| 375 return client_jid_; | 367 return client_jid_; |
| 376 } | 368 } |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 connection_->client_stub()->SetVideoLayout(layout); | 449 connection_->client_stub()->SetVideoLayout(layout); |
| 458 } else { | 450 } else { |
| 459 pending_video_layout_message_.reset(new protocol::VideoLayout(layout)); | 451 pending_video_layout_message_.reset(new protocol::VideoLayout(layout)); |
| 460 } | 452 } |
| 461 break; | 453 break; |
| 462 } | 454 } |
| 463 } | 455 } |
| 464 } | 456 } |
| 465 | 457 |
| 466 } // namespace remoting | 458 } // namespace remoting |
| OLD | NEW |