| Index: base/process/process_iterator.h
|
| diff --git a/base/process/process_iterator.h b/base/process/process_iterator.h
|
| index ec6500e653cfbf2e6ff3240a9ea59857c7d1e64c..d024d08475a86c19b9b906e74179683238c0211f 100644
|
| --- a/base/process/process_iterator.h
|
| +++ b/base/process/process_iterator.h
|
| @@ -17,10 +17,7 @@
|
| #include "base/process/process.h"
|
| #include "build/build_config.h"
|
|
|
| -#if defined(OS_WIN)
|
| -#include <windows.h>
|
| -#include <tlhelp32.h>
|
| -#elif defined(OS_MACOSX) || defined(OS_OPENBSD)
|
| +#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
| #include <sys/sysctl.h>
|
| #elif defined(OS_FREEBSD)
|
| #include <sys/user.h>
|
| @@ -30,13 +27,7 @@
|
|
|
| namespace base {
|
|
|
| -#if defined(OS_WIN)
|
| -struct ProcessEntry : public PROCESSENTRY32 {
|
| - ProcessId pid() const { return th32ProcessID; }
|
| - ProcessId parent_pid() const { return th32ParentProcessID; }
|
| - const wchar_t* exe_file() const { return szExeFile; }
|
| -};
|
| -#elif defined(OS_POSIX)
|
| +#if defined(OS_POSIX)
|
| struct BASE_EXPORT ProcessEntry {
|
| ProcessEntry();
|
| ~ProcessEntry();
|
| @@ -103,10 +94,7 @@ class BASE_EXPORT ProcessIterator {
|
| // use with Process32First/Process32Next.
|
| void InitProcessEntry(ProcessEntry* entry);
|
|
|
| -#if defined(OS_WIN)
|
| - HANDLE snapshot_;
|
| - bool started_iteration_;
|
| -#elif defined(OS_MACOSX) || defined(OS_BSD)
|
| +#if defined(OS_MACOSX) || defined(OS_BSD)
|
| std::vector<kinfo_proc> kinfo_procs_;
|
| size_t index_of_kinfo_proc_;
|
| #elif defined(OS_POSIX)
|
|
|