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

Unified Diff: ppapi/c/private/pp_file_handle.h

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (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
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..74668b337e2ab45f5dae7d74d669ec71e315bf13
--- /dev/null
+++ b/ppapi/c/private/pp_file_handle.h
@@ -0,0 +1,20 @@
+// 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.
+
+#ifndef PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_
+#define PPAPI_C_PRIVATE_PP_FILE_HANDLE_H_
+
+#ifdef _WIN32
+#include <windows.h>
+#endif
+
+#ifdef _WIN32
+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_

Powered by Google App Engine
This is Rietveld 408576698