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

Unified Diff: ppapi/api/private/pp_file_handle.idl

Issue 10824048: Factor out PP_FileHandle from ppb_flash_file into its (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/pp_file_handle.idl
diff --git a/ppapi/api/private/pp_file_handle.idl b/ppapi/api/private/pp_file_handle.idl
new file mode 100644
index 0000000000000000000000000000000000000000..07bb74b7e826c01cabef8592d578b0f8372a62bb
--- /dev/null
+++ b/ppapi/api/private/pp_file_handle.idl
@@ -0,0 +1,22 @@
+/* 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.
+ */
+
+/**
+ * This file provides support for native OS file handles.
+ */
+
+#inline c
+
+#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
+
+#endinl
« no previous file with comments | « no previous file | ppapi/c/private/pp_file_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698