// Copyright 2020 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_TRANSLATE_CORE_BROWSER_TRANSLATE_METRICS_LOGGER_H_ #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_METRICS_LOGGER_H_ #include <stdint.h> #include <string> #include "components/translate/core/browser/translate_browser_metrics.h" #include "components/translate/core/common/translate_errors.h" #include "services/metrics/public/cpp/ukm_source_id.h" namespace translate { // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class RankerDecision { … }; // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class TranslateState { … }; // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class TranslationStatus { … }; // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class TranslationType { … }; // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class TriggerDecision { … }; // These values are persisted to logs. Entries should not be renumbered and // numeric values should never be reused. enum class UIInteraction { … }; // TranslateMetricsLogger tracks and logs various UKM and UMA metrics for Chrome // Translate over the course of a page load. class TranslateMetricsLogger { … }; } // namespace translate #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_METRICS_LOGGER_H_