chromium/components/payments/core/payment_request_metrics.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_PAYMENTS_CORE_PAYMENT_REQUEST_METRICS_H_
#define COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_METRICS_H_

#include <string>

class PrefService;

namespace payments {

// Sources that may set the payments.can_make_payment_enabled preference.
//
// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class CanMakePaymentPreferenceSetter {};

// Records metrics for the 'payments.can_make_payment_enabled' user pref.
void RecordCanMakePaymentPrefMetrics(const PrefService& pref_service,
                                     const std::string& suffix);

}  // namespace payments

#endif  // COMPONENTS_PAYMENTS_CORE_PAYMENT_REQUEST_METRICS_H_