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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Within the stability group, write required attributes. | 164 // Within the stability group, write required attributes. |
165 void WriteRequiredStabilityAttributes(PrefService* pref); | 165 void WriteRequiredStabilityAttributes(PrefService* pref); |
166 | 166 |
167 // Within the stability group, write attributes that need to be updated asap | 167 // Within the stability group, write attributes that need to be updated asap |
168 // and can't be delayed until the user decides to restart chromium. | 168 // and can't be delayed until the user decides to restart chromium. |
169 // Delaying these stats would bias metrics away from happy long lived | 169 // Delaying these stats would bias metrics away from happy long lived |
170 // chromium processes (ones that don't crash, and keep on running). | 170 // chromium processes (ones that don't crash, and keep on running). |
171 void WriteRealtimeStabilityAttributes(PrefService* pref); | 171 void WriteRealtimeStabilityAttributes(PrefService* pref); |
172 | 172 |
173 // Writes the list of installed plugins. If |write_as_xml| is true, writes | 173 // Writes the list of installed plugins. |
174 // the XML version. Otherwise, writes the protobuf version. | 174 void WritePluginList(const std::vector<webkit::WebPluginInfo>& plugin_list); |
175 void WritePluginList( | |
176 const std::vector<webkit::WebPluginInfo>& plugin_list, | |
177 bool write_as_xml); | |
178 | |
179 // Within the profile group, write basic install info including appversion. | |
180 void WriteInstallElement(); | |
181 | 175 |
182 // Writes all profile metrics. This invokes WriteProfileMetrics for each key | 176 // Writes all profile metrics. This invokes WriteProfileMetrics for each key |
183 // in all_profiles_metrics that starts with kProfilePrefix. | 177 // in all_profiles_metrics that starts with kProfilePrefix. |
184 void WriteAllProfilesMetrics( | 178 void WriteAllProfilesMetrics( |
185 const base::DictionaryValue& all_profiles_metrics); | 179 const base::DictionaryValue& all_profiles_metrics); |
186 | 180 |
187 // Writes metrics for the profile identified by key. This writes all | 181 // Writes metrics for the profile identified by key. This writes all |
188 // key/value pairs in profile_metrics. | 182 // key/value pairs in profile_metrics. |
189 void WriteProfileMetrics(const std::string& key, | 183 void WriteProfileMetrics(const std::string& key, |
190 const base::DictionaryValue& profile_metrics); | 184 const base::DictionaryValue& profile_metrics); |
(...skipping 17 matching lines...) Expand all Loading... |
208 metrics::PerfProvider perf_provider_; | 202 metrics::PerfProvider perf_provider_; |
209 #endif | 203 #endif |
210 | 204 |
211 // Bluetooth Adapter instance for collecting information about paired devices. | 205 // Bluetooth Adapter instance for collecting information about paired devices. |
212 scoped_refptr<device::BluetoothAdapter> adapter_; | 206 scoped_refptr<device::BluetoothAdapter> adapter_; |
213 | 207 |
214 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 208 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
215 }; | 209 }; |
216 | 210 |
217 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 211 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
OLD | NEW |