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

Unified Diff: ppapi/shared_impl/file_type_conversion.h

Issue 16140025: Pepper: Refactor FileInfo conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix yzshen's comments. Created 7 years, 6 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 | « content/renderer/pepper/pepper_file_io_host.cc ('k') | ppapi/shared_impl/file_type_conversion.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/file_type_conversion.h
diff --git a/ppapi/shared_impl/file_type_conversion.h b/ppapi/shared_impl/file_type_conversion.h
index eb6cb56e96da2d62ed00f84ead96adc370a410f8..c41b79b7ddb5b96823fb2f31ddd7f11fa8c76fac 100644
--- a/ppapi/shared_impl/file_type_conversion.h
+++ b/ppapi/shared_impl/file_type_conversion.h
@@ -6,7 +6,9 @@
#define PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_
#include "base/platform_file.h"
+#include "ppapi/c/pp_file_info.h"
#include "ppapi/c/pp_stdint.h"
+#include "ppapi/c/ppb_file_system.h"
#include "ppapi/shared_impl/ppapi_shared_export.h"
namespace ppapi {
@@ -21,6 +23,11 @@ PPAPI_SHARED_EXPORT bool PepperFileOpenFlagsToPlatformFileFlags(
int32_t pp_open_flags,
int* flags_out);
+PPAPI_SHARED_EXPORT void PlatformFileInfoToPepperFileInfo(
+ const base::PlatformFileInfo& info,
+ PP_FileSystemType fs_type,
+ PP_FileInfo* info_out);
+
} // namespace ppapi
#endif // PPAPI_SHARED_IMPL_FILE_TYPE_CONVERSION_H_
« no previous file with comments | « content/renderer/pepper/pepper_file_io_host.cc ('k') | ppapi/shared_impl/file_type_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698