OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_ | |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/metrics/histogram.h" | |
Ilya Sherman
2013/08/30 22:34:42
nit: Please move this into the .cc file.
jdomingos
2013/09/02 09:58:45
Done.
| |
12 | |
13 namespace password_manager_metrics_util { | |
14 | |
15 // Check whether the |url_host| is monitored or not. If yes, we put the | |
16 // domain name into |domain_name| | |
Ilya Sherman
2013/08/30 22:34:42
Please update this comment.
jdomingos
2013/09/02 09:58:45
Done.
| |
17 std::string IsDomainNameMonitored(const std::string& url_host); | |
18 | |
19 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| | |
20 // to vary over the program's runtime. | |
21 void LogUMAHistogramEnumeration(const std::string& name, | |
22 int sample, | |
23 int boundary_value); | |
24 | |
25 // A version of the UMA_HISTOGRAM_TIMES macro that allows the |name| | |
26 // to vary over the program's runtime. | |
27 void LogUMAHistogramTimes(const std::string& name, | |
28 const base::TimeDelta& duration); | |
Ilya Sherman
2013/08/30 22:34:42
nit: You'll need to forward-declare base::TimeDelt
jdomingos
2013/09/02 09:58:45
Done.
| |
29 | |
30 // A version of the UMA_HISTOGRAM_COUNT macro that allows the |name| | |
31 // to vary over the program's runtime. | |
32 void LogUMAHistogramCount(const std::string& name, int sample); | |
33 | |
34 // A version of the UMA_HISTOGRAM_BOOLEAN macro that allows the |name| | |
35 // to vary over the program's runtime. | |
36 void LogUMAHistogramBoolean(const std::string& name, bool sample); | |
37 | |
38 } // namespace password_manager_metrics_util | |
39 | |
40 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_ | |
OLD | NEW |