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

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: Rebase: patch was applying badly on HEAD and failing on trybots 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..7cec98484c829181a382716ae517f948e780f303 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,11 @@ class MetricsLog : public MetricsLogBase {
// This is a no-op if called on a non-Windows platform.
void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics);
+ // 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,
+ scoped_refptr<device::BluetoothAdapter> adapter);
+
// Observes network state to provide values for SystemProfile::Network.
MetricsNetworkObserver network_observer_;
@@ -196,6 +205,12 @@ class MetricsLog : public MetricsLogBase {
metrics::PerfProvider perf_provider_;
#endif
+ // Weak pointer factory for generating 'this' pointers that might live longer
+ // than we do.
+ // Note: This should remain the last member so it'll be destroyed and
+ // invalidate its weak pointers before any other members are destroyed.
Ilya Sherman 2013/04/23 00:09:43 Hmm, why is the destruction order important? Is t
keybuk 2013/04/23 00:41:42 comment copied from other code ;) removed
+ base::WeakPtrFactory<MetricsLog> weak_ptr_factory_;
+
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