| Index: webkit/browser/fileapi/file_system_operation_impl.h
|
| diff --git a/webkit/browser/fileapi/file_system_operation_impl.h b/webkit/browser/fileapi/file_system_operation_impl.h
|
| index 293ac5178d874bf6827f7ec34f3acfb102b0d2ab..cf8409e63c4e0f5ea2fd720c6c4c04eaf85cf691 100644
|
| --- a/webkit/browser/fileapi/file_system_operation_impl.h
|
| +++ b/webkit/browser/fileapi/file_system_operation_impl.h
|
| @@ -79,90 +79,31 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemOperationImpl
|
| base::ProcessHandle peer_handle,
|
| const OpenFileCallback& callback) OVERRIDE;
|
| virtual void Cancel(const StatusCallback& cancel_callback) OVERRIDE;
|
| - virtual FileSystemOperationImpl* AsFileSystemOperationImpl() OVERRIDE;
|
| virtual void CreateSnapshotFile(
|
| const FileSystemURL& path,
|
| const SnapshotFileCallback& callback) OVERRIDE;
|
| -
|
| - // Copies in a single file from a different filesystem.
|
| - //
|
| - // This returns:
|
| - // - PLATFORM_FILE_ERROR_NOT_FOUND if |src_file_path|
|
| - // or the parent directory of |dest_url| does not exist.
|
| - // - PLATFORM_FILE_ERROR_INVALID_OPERATION if |dest_url| exists and
|
| - // is not a file.
|
| - // - PLATFORM_FILE_ERROR_FAILED if |dest_url| does not exist and
|
| - // its parent path is a file.
|
| - //
|
| virtual void CopyInForeignFile(const base::FilePath& src_local_disk_path,
|
| const FileSystemURL& dest_url,
|
| - const StatusCallback& callback);
|
| -
|
| - // Removes a single file.
|
| - //
|
| - // This returns:
|
| - // - PLATFORM_FILE_ERROR_NOT_FOUND if |url| does not exist.
|
| - // - PLATFORM_FILE_ERROR_NOT_A_FILE if |url| is not a file.
|
| - //
|
| - void RemoveFile(const FileSystemURL& url,
|
| - const StatusCallback& callback);
|
| -
|
| - // Removes a single empty directory.
|
| - //
|
| - // This returns:
|
| - // - PLATFORM_FILE_ERROR_NOT_FOUND if |url| does not exist.
|
| - // - PLATFORM_FILE_ERROR_NOT_A_DIRECTORY if |url| is not a directory.
|
| - // - PLATFORM_FILE_ERROR_NOT_EMPTY if |url| is not empty.
|
| - //
|
| - void RemoveDirectory(const FileSystemURL& url,
|
| - const StatusCallback& callback);
|
| -
|
| - // Copies a file from |src_url| to |dest_url|.
|
| - // This must be called for files that belong to the same filesystem
|
| - // (i.e. type() and origin() of the |src_url| and |dest_url| must match).
|
| - //
|
| - // This returns:
|
| - // - PLATFORM_FILE_ERROR_NOT_FOUND if |src_url|
|
| - // or the parent directory of |dest_url| does not exist.
|
| - // - PLATFORM_FILE_ERROR_NOT_A_FILE if |src_url| exists but is not a file.
|
| - // - PLATFORM_FILE_ERROR_INVALID_OPERATION if |dest_url| exists and
|
| - // is not a file.
|
| - // - PLATFORM_FILE_ERROR_FAILED if |dest_url| does not exist and
|
| - // its parent path is a file.
|
| - //
|
| - void CopyFileLocal(const FileSystemURL& src_url,
|
| - const FileSystemURL& dest_url,
|
| - const StatusCallback& callback);
|
| -
|
| - // Moves a local file from |src_url| to |dest_url|.
|
| - // This must be called for files that belong to the same filesystem
|
| - // (i.e. type() and origin() of the |src_url| and |dest_url| must match).
|
| - //
|
| - // This returns:
|
| - // - PLATFORM_FILE_ERROR_NOT_FOUND if |src_url|
|
| - // or the parent directory of |dest_url| does not exist.
|
| - // - PLATFORM_FILE_ERROR_NOT_A_FILE if |src_url| exists but is not a file.
|
| - // - PLATFORM_FILE_ERROR_INVALID_OPERATION if |dest_url| exists and
|
| - // is not a file.
|
| - // - PLATFORM_FILE_ERROR_FAILED if |dest_url| does not exist and
|
| - // its parent path is a file.
|
| - //
|
| - void MoveFileLocal(const FileSystemURL& src_url,
|
| - const FileSystemURL& dest_url,
|
| - const StatusCallback& callback);
|
| -
|
| - // Synchronously gets the platform path for the given |url|.
|
| - // This may fail if |file_system_context| returns NULL on GetFileUtil().
|
| - // In such a case, base::PLATFORM_FILE_ERROR_INVALID_OPERATION will be
|
| - // returned.
|
| - base::PlatformFileError SyncGetPlatformPath(const FileSystemURL& url,
|
| - base::FilePath* platform_path);
|
| + const StatusCallback& callback) OVERRIDE;
|
| + virtual void RemoveFile(const FileSystemURL& url,
|
| + const StatusCallback& callback) OVERRIDE;
|
| + virtual void RemoveDirectory(const FileSystemURL& url,
|
| + const StatusCallback& callback) OVERRIDE;
|
| + virtual void CopyFileLocal(const FileSystemURL& src_url,
|
| + const FileSystemURL& dest_url,
|
| + const StatusCallback& callback) OVERRIDE;
|
| + virtual void MoveFileLocal(const FileSystemURL& src_url,
|
| + const FileSystemURL& dest_url,
|
| + const StatusCallback& callback) OVERRIDE;
|
| + virtual base::PlatformFileError SyncGetPlatformPath(
|
| + const FileSystemURL& url,
|
| + base::FilePath* platform_path) OVERRIDE;
|
|
|
| FileSystemContext* file_system_context() const {
|
| return file_system_context_.get();
|
| }
|
|
|
| - protected:
|
| + private:
|
| // Queries the quota and usage and then runs the given |task|.
|
| // If an error occurs during the quota query it runs |error_callback| instead.
|
| void GetUsageAndQuotaThenRunTask(
|
|
|