| 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/ipc_desktop_environment.h" | 5 #include "remoting/host/ipc_desktop_environment.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/process/process_handle.h" | 12 #include "base/process/process_handle.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "ipc/ipc_channel_handle.h" | 15 #include "ipc/ipc_channel_handle.h" |
| 16 #include "ipc/ipc_sender.h" | 16 #include "ipc/ipc_sender.h" |
| 17 #include "remoting/host/audio_capturer.h" | 17 #include "remoting/host/audio_capturer.h" |
| 18 #include "remoting/host/chromoting_messages.h" | 18 #include "remoting/host/chromoting_messages.h" |
| 19 #include "remoting/host/client_session_control.h" | 19 #include "remoting/host/client_session_control.h" |
| 20 #include "remoting/host/desktop_session.h" | 20 #include "remoting/host/desktop_session.h" |
| 21 #include "remoting/host/desktop_session_proxy.h" | 21 #include "remoting/host/desktop_session_proxy.h" |
| 22 #include "remoting/host/input_injector.h" | 22 #include "remoting/host/input_injector.h" |
| 23 #include "remoting/host/screen_controls.h" | 23 #include "remoting/host/screen_controls.h" |
| 24 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 24 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" | 25 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" |
| 25 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | |
| 26 | 26 |
| 27 namespace remoting { | 27 namespace remoting { |
| 28 | 28 |
| 29 IpcDesktopEnvironment::IpcDesktopEnvironment( | 29 IpcDesktopEnvironment::IpcDesktopEnvironment( |
| 30 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner, |
| 31 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 31 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 32 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 32 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 33 base::WeakPtr<ClientSessionControl> client_session_control, | 33 base::WeakPtr<ClientSessionControl> client_session_control, |
| 34 base::WeakPtr<DesktopSessionConnector> desktop_session_connector, | 34 base::WeakPtr<DesktopSessionConnector> desktop_session_connector, |
| 35 bool virtual_terminal) { | 35 bool virtual_terminal) { |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 if (i != active_connections_.end()) { | 198 if (i != active_connections_.end()) { |
| 199 DesktopSessionProxy* desktop_session_proxy = i->second; | 199 DesktopSessionProxy* desktop_session_proxy = i->second; |
| 200 active_connections_.erase(i); | 200 active_connections_.erase(i); |
| 201 | 201 |
| 202 // Disconnect the client session. | 202 // Disconnect the client session. |
| 203 desktop_session_proxy->DisconnectSession(protocol::OK); | 203 desktop_session_proxy->DisconnectSession(protocol::OK); |
| 204 } | 204 } |
| 205 } | 205 } |
| 206 | 206 |
| 207 } // namespace remoting | 207 } // namespace remoting |
| OLD | NEW |