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 #ifndef REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ | 5 #ifndef REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ |
6 #define REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ | 6 #define REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/process.h" | 13 #include "base/process.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "base/timer.h" | 15 #include "base/timer.h" |
| 16 #include "base/win/scoped_handle.h" |
16 #include "base/win/object_watcher.h" | 17 #include "base/win/object_watcher.h" |
17 | 18 |
18 #include "remoting/host/wts_console_observer_win.h" | 19 #include "remoting/host/wts_console_observer_win.h" |
19 | 20 |
20 namespace base { | |
21 namespace win { | |
22 | |
23 class ScopedHandle; | |
24 | |
25 } // namespace win | |
26 } // namespace base | |
27 | |
28 namespace remoting { | 21 namespace remoting { |
29 | 22 |
30 class WtsConsoleMonitor; | 23 class WtsConsoleMonitor; |
31 | 24 |
32 class WtsSessionProcessLauncher | 25 class WtsSessionProcessLauncher |
33 : public base::win::ObjectWatcher::Delegate, | 26 : public base::win::ObjectWatcher::Delegate, |
34 public WtsConsoleObserver { | 27 public WtsConsoleObserver { |
35 public: | 28 public: |
36 // Constructs a WtsSessionProcessLauncher object. |monitor| must outlive this | 29 // Constructs a WtsSessionProcessLauncher object. |monitor| must outlive this |
37 // class. |host_binary| is the name of the executable to be launched in | 30 // class. |host_binary| is the name of the executable to be launched in |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 83 |
91 // Current state of the process launcher. | 84 // Current state of the process launcher. |
92 State state_; | 85 State state_; |
93 | 86 |
94 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher); | 87 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher); |
95 }; | 88 }; |
96 | 89 |
97 } // namespace remoting | 90 } // namespace remoting |
98 | 91 |
99 #endif // REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ | 92 #endif // REMOTING_HOST_WTS_SESSION_PROCESS_LAUNCHER_WIN_H_ |
OLD | NEW |