blob: ba0a8fbdbe178969a14cc4f7dff8b088543a4a9a [file] [log] [blame]
Avi Drissmane4714ce92022-09-12 21:41:581// Copyright 2018 The Chromium Authors
Sam McNallycfe4cc02018-05-25 03:49:122// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Henrique Ferreiro197812962022-08-22 23:51:105#ifndef CHROMEOS_ASH_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_
6#define CHROMEOS_ASH_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_
Sam McNallycfe4cc02018-05-25 03:49:127
8#include "base/component_export.h"
Henrique Ferreiro197812962022-08-22 23:51:109#include "chromeos/ash/components/drivefs/mojom/drivefs.mojom-shared.h"
Sam McNallycfe4cc02018-05-25 03:49:1210#include "components/drive/file_errors.h"
11#include "mojo/public/cpp/bindings/enum_traits.h"
12
13namespace mojo {
14
15template <>
16struct COMPONENT_EXPORT(DRIVEFS_MOJOM)
17 EnumTraits<drivefs::mojom::FileError, drive::FileError> {
18 static drivefs::mojom::FileError ToMojom(drive::FileError input);
19
20 static bool FromMojom(drivefs::mojom::FileError input,
21 drive::FileError* output);
22};
23
24} // namespace mojo
25
Henrique Ferreiro197812962022-08-22 23:51:1026#endif // CHROMEOS_ASH_COMPONENTS_DRIVEFS_DRIVEFS_MOJOM_TRAITS_H_