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 |
jar (doing other things)
2013/05/07 01:12:36
Who else uses these? Why do they need to be visibl
dgrogan
2013/05/07 19:02:05
platform_file_{win,posix}.cc and file_util_{win,po
jar (doing other things)
2013/05/07 19:44:50
If there are shared usage of these platform specif
dgrogan
2013/05/07 21:24:06
As above (I suspect you just didn't see that comme
jar (doing other things)
2013/05/07 21:39:02
OK. I didn't spot the uses. Sorry to have missed
dgrogan
2013/05/07 21:44:43
Heh, that's where I tried to put them originally.
jar (doing other things)
2013/05/07 22:31:32
How about splitting the difference... and uniting
dgrogan
2013/05/07 22:45:16
Done.
|
+ |
// 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. |