Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: chrome/renderer/translate/translate_helper_metrics.h

Issue 14762014: Translate: move UMA related code in TranslateManager to TranslateManagerMetrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_ 5 #ifndef CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_ 6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
11 11
12 namespace TranslateHelperMetrics { 12 namespace TranslateHelperMetrics {
13 13
14 // An indexing type to query each UMA entry name via GetMetricsName() function. 14 // An indexing type to query each UMA entry name via GetMetricsName() function.
15 // Note: The implementation of GetMetricsName() should be updated when a new 15 // Note: |kMetricsEntries| should be updated when a new entry is added here.
16 // entry is added here.
17 enum MetricsNameIndex { 16 enum MetricsNameIndex {
18 UMA_LANGUAGE_DETECTION, 17 UMA_LANGUAGE_DETECTION,
19 UMA_CONTENT_LANGUAGE, 18 UMA_CONTENT_LANGUAGE,
20 UMA_LANGUAGE_VERIFICATION, 19 UMA_LANGUAGE_VERIFICATION,
21 UMA_TIME_TO_BE_READY, 20 UMA_TIME_TO_BE_READY,
22 UMA_TIME_TO_LOAD, 21 UMA_TIME_TO_LOAD,
23 UMA_TIME_TO_TRANSLATE, 22 UMA_TIME_TO_TRANSLATE,
24 UMA_MAX, 23 UMA_MAX,
25 }; 24 };
26 25
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void ReportLanguageDetectionTime(base::TimeTicks begin, base::TimeTicks end); 68 void ReportLanguageDetectionTime(base::TimeTicks begin, base::TimeTicks end);
70 69
71 #endif // defined(ENABLE_LANGUAGE_DETECTION) 70 #endif // defined(ENABLE_LANGUAGE_DETECTION)
72 71
73 // Gets UMA name for an entry specified by |index|. 72 // Gets UMA name for an entry specified by |index|.
74 const char* GetMetricsName(MetricsNameIndex index); 73 const char* GetMetricsName(MetricsNameIndex index);
75 74
76 } // namespace TranslateHelperMetrics 75 } // namespace TranslateHelperMetrics
77 76
78 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_ 77 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698