| Index: content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.h b/content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| index bf2480da04cb469bdd038d0fc0ecef942ab0f7a7..d45271d0464dd192af4adc0c296d0de9bd7a957e 100644
|
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| @@ -222,6 +222,12 @@
|
| CacheQueryResult QueryCacheForCharacteristic(
|
| const std::string& characteristic_instance_id);
|
|
|
| + // Returns true if all services have been discovered for the device.
|
| + // When the host gets a ServiceChanged indication, it automatically
|
| + // re-discovers services, and only forwards the ServiceChanged event to this
|
| + // class when it's done re-discovering.
|
| + bool IsServicesDiscoveryCompleteForDevice(const std::string& device_id);
|
| +
|
| // Adds the PrimaryServicesRequest to the vector of pending services requests
|
| // for that device.
|
| void AddToPendingPrimaryServicesRequest(
|
| @@ -276,6 +282,9 @@
|
| // TODO(scheib): Destroy as connections are closed. http://crbug.com/539643
|
| ScopedVector<device::BluetoothGattConnection> connections_;
|
|
|
| + // Keeps track of which devices have had their services discovered.
|
| + std::set<std::string> devices_with_discovered_services_;
|
| +
|
| // Map of device_id's to primary-services requests that need responses when
|
| // that device's service discovery completes.
|
| std::map<std::string, std::vector<PrimaryServicesRequest>>
|
|
|