Chromium Code Reviews| Index: base/files/file.h |
| diff --git a/base/files/file.h b/base/files/file.h |
| index f1a83774becfa65649cf23913363d59db7cd92c9..ae915d6fb71e8b060ce0bfede1f8cb921c6f1661 100644 |
| --- a/base/files/file.h |
| +++ b/base/files/file.h |
| @@ -5,6 +5,8 @@ |
| #ifndef BASE_FILES_FILE_H_ |
| #define BASE_FILES_FILE_H_ |
| +#include <string> |
|
rvargas (doing something else)
2014/05/29 19:07:27
nit: This should go after <windows> and <sys/stat.
mtomasz
2014/05/30 00:25:55
Done.
|
| + |
| #include "build/build_config.h" |
| #if defined(OS_WIN) |
| #include <windows.h> |
| @@ -289,6 +291,9 @@ class BASE_EXPORT File { |
| static Error OSErrorToFileError(int saved_errno); |
| #endif |
| + // Converts an error value to a human-readable form. Used for logging. |
| + static std::string ErrorToString(Error error); |
| + |
| private: |
| void SetPlatformFile(PlatformFile file); |