#include "chrome/utility/image_writer/image_writer_handler.h"
#include <memory>
#include <optional>
#include <utility>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "chrome/services/removable_storage_writer/public/mojom/removable_storage_writer.mojom.h"
#include "chrome/utility/image_writer/error_message_strings.h"
namespace {
bool IsTestDevice(const base::FilePath& device) { … }
base::FilePath MakeTestDevicePath(const base::FilePath& image) { … }
}
namespace image_writer {
ImageWriterHandler::ImageWriterHandler() = default;
ImageWriterHandler::~ImageWriterHandler() = default;
void ImageWriterHandler::Write(
const base::FilePath& image,
const base::FilePath& device,
mojo::PendingRemote<chrome::mojom::RemovableStorageWriterClient> client) { … }
void ImageWriterHandler::Verify(
const base::FilePath& image,
const base::FilePath& device,
mojo::PendingRemote<chrome::mojom::RemovableStorageWriterClient> client) { … }
void ImageWriterHandler::SendProgress(int64_t progress) { … }
void ImageWriterHandler::SendSucceeded() { … }
void ImageWriterHandler::SendFailed(const std::string& error) { … }
void ImageWriterHandler::Cancel() { … }
bool ImageWriterHandler::ShouldResetImageWriter(const base::FilePath& image,
const base::FilePath& device) { … }
}