diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-21 17:44:20 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-21 17:44:20 +0000 |
commit | b2e8e08818f3542c9043aececfbc913499226183 (patch) | |
tree | 84f4bcf67581c8239424420ba831aa8031db382f /base/process_util.h | |
parent | 6b4a530327976d8717dd007cf1403ee453148856 (diff) | |
download | chromium_src-b2e8e08818f3542c9043aececfbc913499226183.zip chromium_src-b2e8e08818f3542c9043aececfbc913499226183.tar.gz chromium_src-b2e8e08818f3542c9043aececfbc913499226183.tar.bz2 |
Mac: Create a pid->task_t mapping in the browser process.
Since nothing writes to this map in the browser atm, this does not have any visible effect.
BUG=13156,25454
TEST=unittest
Review URL: http://codereview.chromium.org/501138
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/process_util.h b/base/process_util.h index 2bb5396..cec37bd 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -369,9 +369,10 @@ class ProcessMetrics { #else class PortProvider { public: - // Should return the mach task for |process| if possible, or else 0. Only - // processes that this returns tasks for will have metrics on OS X (except - // for the current process, which always gets metrics). + // Should return the mach task for |process| if possible, or else + // |MACH_PORT_NULL|. Only processes that this returns tasks for will have + // metrics on OS X (except for the current process, which always gets + // metrics). virtual mach_port_t TaskForPid(ProcessHandle process) const = 0; }; |