OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // This file contains routines to kill processes and get the exit code and | 5 // This file contains routines to kill processes and get the exit code and |
6 // termination status. | 6 // termination status. |
7 | 7 |
8 #ifndef BASE_PROCESS_KILL_H_ | 8 #ifndef BASE_PROCESS_KILL_H_ |
9 #define BASE_PROCESS_KILL_H_ | 9 #define BASE_PROCESS_KILL_H_ |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/process.h" | 12 #include "base/process/process_handle.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 | 16 |
17 class ProcessFilter; | 17 class ProcessFilter; |
18 | 18 |
19 // Return status values from GetTerminationStatus. Don't use these as | 19 // Return status values from GetTerminationStatus. Don't use these as |
20 // exit code arguments to KillProcess*(), use platform/application | 20 // exit code arguments to KillProcess*(), use platform/application |
21 // specific values instead. | 21 // specific values instead. |
22 enum TerminationStatus { | 22 enum TerminationStatus { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 136 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
137 // The nicer version of EnsureProcessTerminated() that is patient and will | 137 // The nicer version of EnsureProcessTerminated() that is patient and will |
138 // wait for |process_handle| to finish and then reap it. | 138 // wait for |process_handle| to finish and then reap it. |
139 BASE_EXPORT void EnsureProcessGetsReaped(ProcessHandle process_handle); | 139 BASE_EXPORT void EnsureProcessGetsReaped(ProcessHandle process_handle); |
140 #endif | 140 #endif |
141 | 141 |
142 } // namespace base | 142 } // namespace base |
143 | 143 |
144 #endif // BASE_PROCESS_KILL_H_ | 144 #endif // BASE_PROCESS_KILL_H_ |
OLD | NEW |