| 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 <limits> | 7 #include <limits> |
| 8 #include <sddl.h> | 8 #include <sddl.h> |
| 9 | 9 |
| 10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 } | 200 } |
| 201 | 201 |
| 202 RdpSession::RdpSession( | 202 RdpSession::RdpSession( |
| 203 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, | 203 scoped_refptr<AutoThreadTaskRunner> caller_task_runner, |
| 204 scoped_refptr<AutoThreadTaskRunner> io_task_runner, | 204 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
| 205 DaemonProcess* daemon_process, | 205 DaemonProcess* daemon_process, |
| 206 int id, | 206 int id, |
| 207 WtsTerminalMonitor* monitor) | 207 WtsTerminalMonitor* monitor) |
| 208 : DesktopSessionWin(caller_task_runner, io_task_runner, daemon_process, id, | 208 : DesktopSessionWin(caller_task_runner, io_task_runner, daemon_process, id, |
| 209 monitor), | 209 monitor), |
| 210 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 210 weak_factory_(this) { |
| 211 } | 211 } |
| 212 | 212 |
| 213 RdpSession::~RdpSession() { | 213 RdpSession::~RdpSession() { |
| 214 } | 214 } |
| 215 | 215 |
| 216 bool RdpSession::Initialize(const ScreenResolution& resolution) { | 216 bool RdpSession::Initialize(const ScreenResolution& resolution) { |
| 217 DCHECK(caller_task_runner()->BelongsToCurrentThread()); | 217 DCHECK(caller_task_runner()->BelongsToCurrentThread()); |
| 218 | 218 |
| 219 // Create the RDP wrapper object. | 219 // Create the RDP wrapper object. |
| 220 HRESULT result = rdp_desktop_session_.CreateInstance( | 220 HRESULT result = rdp_desktop_session_.CreateInstance( |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 } | 554 } |
| 555 | 555 |
| 556 void DesktopSessionWin::CrashDesktopProcess( | 556 void DesktopSessionWin::CrashDesktopProcess( |
| 557 const tracked_objects::Location& location) { | 557 const tracked_objects::Location& location) { |
| 558 DCHECK(caller_task_runner_->BelongsToCurrentThread()); | 558 DCHECK(caller_task_runner_->BelongsToCurrentThread()); |
| 559 | 559 |
| 560 launcher_->Crash(location); | 560 launcher_->Crash(location); |
| 561 } | 561 } |
| 562 | 562 |
| 563 } // namespace remoting | 563 } // namespace remoting |
| OLD | NEW |