blob: 55843e5f89ab9797e3e9a76e573a62e24c57cb5d [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/services/removable_storage_writer/removable_storage_writer.h"
#include <utility>
#include "base/files/file_path.h"
RemovableStorageWriter::RemovableStorageWriter(
mojo::PendingReceiver<chrome::mojom::RemovableStorageWriter> receiver)
: receiver_(this, std::move(receiver)) {}
RemovableStorageWriter::~RemovableStorageWriter() = default;
void RemovableStorageWriter::Write(
const base::FilePath& source,
const base::FilePath& target,
mojo::PendingRemote<chrome::mojom::RemovableStorageWriterClient> client) {
writer_.Write(source, target, std::move(client));
}
void RemovableStorageWriter::Verify(
const base::FilePath& source,
const base::FilePath& target,
mojo::PendingRemote<chrome::mojom::RemovableStorageWriterClient> client) {
writer_.Verify(source, target, std::move(client));
}