| 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 <sddl.h> | 7 #include <sddl.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 481 |
| 482 } // namespace | 482 } // namespace |
| 483 | 483 |
| 484 // static | 484 // static |
| 485 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForConsole( | 485 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForConsole( |
| 486 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 486 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
| 487 scoped_refptr<AutoThreadTaskRunner> io_task_runner, | 487 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
| 488 DaemonProcess* daemon_process, | 488 DaemonProcess* daemon_process, |
| 489 int id, | 489 int id, |
| 490 const ScreenResolution& resolution) { | 490 const ScreenResolution& resolution) { |
| 491 return base::WrapUnique(new ConsoleSession(caller_task_runner, io_task_runner, | 491 return base::MakeUnique<ConsoleSession>(caller_task_runner, io_task_runner, |
| 492 daemon_process, id, | 492 daemon_process, id, |
| 493 HostService::GetInstance())); | 493 HostService::GetInstance()); |
| 494 } | 494 } |
| 495 | 495 |
| 496 // static | 496 // static |
| 497 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForVirtualTerminal( | 497 std::unique_ptr<DesktopSession> DesktopSessionWin::CreateForVirtualTerminal( |
| 498 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 498 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
| 499 scoped_refptr<AutoThreadTaskRunner> io_task_runner, | 499 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
| 500 DaemonProcess* daemon_process, | 500 DaemonProcess* daemon_process, |
| 501 int id, | 501 int id, |
| 502 const ScreenResolution& resolution) { | 502 const ScreenResolution& resolution) { |
| 503 std::unique_ptr<RdpSession> session( | 503 std::unique_ptr<RdpSession> session( |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 exploded.hour, | 716 exploded.hour, |
| 717 exploded.minute, | 717 exploded.minute, |
| 718 exploded.second, | 718 exploded.second, |
| 719 exploded.millisecond, | 719 exploded.millisecond, |
| 720 passed.c_str()); | 720 passed.c_str()); |
| 721 | 721 |
| 722 last_timestamp_ = now; | 722 last_timestamp_ = now; |
| 723 } | 723 } |
| 724 | 724 |
| 725 } // namespace remoting | 725 } // namespace remoting |
| OLD | NEW |