Chromium Code Reviews| 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 struct MonitoredWebsiteInfos { | |
|
vabr (Chromium)
2013/09/10 08:46:53
nit: Could we have a more descriptive name? "Infos
jdomingos
2013/09/10 16:49:13
Done.
| |
| 17 char const* domain_name; | |
| 18 int const bucketsID[10]; | |
|
vabr (Chromium)
2013/09/10 08:46:53
hacker_style for member variables. Also (nit) -- t
jdomingos
2013/09/10 16:49:13
Done.
| |
| 19 }; | |
| 20 | |
| 21 // Check whether the |url_host| is monitored or not. If yes, we return | |
| 22 // the name of the group which contains the domain name otherwise | |
| 23 // returns an empty string. | |
| 24 std::string IsDomainNameMonitored(const std::string& url_host); | |
| 25 | |
| 26 // A version of the UMA_HISTOGRAM_ENUMERATION macro that allows the |name| | |
| 27 // to vary over the program's runtime. | |
| 28 void LogUMAHistogramEnumeration(const std::string& name, | |
| 29 int sample, | |
| 30 int boundary_value); | |
| 31 | |
| 32 // A version of the UMA_HISTOGRAM_TIMES macro that allows the |name| | |
| 33 // to vary over the program's runtime. | |
| 34 void LogUMAHistogramTimes(const std::string& name, | |
| 35 const base::TimeDelta& duration); | |
| 36 | |
| 37 // A version of the UMA_HISTOGRAM_COUNT macro that allows the |name| | |
| 38 // to vary over the program's runtime. | |
| 39 void LogUMAHistogramCount(const std::string& name, int sample); | |
| 40 | |
| 41 // A version of the UMA_HISTOGRAM_BOOLEAN macro that allows the |name| | |
| 42 // to vary over the program's runtime. | |
| 43 void LogUMAHistogramBoolean(const std::string& name, bool sample); | |
|
vabr (Chromium)
2013/09/10 08:46:53
Looks like this function is not used. If so, then
jdomingos
2013/09/10 16:49:13
Done.
| |
| 44 | |
| 45 } // namespace password_manager_metrics_util | |
| 46 | |
| 47 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_MANAGER_METRICS_UTIL_H_ | |
| OLD | NEW |