chromium/components/device_signals/core/common/mojom/system_signals_mojom_traits_common.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_DEVICE_SIGNALS_CORE_COMMON_MOJOM_SYSTEM_SIGNALS_MOJOM_TRAITS_COMMON_H_
#define COMPONENTS_DEVICE_SIGNALS_CORE_COMMON_MOJOM_SYSTEM_SIGNALS_MOJOM_TRAITS_COMMON_H_

#include <optional>
#include <string>
#include <vector>

#include "base/files/file_path.h"
#include "components/device_signals/core/common/common_types.h"
#include "components/device_signals/core/common/mojom/system_signals.mojom-shared.h"

namespace mojo {

template <>
struct EnumTraits<device_signals::mojom::PresenceValue,
                  device_signals::PresenceValue> {};

template <>
struct StructTraits<device_signals::mojom::ExecutableMetadataDataView,
                    device_signals::ExecutableMetadata> {};

template <>
struct StructTraits<device_signals::mojom::FileSystemItemDataView,
                    device_signals::FileSystemItem> {};

template <>
struct StructTraits<device_signals::mojom::FileSystemItemRequestDataView,
                    device_signals::GetFileSystemInfoOptions> {};

}  // namespace mojo

#endif  // COMPONENTS_DEVICE_SIGNALS_CORE_COMMON_MOJOM_SYSTEM_SIGNALS_MOJOM_TRAITS_COMMON_H_