Index: webkit/fileapi/file_system_file_util.h |
=================================================================== |
--- webkit/fileapi/file_system_file_util.h (revision 174833) |
+++ webkit/fileapi/file_system_file_util.h (working copy) |
@@ -6,8 +6,6 @@ |
#define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
#include "base/file_path.h" |
-#include "base/file_util_proxy.h" |
-#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/platform_file.h" |
#include "webkit/fileapi/file_system_url.h" |
@@ -23,8 +21,6 @@ |
namespace fileapi { |
-using base::PlatformFile; |
-using base::PlatformFileError; |
class FileSystemOperationContext; |
// A file utility interface that provides basic file utility methods for |
@@ -74,17 +70,17 @@ |
// If PLATFORM_FILE_CREATE is set in |file_flags| it always tries to create |
// a new file at the given |url| and calls back with |
// PLATFORM_FILE_ERROR_FILE_EXISTS if the |url| already exists. |
- virtual PlatformFileError CreateOrOpen( |
+ virtual base::PlatformFileError CreateOrOpen( |
FileSystemOperationContext* context, |
const FileSystemURL& url, |
int file_flags, |
- PlatformFile* file_handle, |
+ base::PlatformFile* file_handle, |
bool* created) = 0; |
// Closes the given file handle. |
- virtual PlatformFileError Close( |
+ virtual base::PlatformFileError Close( |
FileSystemOperationContext* context, |
- PlatformFile file) = 0; |
+ base::PlatformFile file) = 0; |
// Ensures that the given |url| exist. This creates a empty new file |
// at |url| if the |url| does not exist. |
@@ -95,20 +91,20 @@ |
// is set PLATFORM_FILE_OK. |
// If the file hasn't existed but it couldn't be created for some other |
// reasons, |created| is set false and |error code| indicates the error. |
- virtual PlatformFileError EnsureFileExists( |
+ virtual base::PlatformFileError EnsureFileExists( |
FileSystemOperationContext* context, |
const FileSystemURL& url, bool* created) = 0; |
// Creates directory at given url. It's an error to create |
// if |exclusive| is true and dir already exists. |
- virtual PlatformFileError CreateDirectory( |
+ virtual base::PlatformFileError CreateDirectory( |
FileSystemOperationContext* context, |
const FileSystemURL& url, |
bool exclusive, |
bool recursive) = 0; |
// Retrieves the information about a file. |
- virtual PlatformFileError GetFileInfo( |
+ virtual base::PlatformFileError GetFileInfo( |
FileSystemOperationContext* context, |
const FileSystemURL& url, |
base::PlatformFileInfo* file_info, |
@@ -129,7 +125,7 @@ |
// Maps |file_system_url| given |context| into |local_file_path| |
// which represents physical file location on the host OS. |
// This may not always make sense for all subclasses. |
- virtual PlatformFileError GetLocalFilePath( |
+ virtual base::PlatformFileError GetLocalFilePath( |
FileSystemOperationContext* context, |
const FileSystemURL& file_system_url, |
FilePath* local_file_path) = 0; |
@@ -137,7 +133,7 @@ |
// Updates the file metadata information. Unlike posix's touch, it does |
// not create a file even if |url| does not exist, but instead fails |
// with PLATFORM_FILE_ERROR_NOT_FOUND. |
- virtual PlatformFileError Touch( |
+ virtual base::PlatformFileError Touch( |
FileSystemOperationContext* context, |
const FileSystemURL& url, |
const base::Time& last_access_time, |
@@ -145,7 +141,7 @@ |
// Truncates a file to the given length. If |length| is greater than the |
// current length of the file, the file will be extended with zeroes. |
- virtual PlatformFileError Truncate( |
+ virtual base::PlatformFileError Truncate( |
FileSystemOperationContext* context, |
const FileSystemURL& url, |
int64 length) = 0; |
@@ -156,27 +152,27 @@ |
const FileSystemURL& url) = 0; |
// Copies or moves a single file from |src_url| to |dest_url|. |
- virtual PlatformFileError CopyOrMoveFile( |
+ virtual base::PlatformFileError CopyOrMoveFile( |
FileSystemOperationContext* context, |
const FileSystemURL& src_url, |
const FileSystemURL& dest_url, |
bool copy) = 0; |
// Copies in a single file from a different filesystem. |
- virtual PlatformFileError CopyInForeignFile( |
+ virtual base::PlatformFileError CopyInForeignFile( |
FileSystemOperationContext* context, |
const FilePath& src_file_path, |
const FileSystemURL& dest_url) = 0; |
// Deletes a single file. |
// It assumes the given url points a file. |
- virtual PlatformFileError DeleteFile( |
+ virtual base::PlatformFileError DeleteFile( |
FileSystemOperationContext* context, |
const FileSystemURL& url) = 0; |
// Deletes a single empty directory. |
// It assumes the given url points an empty directory. |
- virtual PlatformFileError DeleteSingleDirectory( |
+ virtual base::PlatformFileError DeleteSingleDirectory( |
FileSystemOperationContext* context, |
const FileSystemURL& url) = 0; |