Convert Media Galleries to use base::File

Unfortunately, this brings in changes to webkit/browser/fileapi, and once
that changes, a lot of files have to be updated.

The bright side is that most of the collateral changes are just trivial
renaming of PlatformFileError -> File::Error and PlatformFileInfo ->
File::Info

BUG=322664

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

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


CrOS-Libchrome-Original-Commit: 141bcc5b660175f90a351d0b1fc412eecbeb70e6
diff --git a/base/files/file_util_proxy.h b/base/files/file_util_proxy.h
index bded161..846e8fb 100644
--- a/base/files/file_util_proxy.h
+++ b/base/files/file_util_proxy.h
@@ -7,6 +7,7 @@
 
 #include "base/base_export.h"
 #include "base/callback_forward.h"
+#include "base/files/file.h"
 #include "base/files/file_path.h"
 #include "base/memory/ref_counted.h"
 #include "base/platform_file.h"
@@ -26,25 +27,25 @@
   // This callback is used by methods that report only an error code.  It is
   // valid to pass a null callback to any function that takes a StatusCallback,
   // in which case the operation will complete silently.
-  typedef Callback<void(PlatformFileError)> StatusCallback;
+  typedef Callback<void(File::Error)> StatusCallback;
 
-  typedef Callback<void(PlatformFileError,
+  typedef Callback<void(File::Error,
                         PassPlatformFile,
                         bool /* created */)> CreateOrOpenCallback;
-  typedef Callback<void(PlatformFileError,
+  typedef Callback<void(File::Error,
                         PassPlatformFile,
                         const FilePath&)> CreateTemporaryCallback;
-  typedef Callback<void(PlatformFileError,
-                        const PlatformFileInfo&)> GetFileInfoCallback;
-  typedef Callback<void(PlatformFileError,
+  typedef Callback<void(File::Error,
+                        const File::Info&)> GetFileInfoCallback;
+  typedef Callback<void(File::Error,
                         const char* /* data */,
                         int /* bytes read */)> ReadCallback;
-  typedef Callback<void(PlatformFileError,
+  typedef Callback<void(File::Error,
                         int /* bytes written */)> WriteCallback;
 
-  typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask;
-  typedef Callback<PlatformFileError(PlatformFile)> CloseTask;
-  typedef Callback<PlatformFileError(void)> FileTask;
+  typedef Callback<File::Error(PlatformFile*, bool*)> CreateOrOpenTask;
+  typedef Callback<File::Error(PlatformFile)> CloseTask;
+  typedef Callback<File::Error(void)> FileTask;
 
   // Creates or opens a file with the given flags. It is invalid to pass a null
   // callback. If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to