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

Unified Diff: base/process/process_iterator.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/process/process_info_win.cc ('k') | base/process/process_iterator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « base/process/process_info_win.cc ('k') | base/process/process_iterator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698