Index: ppapi/c/private/pp_file_handle.h |
diff --git a/ppapi/c/private/pp_file_handle.h b/ppapi/c/private/pp_file_handle.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..86d8984fb125f69f299f569177d6a3176fc7dc99 |
--- /dev/null |
+++ b/ppapi/c/private/pp_file_handle.h |
@@ -0,0 +1,31 @@ |
+/* Copyright (c) 2012 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. |
+ */ |
+ |
+/* From private/pp_file_handle.idl modified Thu Jul 26 10:46:37 2012. */ |
+ |
+#ifndef PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_ |
+#define PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_ |
+ |
+#include "ppapi/c/pp_macros.h" |
+ |
+/** |
+ * @file |
+ * This file provides support for native OS file handles. |
+ */ |
+ |
+ |
+ |
+#ifdef _WIN32 |
+#include<windows.h> |
+typedef HANDLE PP_FileHandle; |
+static const PP_FileHandle PP_kInvalidFileHandle = NULL; |
+ |
+#else |
+typedef int PP_FileHandle; |
+static const PP_FileHandle PP_kInvalidFileHandle = -1; |
+#endif |
+ |
+#endif /* PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_ */ |
+ |