Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace translate { | |
| 10 namespace TranslateBrowserMetrics { | 11 namespace TranslateBrowserMetrics { |
|
droger
2014/07/09 07:52:43
I think we could get rid of TranslateBrowserMetric
nshaik
2014/07/09 08:56:51
Done.
| |
| 11 | 12 |
| 12 // An indexing type to query each UMA entry name via GetMetricsName() function. | 13 // An indexing type to query each UMA entry name via GetMetricsName() function. |
| 13 // Note: |kMetricsEntries| should be updated when a new entry is added here. | 14 // Note: |kMetricsEntries| should be updated when a new entry is added here. |
| 14 enum MetricsNameIndex { | 15 enum MetricsNameIndex { |
| 15 UMA_INITIATION_STATUS, | 16 UMA_INITIATION_STATUS, |
| 16 UMA_LANGUAGE_DETECTION_ERROR, | 17 UMA_LANGUAGE_DETECTION_ERROR, |
| 17 UMA_LOCALES_ON_DISABLED_BY_PREFS, | 18 UMA_LOCALES_ON_DISABLED_BY_PREFS, |
| 18 UMA_UNDISPLAYABLE_LANGUAGE, | 19 UMA_UNDISPLAYABLE_LANGUAGE, |
| 19 UMA_UNSUPPORTED_LANGUAGE_AT_INITIATION, | 20 UMA_UNSUPPORTED_LANGUAGE_AT_INITIATION, |
| 20 UMA_MAX, | 21 UMA_MAX, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 // Called when Chrome Translate server sends the language list which includes | 54 // Called when Chrome Translate server sends the language list which includes |
| 54 // a undisplayable language in the user's locale. | 55 // a undisplayable language in the user's locale. |
| 55 void ReportUndisplayableLanguage(const std::string& language); | 56 void ReportUndisplayableLanguage(const std::string& language); |
| 56 | 57 |
| 57 void ReportUnsupportedLanguageAtInitiation(const std::string& language); | 58 void ReportUnsupportedLanguageAtInitiation(const std::string& language); |
| 58 | 59 |
| 59 // Provides UMA entry names for unit tests. | 60 // Provides UMA entry names for unit tests. |
| 60 const char* GetMetricsName(MetricsNameIndex index); | 61 const char* GetMetricsName(MetricsNameIndex index); |
| 61 | 62 |
| 62 } // namespace TranslateBrowserMetrics | 63 } // namespace TranslateBrowserMetrics |
| 64 } // namespace translate | |
| 63 | 65 |
| 64 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ | 66 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_BROWSER_METRICS_H_ |
| OLD | NEW |