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

Unified Diff: base/process_util.h

Issue 18192: Implemented process_util_mac.mm because net_unittests requires those function... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 months 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_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_util.h
===================================================================
--- base/process_util.h (revision 9017)
+++ base/process_util.h (working copy)
@@ -8,8 +8,6 @@
#ifndef BASE_PROCESS_UTIL_H_
#define BASE_PROCESS_UTIL_H_
-#include "base/basictypes.h"
-
#if defined(OS_WIN)
#include <windows.h>
#include <tlhelp32.h>
@@ -20,7 +18,9 @@
#endif
#include <string>
+#include <vector>
+#include "base/basictypes.h"
#include "base/command_line.h"
#include "base/process.h"
@@ -28,6 +28,7 @@
typedef PROCESSENTRY32 ProcessEntry;
typedef IO_COUNTERS IoCounters;
#elif defined(OS_POSIX)
+// TODO(port): we should not rely on Win32 structure.
struct ProcessEntry {
int pid;
int ppid;
@@ -44,6 +45,10 @@
};
#endif
+#if defined(OS_MACOSX)
+struct kinfo_proc;
+#endif
+
namespace base {
// A minimalistic but hopefully cross-platform set of exit codes.
@@ -215,9 +220,9 @@
#elif defined(OS_LINUX)
DIR *procfs_dir_;
#elif defined(OS_MACOSX)
- // probably kvm_t *kvmd_;
+ std::vector<kinfo_proc> kinfo_procs_;
+ size_t index_of_kinfo_proc_;
#endif
-
ProcessEntry entry_;
const ProcessFilter* filter_;
« no previous file with comments | « no previous file | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698