1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file.
6 
7 #ifndef BASE_PROCESS_H_
8 #define BASE_PROCESS_H_
9 
10 #include "base/basictypes.h"
11 
12 #include <sys/types.h>
13 #ifdef OS_WIN
14 #  include <windows.h>
15 #endif
16 
17 namespace base {
18 
19 // ProcessHandle is a platform specific type which represents the underlying OS
20 // handle to a process.
21 // ProcessId is a number which identifies the process in the OS.
22 #if defined(OS_WIN)
23 typedef HANDLE ProcessHandle;
24 typedef DWORD ProcessId;
25 #elif defined(OS_POSIX)
26 // On POSIX, our ProcessHandle will just be the PID.
27 typedef pid_t ProcessHandle;
28 typedef pid_t ProcessId;
29 #endif
30 
31 }  // namespace base
32 
33 #endif  // BASE_PROCESS_H_
34