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

Unified Diff: base/process/process_handle.h

Issue 2692273008: Hacky slashy (Closed)
Patch Set: rebase on config CL, and minor fixes Created 3 years, 7 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 | « base/process/process_fuchsia.cc ('k') | base/process/process_handle_fuchsia.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 ef7a6025525efeb6d56f1be0278f67f94b7c49ac..d3bfc9df8026757237ec926409a035c02c835f8f 100644
--- a/base/process/process_handle.h
+++ b/base/process/process_handle.h
@@ -16,6 +16,10 @@
#include <windows.h>
#endif
+#if defined(OS_FUCHSIA)
+#include <magenta/types.h>
+#endif
+
namespace base {
// ProcessHandle is a platform specific type which represents the underlying OS
@@ -27,6 +31,11 @@ typedef DWORD ProcessId;
typedef HANDLE UserTokenHandle;
const ProcessHandle kNullProcessHandle = NULL;
const ProcessId kNullProcessId = 0;
+#elif defined(OS_FUCHSIA)
+typedef mx_handle_t ProcessHandle;
+typedef mx_koid_t ProcessId;
+const ProcessHandle kNullProcessHandle = MX_HANDLE_INVALID;
+const ProcessId kNullProcessId = MX_KOID_INVALID;
#elif defined(OS_POSIX)
// On POSIX, our ProcessHandle will just be the PID.
typedef pid_t ProcessHandle;
« no previous file with comments | « base/process/process_fuchsia.cc ('k') | base/process/process_handle_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698