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

Unified Diff: ppapi/shared_impl/file_type_conversion.cc

Issue 304513007: Remove PlatformFile from ppapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ppapi/proxy/serialized_handle.cc ('k') | ppapi/shared_impl/platform_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/file_type_conversion.cc
diff --git a/ppapi/shared_impl/file_type_conversion.cc b/ppapi/shared_impl/file_type_conversion.cc
index 0b94725cc114d9ec3ebaa4c24adf5e5cfe3240f2..8d7eaf3ca4a2e806102b054aec9245fe05ddfe69 100644
--- a/ppapi/shared_impl/file_type_conversion.cc
+++ b/ppapi/shared_impl/file_type_conversion.cc
@@ -5,7 +5,6 @@
#include "ppapi/shared_impl/file_type_conversion.h"
#include "base/logging.h"
-#include "base/platform_file.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/ppb_file_io.h"
#include "ppapi/shared_impl/time_conversion.h"
@@ -46,17 +45,17 @@ bool PepperFileOpenFlagsToPlatformFileFlags(int32_t pp_open_flags,
bool pp_append = !!(pp_open_flags & PP_FILEOPENFLAG_APPEND);
// Pepper allows Touch on any open file, so always set this Windows-only flag.
- int flags = base::PLATFORM_FILE_WRITE_ATTRIBUTES;
+ int flags = base::File::FLAG_WRITE_ATTRIBUTES;
if (pp_read)
- flags |= base::PLATFORM_FILE_READ;
+ flags |= base::File::FLAG_READ;
if (pp_write) {
- flags |= base::PLATFORM_FILE_WRITE;
+ flags |= base::File::FLAG_WRITE;
}
if (pp_append) {
if (pp_write)
return false;
- flags |= base::PLATFORM_FILE_APPEND;
+ flags |= base::File::FLAG_APPEND;
}
if (pp_truncate && !pp_write)
@@ -64,16 +63,16 @@ bool PepperFileOpenFlagsToPlatformFileFlags(int32_t pp_open_flags,
if (pp_create) {
if (pp_exclusive) {
- flags |= base::PLATFORM_FILE_CREATE;
+ flags |= base::File::FLAG_CREATE;
} else if (pp_truncate) {
- flags |= base::PLATFORM_FILE_CREATE_ALWAYS;
+ flags |= base::File::FLAG_CREATE_ALWAYS;
} else {
- flags |= base::PLATFORM_FILE_OPEN_ALWAYS;
+ flags |= base::File::FLAG_OPEN_ALWAYS;
}
} else if (pp_truncate) {
- flags |= base::PLATFORM_FILE_OPEN_TRUNCATED;
+ flags |= base::File::FLAG_OPEN_TRUNCATED;
} else {
- flags |= base::PLATFORM_FILE_OPEN;
+ flags |= base::File::FLAG_OPEN;
}
if (flags_out)
« no previous file with comments | « ppapi/proxy/serialized_handle.cc ('k') | ppapi/shared_impl/platform_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698