chromium/components/reporting/util/reporting_errors.h

// Copyright 2024 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_REPORTING_UTIL_REPORTING_ERRORS_H_
#define COMPONENTS_REPORTING_UTIL_REPORTING_ERRORS_H_

namespace reporting {

inline constexpr char kUmaUnavailableErrorReason[] =;

inline constexpr char kUmaDataLossErrorReason[] =;

// These enum values represent the different error messages associated with
// usages of `error::UNAVAILABLE` in Chrome. Anytime `error::UNAVAILABLE` is
// used, it should be UMA logged using this enum and
// kUmaUnavailableErrorReason.
//
// Update `UnavailableErrorReasonBrowser` in
// tools/metrics/histograms/metadata/browser/enums.xml when adding new values
// to this enum.
//
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class UnavailableErrorReason {};

// These enum values represent the different error messages associated with
// usages of `error::DATA_LOSS` in Chrome. Anytime `error::DATA_LOSS` is
// used, it should be UMA logged using this enum and
// kUmaDataLossErrorReason.
//
// Update DataLossErrorReason in
// tools/metrics/histograms/metadata/browser/enums.xml when adding new values.
//
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class DataLossErrorReason {};
}  // namespace reporting

#endif  // COMPONENTS_REPORTING_UTIL_REPORTING_ERRORS_H_