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_factory.h" | 5 #include "remoting/host/ipc_desktop_environment_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ipc/ipc_channel_proxy.h" | 9 #include "ipc/ipc_channel_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "remoting/capturer/video_frame_capturer.h" |
11 #include "remoting/host/audio_capturer.h" | 12 #include "remoting/host/audio_capturer.h" |
12 #include "remoting/host/chromoting_host.h" | 13 #include "remoting/host/chromoting_host.h" |
13 #include "remoting/host/chromoting_host_context.h" | 14 #include "remoting/host/chromoting_host_context.h" |
14 #include "remoting/host/chromoting_messages.h" | 15 #include "remoting/host/chromoting_messages.h" |
15 #include "remoting/host/desktop_session_connector.h" | 16 #include "remoting/host/desktop_session_connector.h" |
16 #include "remoting/host/desktop_session_proxy.h" | 17 #include "remoting/host/desktop_session_proxy.h" |
17 #include "remoting/host/event_executor.h" | 18 #include "remoting/host/event_executor.h" |
18 #include "remoting/host/ipc_desktop_environment.h" | 19 #include "remoting/host/ipc_desktop_environment.h" |
19 #include "remoting/host/video_frame_capturer.h" | |
20 | 20 |
21 namespace remoting { | 21 namespace remoting { |
22 | 22 |
23 IpcDesktopEnvironmentFactory::IpcDesktopEnvironmentFactory( | 23 IpcDesktopEnvironmentFactory::IpcDesktopEnvironmentFactory( |
24 IPC::ChannelProxy* daemon_channel, | 24 IPC::ChannelProxy* daemon_channel, |
25 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 25 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
26 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, | 26 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner, |
27 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 27 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
28 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner) | 28 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner) |
29 : DesktopEnvironmentFactory(input_task_runner, ui_task_runner), | 29 : DesktopEnvironmentFactory(input_task_runner, ui_task_runner), |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 if (i != active_connections_.end()) { | 120 if (i != active_connections_.end()) { |
121 IpcDesktopEnvironment* desktop_environment = i->second; | 121 IpcDesktopEnvironment* desktop_environment = i->second; |
122 active_connections_.erase(i); | 122 active_connections_.erase(i); |
123 | 123 |
124 // Disconnect the client for the given desktop environment. | 124 // Disconnect the client for the given desktop environment. |
125 desktop_environment->DisconnectClient(); | 125 desktop_environment->DisconnectClient(); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 } // namespace remoting | 129 } // namespace remoting |
OLD | NEW |