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

Unified Diff: chrome/browser/metrics/metrics_log.h

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing SetBluetoothAdapter method; remove weakptr; add DCHECKs Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log.h
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h
index f5cf34e9235085c1440661515c4a7956dd14f613..2d102d04f010d3ea5d0ee6bea2674dfe6107e764 100644
--- a/chrome/browser/metrics/metrics_log.h
+++ b/chrome/browser/metrics/metrics_log.h
@@ -30,6 +30,10 @@ namespace base {
class DictionaryValue;
}
+namespace device {
+class BluetoothAdapter;
+}
+
namespace tracked_objects {
struct ProcessDataSnapshot;
}
@@ -189,6 +193,14 @@ class MetricsLog : public MetricsLogBase {
// This is a no-op if called on a non-Windows platform.
void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics);
+ // Sets the Bluetooth Adapter instance used for the WriteBluetoothProto()
+ // call.
+ void SetBluetoothAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
+
+ // Writes info about paired Bluetooth devices on this system.
+ // This is a no-op if called on a non-Chrome OS platform.
+ void WriteBluetoothProto(metrics::SystemProfileProto::Hardware* hardware);
+
// Observes network state to provide values for SystemProfile::Network.
MetricsNetworkObserver network_observer_;
@@ -196,6 +208,9 @@ class MetricsLog : public MetricsLogBase {
metrics::PerfProvider perf_provider_;
#endif
+ // Bluetooth Adapter instance for collecting information about paired devices.
+ scoped_refptr<device::BluetoothAdapter> adapter_;
+
DISALLOW_COPY_AND_ASSIGN(MetricsLog);
};
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | chrome/browser/metrics/metrics_log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698