diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 23:28:06 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 23:28:06 +0000 |
commit | eef576fd62fc6be5a23e276353f8cbae217d87ff (patch) | |
tree | 5f492cf31ca5774a1a994c6308b4b520f87e3423 /base/process_util.h | |
parent | 5f8cbd5751a4d2ef52974fa4b4f7ab9943db07d1 (diff) | |
download | chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.zip chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.tar.gz chromium_src-eef576fd62fc6be5a23e276353f8cbae217d87ff.tar.bz2 |
Remove fragile check in DidProcessCrash
- the numbers were out of sync with result_codes.h
- can't use result_codes.h in base project so I extracted
the generic part of it.
Rahul: I hope I don't break installer assumptions here.
Dan: don't feel obligated to review.
Review URL: http://codereview.chromium.org/9012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4519 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/base/process_util.h b/base/process_util.h index 50a5626..3f777a6 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -46,13 +46,22 @@ struct IoCounters { namespace process_util { +// A minimalistic but hopefully cross-platform set of exit codes. +// Do not change the enumeration values or you will break third-party +// installers. +enum { + PROCESS_END_NORMAL_TERMINATON = 0, + PROCESS_END_KILLED_BY_USER = 1, + PROCESS_END_PROCESS_WAS_HUNG = 2 +}; + // Returns the id of the current process. int GetCurrentProcId(); // Returns the ProcessHandle of the current process. ProcessHandle GetCurrentProcessHandle(); -// Returns the unique ID for the specified process. This is functionally the +// Returns the unique ID for the specified process. This is functionally the // same as Windows' GetProcessId(), but works on versions of Windows before // Win XP SP1 as well. int GetProcId(ProcessHandle process); |