Chromium Code Reviews| Index: device/bluetooth/bluetooth_device.h |
| diff --git a/device/bluetooth/bluetooth_device.h b/device/bluetooth/bluetooth_device.h |
| index a28bc9e244b9a2d54a308fceca4135147b1d251c..aa5a1534b6d68db8a3d624d829f8269e47db6bdc 100644 |
| --- a/device/bluetooth/bluetooth_device.h |
| +++ b/device/bluetooth/bluetooth_device.h |
| @@ -424,6 +424,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
| virtual void CreateGattConnection(const GattConnectionCallback& callback, |
| const ConnectErrorCallback& error_callback); |
| + // Set the gatt services discovery complete flag for this device. |
|
ortuno
2016/01/13 18:22:02
nit: comment should be descriptive rather than imp
|
| + void SetGattServicesDiscoveryComplete(bool complete); |
| + |
| + // Indicates whether service discovery is complete for this device. |
| + bool IsGattServicesDiscoveryComplete() const; |
| + |
| // Returns the list of discovered GATT services. |
| virtual std::vector<BluetoothGattService*> GetGattServices() const; |
| @@ -454,6 +460,8 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
| BluetoothGattConnection_DisconnectGatt_SimulateDisconnect); |
| FRIEND_TEST_ALL_PREFIXES(BluetoothTest, |
| BluetoothGattConnection_ErrorAfterConnection); |
| + FRIEND_TEST_ALL_PREFIXES(BluetoothTest, |
| + BluetoothGattConnection_DisconnectGatt_Cleanup); |
| BluetoothDevice(BluetoothAdapter* adapter); |
| @@ -511,6 +519,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
| typedef base::ScopedPtrHashMap<std::string, scoped_ptr<BluetoothGattService>> |
| GattServiceMap; |
| GattServiceMap gatt_services_; |
| + bool gatt_services_discovery_complete_; |
| // Mapping from service UUID represented as a std::string of a bluetooth |
| // service to |