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

Unified Diff: webkit/plugins/ppapi/file_type_conversion.h

Issue 7038032: Fix PP_FileOpenFlags_Dev handling: (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rename PLATFORM_FILE_TRUNCATE to PLATFORM_FILE_OPEN_TRUNCATED Created 9 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
Index: webkit/plugins/ppapi/file_type_conversion.h
diff --git a/webkit/plugins/ppapi/file_type_conversion.h b/webkit/plugins/ppapi/file_type_conversion.h
new file mode 100644
index 0000000000000000000000000000000000000000..02518e6fb2406b8cb3bd1eb51c27f6bd9f788893
--- /dev/null
+++ b/webkit/plugins/ppapi/file_type_conversion.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_FILE_TYPE_CONVERSION_H_
+#define WEBKIT_PLUGINS_PPAPI_FILE_TYPE_CONVERSION_H_
darin (slow to review) 2011/05/21 04:32:25 nit: conversion -> conversions ... since this file
yzshen1 2011/05/23 00:53:01 Done.
+
+#include "base/platform_file.h"
+#include "ppapi/c/pp_stdint.h"
+
+namespace webkit {
+namespace ppapi {
+
+int PlatformFileErrorToPepperError(base::PlatformFileError error_code);
+
+// Converts a PP_FileOpenFlags_Dev flag combination into a corresponding
+// PlatformFileFlags flag combination.
+// Returns |true| if okay.
+bool PepperFileOpenFlagsToPlatformFileFlags(int32_t pp_open_flags,
+ int* flags_out);
+
+} // namespace ppapi
+} // namespace webkit
+
+#endif // WEBKIT_PLUGINS_PPAPI_FILE_TYPE_CONVERSION_H_

Powered by Google App Engine
This is Rietveld 408576698