Index: base/process/kill.h |
diff --git a/base/process/kill.h b/base/process/kill.h |
index de72d7a8dca6936fa4034b6237da2107d2db0a0a..7c4cc718e84a3a1849c945f266b0ddd1e4a044b9 100644 |
--- a/base/process/kill.h |
+++ b/base/process/kill.h |
@@ -50,6 +50,14 @@ BASE_EXPORT bool KillProcesses(const FilePath::StringType& executable_name, |
// Returns true if this is successful, false otherwise. |
BASE_EXPORT bool KillProcess(ProcessHandle process, int exit_code, bool wait); |
+#if defined(OS_WIN) |
+// Attempts to kill all processes associated with the job identified by the |
+// given job handle, giving them the specified exit code. If |wait| is true, |
+// wait for the job to be actually terminated before returning. |
+// Returns true if this is successful, false otherwise. |
+BASE_EXPORT bool KillJob(HANDLE job, int exit_code, bool wait); |
+#endif // defined(OS_WIN) |
+ |
#if defined(OS_POSIX) |
// Attempts to kill the process group identified by |process_group_id|. Returns |
// true on success. |