#ifndef COMPONENTS_ENTERPRISE_CLIENT_CERTIFICATES_CORE_METRICS_UTIL_H_
#define COMPONENTS_ENTERPRISE_CLIENT_CERTIFICATES_CORE_METRICS_UTIL_H_
#include <optional>
#include "base/time/time.h"
#include "components/enterprise/client_certificates/core/private_key_types.h"
#include "components/enterprise/client_certificates/core/store_error.h"
#include "components/enterprise/client_certificates/core/upload_client_error.h"
namespace client_certificates {
enum class ProvisioningError { … };
enum class ProvisioningScenario { … };
struct ProvisioningContext { … };
void LogProvisioningError(ProvisioningError provisioning_error,
std::optional<StoreError> store_error);
void LogKeySyncResponse(HttpCodeOrClientError upload_code);
void LogCertificateCreationResponse(HttpCodeOrClientError upload_code,
bool has_certificate);
void LogProvisioningContext(ProvisioningContext context, bool success);
void LogPrivateKeyCreationSource(PrivateKeySource source);
}
#endif