| 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/win/session_desktop_environment.h" | 5 #include "remoting/host/win/session_desktop_environment.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "remoting/host/audio_capturer.h" | 12 #include "remoting/host/audio_capturer.h" |
| 13 #include "remoting/host/input_injector.h" | 13 #include "remoting/host/input_injector.h" |
| 14 #include "remoting/host/screen_controls.h" | 14 #include "remoting/host/screen_controls.h" |
| 15 #include "remoting/host/win/session_input_injector.h" | 15 #include "remoting/host/win/session_input_injector.h" |
| 16 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | 16 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 17 | 17 |
| 18 namespace remoting { | 18 namespace remoting { |
| 19 | 19 |
| 20 SessionDesktopEnvironment::~SessionDesktopEnvironment() {} | 20 SessionDesktopEnvironment::~SessionDesktopEnvironment() {} |
| 21 | 21 |
| 22 std::unique_ptr<InputInjector> | 22 std::unique_ptr<InputInjector> |
| 23 SessionDesktopEnvironment::CreateInputInjector() { | 23 SessionDesktopEnvironment::CreateInputInjector() { |
| 24 DCHECK(caller_task_runner()->BelongsToCurrentThread()); | 24 DCHECK(caller_task_runner()->BelongsToCurrentThread()); |
| 25 | 25 |
| 26 return base::MakeUnique<SessionInputInjectorWin>( | 26 return base::MakeUnique<SessionInputInjectorWin>( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 inject_sas_, lock_workstation_)); | 72 inject_sas_, lock_workstation_)); |
| 73 if (!desktop_environment->InitializeSecurity(client_session_control, | 73 if (!desktop_environment->InitializeSecurity(client_session_control, |
| 74 curtain_enabled())) { | 74 curtain_enabled())) { |
| 75 return nullptr; | 75 return nullptr; |
| 76 } | 76 } |
| 77 | 77 |
| 78 return std::move(desktop_environment); | 78 return std::move(desktop_environment); |
| 79 } | 79 } |
| 80 | 80 |
| 81 } // namespace remoting | 81 } // namespace remoting |
| OLD | NEW |