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

Unified Diff: base/platform_file.h

Issue 14886003: Make base:ReplaceFile return an informative error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 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: base/platform_file.h
diff --git a/base/platform_file.h b/base/platform_file.h
index 43758c51cee035771fe267ff8b7b57cd773cd828..7d6408f5efe93e47e18e676415c406b5cd9727f6 100644
--- a/base/platform_file.h
+++ b/base/platform_file.h
@@ -204,6 +204,12 @@ BASE_EXPORT bool TouchPlatformFile(PlatformFile file,
// Returns some information for the given file.
BASE_EXPORT bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info);
+#if defined(OS_WIN)
+PlatformFileError LastErrorToPlatformFileError(DWORD saved_errno);
+#elif defined(OS_POSIX)
+PlatformFileError ErrnoToPlatformFileError(int saved_errno);
+#endif
+
// Use this class to pass ownership of a PlatformFile to a receiver that may or
// may not want to accept it. This class does not own the storage for the
// PlatformFile.
« base/file_util_win.cc ('K') | « base/file_util_win.cc ('k') | base/platform_file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698