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 // This file defines a set of user experience metrics data recorded by | 5 // This file defines a set of user experience metrics data recorded by |
6 // the MetricsService. This is the unit of data that is sent to the server. | 6 // the MetricsService. This is the unit of data that is sent to the server. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Writes all profile metrics. This invokes WriteProfileMetrics for each key | 172 // Writes all profile metrics. This invokes WriteProfileMetrics for each key |
173 // in all_profiles_metrics that starts with kProfilePrefix. | 173 // in all_profiles_metrics that starts with kProfilePrefix. |
174 void WriteAllProfilesMetrics( | 174 void WriteAllProfilesMetrics( |
175 const base::DictionaryValue& all_profiles_metrics); | 175 const base::DictionaryValue& all_profiles_metrics); |
176 | 176 |
177 // Writes metrics for the profile identified by key. This writes all | 177 // Writes metrics for the profile identified by key. This writes all |
178 // key/value pairs in profile_metrics. | 178 // key/value pairs in profile_metrics. |
179 void WriteProfileMetrics(const std::string& key, | 179 void WriteProfileMetrics(const std::string& key, |
180 const base::DictionaryValue& profile_metrics); | 180 const base::DictionaryValue& profile_metrics); |
181 | 181 |
| 182 // Within the profile group, write the OS information. |
| 183 void WriteOSInfoElement(); |
| 184 |
182 // Writes info about the Google Update install that is managing this client. | 185 // Writes info about the Google Update install that is managing this client. |
183 // This is a no-op if called on a non-Windows platform. | 186 // This is a no-op if called on a non-Windows platform. |
184 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); | 187 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); |
185 | 188 |
186 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 189 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
187 }; | 190 }; |
188 | 191 |
189 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 192 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
OLD | NEW |