diff options
author | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 01:04:18 +0000 |
---|---|---|
committer | paulg@google.com <paulg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 01:04:18 +0000 |
commit | 6165906b8ae55cb5ea25923ca42d76d88b358bd4 (patch) | |
tree | 4c087e51bded2816f06efddc746b550195151e66 /base/process.h | |
parent | 2008f1b6246c718c83d60ea2575273688c2d7aea (diff) | |
download | chromium_src-6165906b8ae55cb5ea25923ca42d76d88b358bd4.zip chromium_src-6165906b8ae55cb5ea25923ca42d76d88b358bd4.tar.gz chromium_src-6165906b8ae55cb5ea25923ca42d76d88b358bd4.tar.bz2 |
Bring in more files from the mac july branch.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process.h')
-rw-r--r-- | base/process.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/base/process.h b/base/process.h index b8ea94f..5c07442 100644 --- a/base/process.h +++ b/base/process.h @@ -30,14 +30,17 @@ #ifndef BASE_PROCESS_H__ #define BASE_PROCESS_H__ -#include <windows.h> #include "base/basictypes.h" +#ifdef OS_WIN +#include <windows.h> +#endif + // ProcessHandle is a platform specific type which represents the underlying OS // handle to a process. -#ifdef WIN32 +#if defined(OS_WIN) typedef HANDLE ProcessHandle; -#else +#elif defined(OS_POSIX) typedef int ProcessHandle; #endif @@ -65,7 +68,9 @@ class Process { // Close the Process Handle. void Close() { +#ifdef OS_WIN CloseHandle(process_); +#endif process_ = 0; } |