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/daemon_process.h" | 5 #include "remoting/host/daemon_process.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/process.h" | 14 #include "base/process.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/strings/utf_string_conversions.h" |
16 #include "base/time.h" | 17 #include "base/time.h" |
17 #include "base/timer.h" | 18 #include "base/timer.h" |
18 #include "base/utf_string_conversions.h" | |
19 #include "base/win/scoped_handle.h" | 19 #include "base/win/scoped_handle.h" |
20 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
21 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
22 #include "remoting/base/auto_thread_task_runner.h" | 22 #include "remoting/base/auto_thread_task_runner.h" |
23 #include "remoting/host/chromoting_messages.h" | 23 #include "remoting/host/chromoting_messages.h" |
24 #include "remoting/host/desktop_session_win.h" | 24 #include "remoting/host/desktop_session_win.h" |
25 #include "remoting/host/host_exit_codes.h" | 25 #include "remoting/host/host_exit_codes.h" |
26 #include "remoting/host/host_main.h" | 26 #include "remoting/host/host_main.h" |
27 #include "remoting/host/ipc_constants.h" | 27 #include "remoting/host/ipc_constants.h" |
28 #include "remoting/host/screen_resolution.h" | 28 #include "remoting/host/screen_resolution.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 scoped_refptr<AutoThreadTaskRunner> io_task_runner, | 194 scoped_refptr<AutoThreadTaskRunner> io_task_runner, |
195 const base::Closure& stopped_callback) { | 195 const base::Closure& stopped_callback) { |
196 scoped_ptr<DaemonProcessWin> daemon_process( | 196 scoped_ptr<DaemonProcessWin> daemon_process( |
197 new DaemonProcessWin(caller_task_runner, io_task_runner, | 197 new DaemonProcessWin(caller_task_runner, io_task_runner, |
198 stopped_callback)); | 198 stopped_callback)); |
199 daemon_process->Initialize(); | 199 daemon_process->Initialize(); |
200 return daemon_process.PassAs<DaemonProcess>(); | 200 return daemon_process.PassAs<DaemonProcess>(); |
201 } | 201 } |
202 | 202 |
203 } // namespace remoting | 203 } // namespace remoting |
OLD | NEW |