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

Unified Diff: device/bluetooth/bluetooth_device.h

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase since Cellular.* appeared under us 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
Index: device/bluetooth/bluetooth_device.h
diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h
index c48fff740bf8885c2bef893650a2a3b3905501a6..e442080774414da6edc9e39f66ba80c2ac3560bd 100644
--- a/device/bluetooth/bluetooth_device.h
+++ b/device/bluetooth/bluetooth_device.h
@@ -167,10 +167,24 @@ class BluetoothDevice {
virtual ~BluetoothDevice();
+ // Returns the Bluetooth class of the device, used by GetDeviceType()
+ // and metrics logging,
+ virtual uint32 GetBluetoothClass() const = 0;
+
// Returns the Bluetooth of address the device. This should be used as
// a unique key to identify the device and copied where needed.
virtual std::string GetAddress() const = 0;
+ // Returns the Vendor ID of the device, where available.
+ virtual uint16 GetVendorID() const = 0;
+
+ // Returns the Product ID of the device, where available.
+ virtual uint16 GetProductID() const = 0;
+
+ // Returns the Device ID of the device, typically the release or version
+ // number in BCD format, where available.
+ virtual uint16 GetDeviceID() const = 0;
+
// Returns the name of the device suitable for displaying, this may
// be a synthesied string containing the address and localized type name
// if the device has no obtained name.
@@ -344,9 +358,6 @@ class BluetoothDevice {
protected:
BluetoothDevice();
- // Returns the Bluetooth class of the device, used by GetDeviceType().
- virtual uint32 GetBluetoothClass() const = 0;
-
// Returns the internal name of the Bluetooth device, used by GetName().
virtual std::string GetDeviceName() const = 0;
« no previous file with comments | « device/bluetooth/bluetooth_adapter_experimental_chromeos.cc ('k') | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698