chromium/components/password_manager/content/common/credential_manager_mojom_traits.h

// Copyright 2016 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_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_MOJOM_TRAITS_H_
#define COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_MOJOM_TRAITS_H_

#include <optional>
#include <string>

#include "components/password_manager/core/common/credential_manager_types.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "third_party/blink/public/mojom/credentialmanagement/credential_manager.mojom.h"

namespace mojo {

template <>
struct EnumTraits<blink::mojom::CredentialType,
                  password_manager::CredentialType> {};

template <>
struct EnumTraits<blink::mojom::CredentialManagerError,
                  password_manager::CredentialManagerError> {};

template <>
struct EnumTraits<blink::mojom::CredentialMediationRequirement,
                  password_manager::CredentialMediationRequirement> {};

template <>
struct StructTraits<blink::mojom::CredentialInfoDataView,
                    password_manager::CredentialInfo> {};

}  // namespace mojo

#endif  // COMPONENTS_PASSWORD_MANAGER_CONTENT_COMMON_CREDENTIAL_MANAGER_MOJOM_TRAITS_H_