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

Unified Diff: webkit/browser/fileapi/async_file_test_helper.h

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « webkit/browser/blob/local_file_stream_reader.cc ('k') | webkit/browser/fileapi/async_file_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/async_file_test_helper.h
diff --git a/webkit/browser/fileapi/async_file_test_helper.h b/webkit/browser/fileapi/async_file_test_helper.h
index 168400fd0efebe60d192982e42b20ced2a93f746..fc2c95ed4385e175ec2ce0babccb0505830eed3f 100644
--- a/webkit/browser/fileapi/async_file_test_helper.h
+++ b/webkit/browser/fileapi/async_file_test_helper.h
@@ -28,61 +28,61 @@ class AsyncFileTestHelper {
static const int64 kDontCheckSize;
// Performs Copy from |src| to |dest| and returns the status code.
- static base::PlatformFileError Copy(FileSystemContext* context,
- const FileSystemURL& src,
- const FileSystemURL& dest);
+ static base::File::Error Copy(FileSystemContext* context,
+ const FileSystemURL& src,
+ const FileSystemURL& dest);
// Same as Copy, but this supports |progress_callback|.
- static base::PlatformFileError CopyWithProgress(
+ static base::File::Error CopyWithProgress(
FileSystemContext* context,
const FileSystemURL& src,
const FileSystemURL& dest,
const CopyProgressCallback& progress_callback);
// Performs Move from |src| to |dest| and returns the status code.
- static base::PlatformFileError Move(FileSystemContext* context,
- const FileSystemURL& src,
- const FileSystemURL& dest);
+ static base::File::Error Move(FileSystemContext* context,
+ const FileSystemURL& src,
+ const FileSystemURL& dest);
// Removes the given |url|.
- static base::PlatformFileError Remove(FileSystemContext* context,
- const FileSystemURL& url,
+ static base::File::Error Remove(FileSystemContext* context,
+ const FileSystemURL& url,
bool recursive);
// Performs ReadDirectory on |url|.
- static base::PlatformFileError ReadDirectory(FileSystemContext* context,
- const FileSystemURL& url,
- FileEntryList* entries);
+ static base::File::Error ReadDirectory(FileSystemContext* context,
+ const FileSystemURL& url,
+ FileEntryList* entries);
// Creates a directory at |url|.
- static base::PlatformFileError CreateDirectory(FileSystemContext* context,
- const FileSystemURL& url);
+ static base::File::Error CreateDirectory(FileSystemContext* context,
+ const FileSystemURL& url);
// Creates a file at |url|.
- static base::PlatformFileError CreateFile(FileSystemContext* context,
- const FileSystemURL& url);
+ static base::File::Error CreateFile(FileSystemContext* context,
+ const FileSystemURL& url);
// Creates a file at |url| and fills with |buf|.
- static base::PlatformFileError CreateFileWithData(
+ static base::File::Error CreateFileWithData(
FileSystemContext* context,
const FileSystemURL& url,
const char* buf,
int buf_size);
// Truncates the file |url| to |size|.
- static base::PlatformFileError TruncateFile(FileSystemContext* context,
- const FileSystemURL& url,
- size_t size);
+ static base::File::Error TruncateFile(FileSystemContext* context,
+ const FileSystemURL& url,
+ size_t size);
- // Retrieves PlatformFileInfo for |url| and populates |file_info|.
- static base::PlatformFileError GetMetadata(FileSystemContext* context,
- const FileSystemURL& url,
- base::PlatformFileInfo* file_info);
+ // Retrieves File::Info for |url| and populates |file_info|.
+ static base::File::Error GetMetadata(FileSystemContext* context,
+ const FileSystemURL& url,
+ base::File::Info* file_info);
// Retrieves FilePath for |url| and populates |platform_path|.
- static base::PlatformFileError GetPlatformPath(FileSystemContext* context,
- const FileSystemURL& url,
- base::FilePath* platform_path);
+ static base::File::Error GetPlatformPath(FileSystemContext* context,
+ const FileSystemURL& url,
+ base::FilePath* platform_path);
// Returns true if a file exists at |url| with |size|. If |size| is
// kDontCheckSize it doesn't check the file size (but just check its
« no previous file with comments | « webkit/browser/blob/local_file_stream_reader.cc ('k') | webkit/browser/fileapi/async_file_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698