Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: base/process_util.h

Issue 501138: Mac: Create a pid->task_t mapping in the browser process. (Closed)
Patch Set: trunglify Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process_util_mac.mm » ('j') | chrome/browser/mach_broker_mac.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util.h
diff --git a/base/process_util.h b/base/process_util.h
index 2bb53964cfc1d759559608f7c203d011d54d4268..cec37bdfcaef3a84c997c0cc1e94f9823168bd90 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;
};
« no previous file with comments | « no previous file | base/process_util_mac.mm » ('j') | chrome/browser/mach_broker_mac.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698