| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
| 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 6 #define CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace performance_monitor { | 10 namespace performance_monitor { |
| 11 | 11 |
| 12 enum MetricType { |
| 13 METRIC_SAMPLE, |
| 14 METRIC_NUMBER_OF_METRICS |
| 15 }; |
| 16 |
| 17 const char* MetricTypeToString(MetricType event_type); |
| 18 |
| 12 struct MetricDetails { | 19 struct MetricDetails { |
| 13 MetricDetails(); | 20 MetricDetails(); |
| 14 MetricDetails(const std::string& metric_name, | 21 MetricDetails(const std::string& metric_name, |
| 15 const std::string& metric_description); | 22 const std::string& metric_description); |
| 16 ~MetricDetails(); | 23 ~MetricDetails(); |
| 17 | 24 |
| 18 std::string name; | 25 std::string name; |
| 19 std::string description; | 26 std::string description; |
| 20 }; | 27 }; |
| 21 | 28 |
| 22 } // namespace performance_monitor | 29 } // namespace performance_monitor |
| 23 | 30 |
| 24 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ | 31 #endif // CHROME_BROWSER_PERFORMANCE_MONITOR_METRIC_DETAILS_H_ |
| OLD | NEW |