Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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_METRICS_METRICS_LOG_CHROMEOS_H_ | |
| 6 #define CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_ | |
| 7 | |
| 8 #include "chrome/browser/chromeos/login/user_manager.h" | |
| 9 #include "chrome/browser/metrics/perf_provider_chromeos.h" | |
| 10 #include "chrome/common/metrics/proto/chrome_user_metrics_extension.pb.h" | |
| 11 #include "chrome/common/metrics/proto/system_profile.pb.h" | |
| 12 #include "ui/events/event_utils.h" | |
| 13 #include "ui/events/x/touch_factory_x11.h" | |
|
Alexei Svitkine (slow)
2014/01/30 18:17:54
Do you need all these includes in the header? For
tdresser
2014/01/30 19:32:30
Done.
| |
| 14 | |
| 15 namespace device { | |
| 16 class BluetoothAdapter; | |
| 17 } | |
| 18 | |
| 19 // Performs ChromeOS specific metrics logging. | |
| 20 class MetricsLogChromeOS { | |
| 21 public: | |
| 22 explicit MetricsLogChromeOS(metrics::SystemProfileProto* system_profile); | |
| 23 virtual ~MetricsLogChromeOS(); | |
| 24 | |
| 25 void LogChromeOSMetrics( | |
|
Alexei Svitkine (slow)
2014/01/30 18:17:54
Add a short comment about each of these methods.
tdresser
2014/01/30 19:32:30
Done.
| |
| 26 metrics::SystemProfileProto* system_profile, | |
| 27 metrics::ChromeUserMetricsExtension* uma_proto); | |
| 28 void WriteRealtimeStabilityAttributes( | |
| 29 PrefService* pref, | |
| 30 metrics::SystemProfileProto::Stability* stability); | |
| 31 | |
| 32 private: | |
| 33 // Update the number of users logged into a multi-profile session. | |
| 34 // If the number of users change while the log is open, the call invalidates | |
| 35 // the user count value. | |
| 36 void UpdateMultiProfileUserCount( | |
| 37 metrics::SystemProfileProto* system_profile); | |
| 38 | |
| 39 void WriteExternalTouchscreensProto( | |
| 40 metrics::SystemProfileProto::Hardware* hardware); | |
| 41 | |
| 42 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto() | |
| 43 // call. | |
| 44 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter); | |
| 45 | |
| 46 // Writes info about paired Bluetooth devices on this system. | |
| 47 virtual void WriteBluetoothProto( | |
| 48 metrics::SystemProfileProto::Hardware* hardware); | |
| 49 | |
| 50 metrics::PerfProvider perf_provider_; | |
| 51 // Bluetooth Adapter instance for collecting information about paired devices. | |
|
Alexei Svitkine (slow)
2014/01/30 18:17:54
Nit: Add an empty line before this comment.
tdresser
2014/01/30 19:32:30
Done.
| |
| 52 scoped_refptr<device::BluetoothAdapter> adapter_; | |
| 53 | |
| 54 DISALLOW_COPY_AND_ASSIGN(MetricsLogChromeOS); | |
| 55 }; | |
| 56 | |
| 57 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_ | |
| OLD | NEW |