chromium/services/metrics/public/cpp/ukm_recorder_impl_utils.h

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

#ifndef SERVICES_METRICS_PUBLIC_CPP_UKM_RECORDER_IMPL_UTILS_H_
#define SERVICES_METRICS_PUBLIC_CPP_UKM_RECORDER_IMPL_UTILS_H_

#include <stdint.h>

#include "services/metrics/public/cpp/metrics_export.h"

namespace ukm {

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
// Update tools/metrics/histograms/enums.xml when new entries are added.
enum class DroppedDataReason {};

void METRICS_EXPORT RecordDroppedEntry(uint64_t event_hash,
                                       DroppedDataReason reason);

void METRICS_EXPORT RecordDroppedWebDXFeaturesSet(DroppedDataReason reason);

}  // namespace ukm

#endif  // SERVICES_METRICS_PUBLIC_CPP_UKM_RECORDER_IMPL_UTILS_H_