#ifndef CHROME_BROWSER_UI_WEBUI_CONNECTORS_INTERNALS_DEVICE_TRUST_UTILS_H_
#define CHROME_BROWSER_UI_WEBUI_CONNECTORS_INTERNALS_DEVICE_TRUST_UTILS_H_
#include <optional>
#include "build/build_config.h"
#include "chrome/browser/ui/webui/connectors_internals/connectors_internals.mojom.h"
#include "components/enterprise/buildflags/buildflags.h"
#if BUILDFLAG(ENTERPRISE_CLIENT_CERTIFICATES)
#include "components/enterprise/client_certificates/core/client_identity.h"
#include "components/enterprise/client_certificates/core/upload_client_error.h"
#endif
namespace enterprise_connectors::utils {
connectors_internals::mojom::KeyInfoPtr GetKeyInfo();
bool CanDeleteDeviceTrustKey();
#if BUILDFLAG(ENTERPRISE_CLIENT_CERTIFICATES)
connectors_internals::mojom::ClientIdentityPtr ConvertIdentity(
const client_certificates::ClientIdentity& identity,
const std::optional<client_certificates::HttpCodeOrClientError>&
key_upload_code);
#endif
}
#endif