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/desktop_session_win.h" | 5 #include "remoting/host/desktop_session_win.h" |
6 | 6 |
7 #include <objbase.h> | 7 #include <objbase.h> |
8 #include <sddl.h> | 8 #include <sddl.h> |
9 | 9 |
10 #include <limits> | 10 #include <limits> |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 597 |
598 return handled; | 598 return handled; |
599 } | 599 } |
600 | 600 |
601 void DesktopSessionWin::OnPermanentError(int exit_code) { | 601 void DesktopSessionWin::OnPermanentError(int exit_code) { |
602 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 602 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
603 | 603 |
604 TerminateSession(); | 604 TerminateSession(); |
605 } | 605 } |
606 | 606 |
| 607 void DesktopSessionWin::OnWorkerProcessStopped(int exit_code) {} |
| 608 |
607 void DesktopSessionWin::OnSessionAttached(uint32_t session_id) { | 609 void DesktopSessionWin::OnSessionAttached(uint32_t session_id) { |
608 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 610 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
609 DCHECK(!launcher_); | 611 DCHECK(!launcher_); |
610 DCHECK(monitoring_notifications_); | 612 DCHECK(monitoring_notifications_); |
611 | 613 |
612 ReportElapsedTime("attached"); | 614 ReportElapsedTime("attached"); |
613 | 615 |
614 // Launch elevated on Win8+ to enable injection of Alt+Tab and Ctrl+Alt+Del. | 616 // Launch elevated on Win8+ to enable injection of Alt+Tab and Ctrl+Alt+Del. |
615 bool launch_elevated = base::win::GetVersion() >= base::win::VERSION_WIN8; | 617 bool launch_elevated = base::win::GetVersion() >= base::win::VERSION_WIN8; |
616 | 618 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 exploded.hour, | 702 exploded.hour, |
701 exploded.minute, | 703 exploded.minute, |
702 exploded.second, | 704 exploded.second, |
703 exploded.millisecond, | 705 exploded.millisecond, |
704 passed.c_str()); | 706 passed.c_str()); |
705 | 707 |
706 last_timestamp_ = now; | 708 last_timestamp_ = now; |
707 } | 709 } |
708 | 710 |
709 } // namespace remoting | 711 } // namespace remoting |
OLD | NEW |