#include "storage/browser/file_system/copy_or_move_hook_delegate.h"
#include "base/files/file.h"
#include "base/functional/callback.h"
#include "base/sequence_checker.h"
#include "storage/browser/file_system/file_system_url.h"
namespace storage {
CopyOrMoveHookDelegate::CopyOrMoveHookDelegate(bool is_composite)
: … { … }
CopyOrMoveHookDelegate::~CopyOrMoveHookDelegate() = default;
void CopyOrMoveHookDelegate::OnBeginProcessFile(
const FileSystemURL& source_url,
const FileSystemURL& destination_url,
StatusCallback callback) { … }
void CopyOrMoveHookDelegate::OnBeginProcessDirectory(
const FileSystemURL& source_url,
const FileSystemURL& destination_url,
StatusCallback callback) { … }
void CopyOrMoveHookDelegate::OnProgress(const FileSystemURL& source_url,
const FileSystemURL& destination_url,
int64_t size) { … }
void CopyOrMoveHookDelegate::OnError(const FileSystemURL& source_url,
const FileSystemURL& destination_url,
base::File::Error error,
ErrorCallback callback) { … }
void CopyOrMoveHookDelegate::OnEndCopy(const FileSystemURL& source_url,
const FileSystemURL& destination_url) { … }
void CopyOrMoveHookDelegate::OnEndMove(const FileSystemURL& source_url,
const FileSystemURL& destination_url) { … }
void CopyOrMoveHookDelegate::OnEndRemoveSource(
const FileSystemURL& source_url) { … }
}