Chromium Code Reviews| Index: device/bluetooth/bluetooth_device.h |
| diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
| index 319b54990a6e686f266d3260f65e8b532b23d08e..ec963866642d0620fd90f55a215068e270eccf0e 100644 |
| --- a/device/bluetooth/bluetooth_device.h |
| +++ b/device/bluetooth/bluetooth_device.h |
| @@ -62,7 +62,8 @@ class BluetoothDevice { |
| ERROR_AUTH_CANCELED, |
| ERROR_AUTH_REJECTED, |
| ERROR_AUTH_TIMEOUT, |
| - ERROR_UNSUPPORTED_DEVICE |
| + ERROR_UNSUPPORTED_DEVICE, |
| + ERROR_SDP_FAILED |
| }; |
| // Interface for observing changes from bluetooth devices. |
| @@ -178,6 +179,10 @@ class BluetoothDevice { |
| // and at least one service available for use. |
| virtual bool IsConnected() const; |
| + // Indicates whether the bonded device accepts connections initiated from the |
| + // adapter. This value is undefined for unbonded devices. |
| + virtual bool IsConnectable() const; |
| + |
| // Returns the services (as UUID strings) that this device provides. |
| typedef std::vector<std::string> ServiceList; |
| virtual const ServiceList& GetServices() const = 0; |
| @@ -323,6 +328,10 @@ class BluetoothDevice { |
| // The Bluetooth address of the device. |
| std::string address_; |
| + // Indicates whether the device normally accepts connections initiated from |
| + // the adapter once paired. |
| + bool connectable_; |
|
keybuk
2013/02/21 21:08:58
nit: should go below the other bools, to match the
deymo
2013/02/22 23:09:09
Done.
|
| + |
| // Tracked device state, updated by the adapter managing the lifecyle of |
| // the device. |
| bool visible_; |