[fsp] Convert base::File::Error to string.

This patch adds a utility function which converts a base::File::Error code
to a human readable form. It will be used for logging request errors in the
File System Provider API.

TEST=Not used yet.
BUG=376095

Review URL: https://codereview.chromium.org/308613002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273779 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: b73427e731ca23234f23124b5ac25748287d9703
diff --git a/base/files/file.h b/base/files/file.h
index f1a8377..1913bc7 100644
--- a/base/files/file.h
+++ b/base/files/file.h
@@ -14,6 +14,8 @@
 #include <sys/stat.h>
 #endif
 
+#include <string>
+
 #include "base/base_export.h"
 #include "base/basictypes.h"
 #include "base/files/scoped_file.h"
@@ -289,6 +291,9 @@
   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);