summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 00:19:17 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-06 00:19:17 +0000
commit5986ed239f7f2fc3f6b1d5f6385819151ae533db (patch)
treea07be3bc493c5dd34c5f62c6195a85c49ec22c2a /base/process_util.h
parent8ad85c0ef39433a26a0093853f34d7eec9be0706 (diff)
downloadchromium_src-5986ed239f7f2fc3f6b1d5f6385819151ae533db.zip
chromium_src-5986ed239f7f2fc3f6b1d5f6385819151ae533db.tar.gz
chromium_src-5986ed239f7f2fc3f6b1d5f6385819151ae533db.tar.bz2
Make ResourceMessageFilter compile on Mac. It stubs out a substantial part of
the printing. It creates new base functions for converting PIDs to handles, and then closing them (since Windows requires this). This also fixes the formatting of image_util. Review URL: http://codereview.chromium.org/20109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9291 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 8c4c5d4..c921d7a 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -66,6 +66,13 @@ int GetCurrentProcId();
// Returns the ProcessHandle of the current process.
ProcessHandle GetCurrentProcessHandle();
+
+// Converts a PID to a process handle. This handle must be closed by
+// CloseProcessHandle when you are done with it.
+ProcessHandle OpenProcessHandle(int pid);
+
+// Closes the process handle opened by OpenProcessHandle.
+void CloseProcessHandle(ProcessHandle process);
// Returns the unique ID for the specified process. This is functionally the
// same as Windows' GetProcessId(), but works on versions of Windows before