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

Unified Diff: base/process/process_handle.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.h ('k') | base/process/process_handle_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_handle.h
diff --git a/base/process/process_handle.h b/base/process/process_handle.h
index 77f2c585cfcc71087596855fa6f83ac643ce9a6c..3d6cf1e5c6921d244f5852bf3a38a7c23f3319bc 100644
--- a/base/process/process_handle.h
+++ b/base/process/process_handle.h
@@ -11,28 +11,19 @@
#include "build/build_config.h"
#include <sys/types.h>
-#if defined(OS_WIN)
-#include <windows.h>
-#endif
namespace base {
// ProcessHandle is a platform specific type which represents the underlying OS
// handle to a process.
// ProcessId is a number which identifies the process in the OS.
-#if defined(OS_WIN)
-typedef HANDLE ProcessHandle;
-typedef DWORD ProcessId;
-typedef HANDLE UserTokenHandle;
-const ProcessHandle kNullProcessHandle = NULL;
-const ProcessId kNullProcessId = 0;
-#elif defined(OS_POSIX)
+#if defined(OS_POSIX)
// On POSIX, our ProcessHandle will just be the PID.
typedef pid_t ProcessHandle;
typedef pid_t ProcessId;
const ProcessHandle kNullProcessHandle = 0;
const ProcessId kNullProcessId = 0;
-#endif // defined(OS_WIN)
+#endif // defined(OS_POSIX)
// Returns the id of the current process.
BASE_EXPORT ProcessId GetCurrentProcId();
« no previous file with comments | « base/process/process.h ('k') | base/process/process_handle_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698