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/process.h" | 12 #include "base/process/process.h" |
13 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "build/build_config.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 | 18 |
18 class ProcessFilter; | 19 class ProcessFilter; |
19 | 20 |
20 // Return status values from GetTerminationStatus. Don't use these as | 21 // Return status values from GetTerminationStatus. Don't use these as |
21 // exit code arguments to KillProcess*(), use platform/application | 22 // exit code arguments to KillProcess*(), use platform/application |
22 // specific values instead. | 23 // specific values instead. |
23 enum TerminationStatus { | 24 enum TerminationStatus { |
24 TERMINATION_STATUS_NORMAL_TERMINATION, // zero exit status | 25 TERMINATION_STATUS_NORMAL_TERMINATION, // zero exit status |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 126 |
126 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 127 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
127 // The nicer version of EnsureProcessTerminated() that is patient and will | 128 // The nicer version of EnsureProcessTerminated() that is patient and will |
128 // wait for |pid| to finish and then reap it. | 129 // wait for |pid| to finish and then reap it. |
129 BASE_EXPORT void EnsureProcessGetsReaped(ProcessId pid); | 130 BASE_EXPORT void EnsureProcessGetsReaped(ProcessId pid); |
130 #endif | 131 #endif |
131 | 132 |
132 } // namespace base | 133 } // namespace base |
133 | 134 |
134 #endif // BASE_PROCESS_KILL_H_ | 135 #endif // BASE_PROCESS_KILL_H_ |
OLD | NEW |