summaryrefslogtreecommitdiffstats
path: root/chromium/base/process/kill.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/process/kill.h')
-rw-r--r--chromium/base/process/kill.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/base/process/kill.h b/chromium/base/process/kill.h
index 9acfb8a7388..70a04d97e5a 100644
--- a/chromium/base/process/kill.h
+++ b/chromium/base/process/kill.h
@@ -29,6 +29,7 @@ const DWORD kNormalTerminationExitCode = 0;
const DWORD kDebuggerInactiveExitCode = 0xC0000354;
const DWORD kKeyboardInterruptExitCode = 0xC000013A;
const DWORD kDebuggerTerminatedExitCode = 0x40010004;
+const DWORD kStatusInvalidImageHashExitCode = 0xC0000428;
// This exit code is used by the Windows task manager when it kills a
// process. It's value is obviously not that unique, and it's
@@ -46,6 +47,7 @@ const DWORD kProcessKilledExitCode = 1;
// exit code arguments to KillProcess*(), use platform/application
// specific values instead.
enum TerminationStatus {
+ // clang-format off
TERMINATION_STATUS_NORMAL_TERMINATION, // zero exit status
TERMINATION_STATUS_ABNORMAL_TERMINATION, // non-zero exit status
TERMINATION_STATUS_PROCESS_WAS_KILLED, // e.g. SIGKILL or task manager kill
@@ -64,7 +66,12 @@ enum TerminationStatus {
#endif
TERMINATION_STATUS_LAUNCH_FAILED, // child process never launched
TERMINATION_STATUS_OOM, // Process died due to oom
+#if defined(OS_WIN)
+ // On Windows, the OS terminated process due to code integrity failure.
+ TERMINATION_STATUS_INTEGRITY_FAILURE,
+#endif
TERMINATION_STATUS_MAX_ENUM
+ // clang-format on
};
// Attempts to kill all the processes on the current machine that were launched