blob: 1fc38e77f7cf2f8f1ba97e4166e02b5dfa20d828 [file] [log] [blame]
// Copyright 2018 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 <cstdint>
#include <ostream>
#include "base/location.h"
#include "base/optional.h"
#include "remoting/base/result.h"
#include "remoting/proto/file_transfer.pb.h"
namespace remoting {
namespace protocol {
template <typename SuccessType>
using FileTransferResult = Result<SuccessType, FileTransfer_Error>;
FileTransfer_Error MakeFileTransferError(
base::Location location,
FileTransfer_Error_Type type,
base::Optional<std::int32_t> api_error_code = base::nullopt);
std::ostream& operator<<(std::ostream& stream, const FileTransfer_Error& error);
} // namespace protocol
} // namespace remoting