diff options
Diffstat (limited to 'webkit/fileapi/file_system_file_util.h')
-rw-r--r-- | webkit/fileapi/file_system_file_util.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_file_util.h b/webkit/fileapi/file_system_file_util.h index 9b02a44..996c9f78 100644 --- a/webkit/fileapi/file_system_file_util.h +++ b/webkit/fileapi/file_system_file_util.h @@ -127,6 +127,27 @@ class FileSystemFileUtil { protected: FileSystemFileUtil() { } + + // This also removes the destination directory if it's non-empty and all + // other checks are passed (so that the copy/move correctly overwrites the + // destination). + PlatformFileError PerformCommonCheckAndPreparationForMoveAndCopy( + FileSystemOperationContext* unused, + const FilePath& src_file_path, + const FilePath& dest_file_path); + + virtual bool PathExists( + FileSystemOperationContext* unused, + const FilePath& file_path); + + virtual bool DirectoryExists( + FileSystemOperationContext* unused, + const FilePath& file_path); + + virtual bool IsDirectoryEmpty( + FileSystemOperationContext* unused, + const FilePath& file_path); + friend struct DefaultSingletonTraits<FileSystemFileUtil>; DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); }; |