#ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_
#define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_
#include <string>
namespace TranslateBrowserMetrics {
enum MetricsNameIndex {
UMA_INITIATION_STATUS,
UMA_LANGUAGE_DETECTION_ERROR,
UMA_LOCALES_ON_DISABLED_BY_PREFS,
UMA_UNDISPLAYABLE_LANGUAGE,
UMA_UNSUPPORTED_LANGUAGE_AT_INITIATION,
UMA_MAX,
};
enum InitiationStatusType {
INITIATION_STATUS_DISABLED_BY_PREFS,
INITIATION_STATUS_DISABLED_BY_SWITCH,
INITIATION_STATUS_DISABLED_BY_CONFIG,
INITIATION_STATUS_LANGUAGE_IS_NOT_SUPPORTED,
INITIATION_STATUS_URL_IS_NOT_SUPPORTED,
INITIATION_STATUS_SIMILAR_LANGUAGES,
INITIATION_STATUS_ACCEPT_LANGUAGES,
INITIATION_STATUS_AUTO_BY_CONFIG,
INITIATION_STATUS_AUTO_BY_LINK,
INITIATION_STATUS_SHOW_INFOBAR,
INITIATION_STATUS_MIME_TYPE_IS_NOT_SUPPORTED,
INITIATION_STATUS_MAX,
};
void ReportInitiationStatus(InitiationStatusType type);
void ReportLanguageDetectionError();
void ReportLocalesOnDisabledByPrefs(const std::string& locale);
void ReportUndisplayableLanguage(const std::string& language);
void ReportUnsupportedLanguageAtInitiation(const std::string& language);
const char* GetMetricsName(MetricsNameIndex index);
}
#endif