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/logging.h" | 7 #include "base/logging.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/win/scoped_handle.h" |
9 | 10 |
10 namespace remoting { | 11 namespace remoting { |
11 | 12 |
12 class DaemonProcessWin : public DaemonProcess { | 13 class DaemonProcessWin : public DaemonProcess { |
13 public: | 14 public: |
14 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 15 DaemonProcessWin(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
15 const base::Closure& stopped_callback); | 16 const base::Closure& stopped_callback); |
16 virtual ~DaemonProcessWin(); | 17 virtual ~DaemonProcessWin(); |
17 | 18 |
18 // DaemonProcess implementation. | 19 // DaemonProcess implementation. |
(...skipping 19 matching lines...) Expand all Loading... |
38 | 39 |
39 scoped_ptr<DaemonProcess> DaemonProcess::Create( | 40 scoped_ptr<DaemonProcess> DaemonProcess::Create( |
40 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 41 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
41 const base::Closure& stopped_callback) { | 42 const base::Closure& stopped_callback) { |
42 scoped_ptr<DaemonProcessWin> daemon_process( | 43 scoped_ptr<DaemonProcessWin> daemon_process( |
43 new DaemonProcessWin(main_task_runner, stopped_callback)); | 44 new DaemonProcessWin(main_task_runner, stopped_callback)); |
44 return daemon_process.PassAs<DaemonProcess>(); | 45 return daemon_process.PassAs<DaemonProcess>(); |
45 } | 46 } |
46 | 47 |
47 } // namespace remoting | 48 } // namespace remoting |
OLD | NEW |