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 namespace base { | |
11 class TimeDelta; | |
12 } | |
13 | |
14 namespace password_manager_metrics_util { | |
15 | |
16 // Check whether the |url_host| is monitored or not. If yes, we return | |
17 // the domain name otherwise we return an empty. | |
Ilya Sherman
2013/09/03 22:25:21
nit: "we return" -> "returns"
Ilya Sherman
2013/09/03 22:25:21
nit: "an empty" -> "an empty string".
| |
18 std::string IsDomainNameMonitored(const std::string& url_host); | |
19 | |
20 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| | |
21 // to vary over the program's runtime. | |
22 void LogUMAHistogramEnumeration(const std::string& name, | |
23 int sample, | |
24 int boundary_value); | |
25 | |
26 // A version of the UMA_HISTOGRAM_TIMES macro that allows the |name| | |
27 // to vary over the program's runtime. | |
28 void LogUMAHistogramTimes(const std::string& name, | |
29 const base::TimeDelta& duration); | |
30 | |
31 // A version of the UMA_HISTOGRAM_COUNT macro that allows the |name| | |
32 // to vary over the program's runtime. | |
33 void LogUMAHistogramCount(const std::string& name, int sample); | |
34 | |
35 // A version of the UMA_HISTOGRAM_BOOLEAN macro that allows the |name| | |
36 // to vary over the program's runtime. | |
37 void LogUMAHistogramBoolean(const std::string& name, bool sample); | |
38 | |
39 } // namespace password_manager_metrics_util | |
40 | |
41 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_ | |
OLD | NEW |