#ifndef REMOTING_PROTOCOL_FILE_TRANSFER_HELPERS_H_
#define REMOTING_PROTOCOL_FILE_TRANSFER_HELPERS_H_
#include <cstdint>
#include <optional>
#include <ostream>
#include "base/location.h"
#include "remoting/base/result.h"
#include "remoting/proto/file_transfer.pb.h"
namespace remoting::protocol {
template <typename SuccessType>
using FileTransferResult = Result<SuccessType, FileTransfer_Error>;
FileTransfer_Error MakeFileTransferError(
base::Location location,
FileTransfer_Error_Type type,
std::optional<std::int32_t> api_error_code = std::nullopt);
std::ostream& operator<<(std::ostream& stream, const FileTransfer_Error& error);
}
#endif