Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: chrome/browser/metrics/metrics_log_chromeos.h

Issue 146913005: Factor ChromeOS specific code out of MetricsLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missed some necessary #defines in unit tests. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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"
14
15 namespace device {
16 class BluetoothAdapter;
17 }
18
19 // Performs ChromeOS specific metrics logging.
20 class MetricsLogChromeOS {
21 public:
22 explicit MetricsLogChromeOS(metrics::ChromeUserMetricsExtension* uma_proto);
23 virtual ~MetricsLogChromeOS();
24
25 void LogChromeOSMetrics(metrics::ChromeUserMetricsExtension* uma_proto);
26 void WriteRealtimeStabilityAttributes(
27 PrefService* pref, metrics::SystemProfileProto::Stability* stability);
Alexei Svitkine (slow) 2014/01/30 16:30:45 1 param per line.
tdresser 2014/01/30 18:04:25 Done.
28
29 protected:
Alexei Svitkine (slow) 2014/01/30 16:30:45 Can this section be private?
tdresser 2014/01/30 18:04:25 Done.
30 // Update the number of users logged into a multi-profile session.
31 // If the number of users change while the log is open, the call invalidates
32 // the user count value.
33 void UpdateMultiProfileUserCount(
34 metrics::ChromeUserMetricsExtension* uma_proto);
35
36 void WriteExternalTouchscreensProto(
37 metrics::SystemProfileProto::Hardware* hardware);
38
39 // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto()
40 // call.
41 void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
42
43 // Writes info about paired Bluetooth devices on this system.
44 virtual void WriteBluetoothProto(
45 metrics::SystemProfileProto::Hardware* hardware);
46
47 metrics::PerfProvider perf_provider_;
48 // Bluetooth Adapter instance for collecting information about paired devices.
49 scoped_refptr<device::BluetoothAdapter> adapter_;
50
51 DISALLOW_COPY_AND_ASSIGN(MetricsLogChromeOS);
52 };
53
54 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698