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_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 5 #ifndef REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
6 #define REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 6 #define REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 |
| 11 #include <memory> |
10 #include <string> | 12 #include <string> |
11 | 13 |
12 #include "base/command_line.h" | 14 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
14 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
15 #include "base/memory/scoped_ptr.h" | |
16 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
17 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
18 | 19 |
19 namespace remoting { | 20 namespace remoting { |
20 | 21 |
21 // This lock should be taken when creating handles that will be inherited by | 22 // This lock should be taken when creating handles that will be inherited by |
22 // a child process. Without it the child process can inherit handles created for | 23 // a child process. Without it the child process can inherit handles created for |
23 // a different child process started at the same time. | 24 // a different child process started at the same time. |
24 extern base::LazyInstance<base::Lock>::Leaky g_inherit_handles_lock; | 25 extern base::LazyInstance<base::Lock>::Leaky g_inherit_handles_lock; |
25 | 26 |
(...skipping 14 matching lines...) Expand all Loading... |
40 SECURITY_ATTRIBUTES* thread_attributes, | 41 SECURITY_ATTRIBUTES* thread_attributes, |
41 bool inherit_handles, | 42 bool inherit_handles, |
42 DWORD creation_flags, | 43 DWORD creation_flags, |
43 const base::char16* desktop_name, | 44 const base::char16* desktop_name, |
44 base::win::ScopedHandle* process_out, | 45 base::win::ScopedHandle* process_out, |
45 base::win::ScopedHandle* thread_out); | 46 base::win::ScopedHandle* thread_out); |
46 | 47 |
47 } // namespace remoting | 48 } // namespace remoting |
48 | 49 |
49 #endif // REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ | 50 #endif // REMOTING_HOST_WIN_LAUNCH_PROCESS_WITH_TOKEN_H_ |
OLD | NEW |