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

Unified Diff: mojo/platform_handle/platform_handle.h

Issue 1113393002: Adds thunks for getting platform handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows Created 5 years, 8 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 | « mojo/platform_handle/BUILD.gn ('k') | mojo/platform_handle/platform_handle_exports.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/platform_handle/platform_handle.h
diff --git a/mojo/platform_handle/platform_handle.h b/mojo/platform_handle/platform_handle.h
new file mode 100644
index 0000000000000000000000000000000000000000..5facce3815339c48c8c1fa1b4eed3736a68cfd06
--- /dev/null
+++ b/mojo/platform_handle/platform_handle.h
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_H_
+#define MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_H_
+
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
+#include <windows.h>
+#endif
+
+#if defined(OS_WIN)
+using MojoPlatformHandle = HANDLE;
+#elif defined(OS_POSIX)
+using MojoPlatformHandle = int;
+#endif
+
+#endif // MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_FUNCTIONS_H_
« no previous file with comments | « mojo/platform_handle/BUILD.gn ('k') | mojo/platform_handle/platform_handle_exports.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698