blob: 583d11b62cea0561c209181a387077af49e2d6df [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.
#ifndef CHROMEOS_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_
#define CHROMEOS_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_
#include "base/component_export.h"
#include "chromeos/components/drivefs/mojom/drivefs.mojom-shared.h"
#include "components/drive/file_errors.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
namespace mojo {
template <>
struct COMPONENT_EXPORT(DRIVEFS_MOJOM)
EnumTraits<drivefs::mojom::FileError, drive::FileError> {
static drivefs::mojom::FileError ToMojom(drive::FileError input);
static bool FromMojom(drivefs::mojom::FileError input,
drive::FileError* output);
};
} // namespace mojo
#endif // CHROMEOS_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_