Chromium Code Reviews| 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_ |