// 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 COMPONENTS_FEEDBACK_REDACTION_TOOL_REDACTION_TOOL_METRICS_RECORDER_H_ #define COMPONENTS_FEEDBACK_REDACTION_TOOL_REDACTION_TOOL_METRICS_RECORDER_H_ #include <memory> #include <string_view> #include "base/time/time.h" #include "components/feedback/redaction_tool/pii_types.h" namespace redaction { // These values are logged to UMA. Entries should not be renumbered and // numeric values should never be reused. Please keep in sync with // "CreditCardDetection" in //tools/metrics/histograms/enums.xml. enum class CreditCardDetection { … }; // These values are logged to UMA. Entries should not be renumbered and // numeric values should never be reused. Please keep in sync with // "RedactionToolCaller" in //tools/metrics/histograms/enums.xml. enum class RedactionToolCaller { … }; inline constexpr char kPIIRedactedHistogram[] = …; inline constexpr char kCreditCardRedactionHistogram[] = …; inline constexpr char kRedactionToolCallerHistogram[] = …; // This class is the platform independent interface to record histograms using // the platform specific libraries. class RedactionToolMetricsRecorder { … }; } // namespace redaction #endif // COMPONENTS_FEEDBACK_REDACTION_TOOL_REDACTION_TOOL_METRICS_RECORDER_H_