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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); | 177 void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics); |
178 | 178 |
179 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() | 179 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() |
180 // call. | 180 // call. |
181 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); | 181 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); |
182 | 182 |
183 // Writes info about paired Bluetooth devices on this system. | 183 // Writes info about paired Bluetooth devices on this system. |
184 // This is a no-op if called on a non-Chrome OS platform. | 184 // This is a no-op if called on a non-Chrome OS platform. |
185 void WriteBluetoothProto(metrics::SystemProfileProto::Hardware* hardware); | 185 void WriteBluetoothProto(metrics::SystemProfileProto::Hardware* hardware); |
186 | 186 |
187 #if defined(OS_CHROMEOS) | |
188 // Update the number of users logged into a multi-profile session. | |
189 // If the number of users change while the log is open, we invalidate | |
Ilya Sherman
2013/10/08 01:31:03
nit: "we invalidate" -> "the call invalidates" or
Tim Song
2013/10/08 20:29:40
Done.
| |
190 // the value. | |
191 void UpdateMultiProfileUserCount(); | |
192 #endif | |
193 | |
187 // Observes network state to provide values for SystemProfile::Network. | 194 // Observes network state to provide values for SystemProfile::Network. |
188 MetricsNetworkObserver network_observer_; | 195 MetricsNetworkObserver network_observer_; |
189 | 196 |
190 #if defined(OS_CHROMEOS) | 197 #if defined(OS_CHROMEOS) |
191 metrics::PerfProvider perf_provider_; | 198 metrics::PerfProvider perf_provider_; |
192 #endif | 199 #endif |
193 | 200 |
194 // Bluetooth Adapter instance for collecting information about paired devices. | 201 // Bluetooth Adapter instance for collecting information about paired devices. |
195 scoped_refptr<device::BluetoothAdapter> adapter_; | 202 scoped_refptr<device::BluetoothAdapter> adapter_; |
196 | 203 |
197 DISALLOW_COPY_AND_ASSIGN(MetricsLog); | 204 DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
198 }; | 205 }; |
199 | 206 |
200 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ | 207 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ |
OLD | NEW |