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..4c49a17614c3a280066405333b4b4f6a11116890 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,13 @@ class MetricsLog : public MetricsLogBase { |
metrics::PerfProvider perf_provider_; |
#endif |
+ // Bluetooth Adapter instance for collecting information about paired devices. |
+ scoped_refptr<device::BluetoothAdapter> adapter_; |
+ |
+ // Weak pointer factory for generating 'this' pointers that might live longer |
+ // than we do. |
+ base::WeakPtrFactory<MetricsLog> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(MetricsLog); |
}; |