| 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 22311b1ca91e86bb2f66ceeb1eedb563de071c4e..da3c49b89c1e2e799c54f4fd317a219120256df4 100644
|
| --- a/content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| +++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h
|
| @@ -107,6 +107,9 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
|
| int request_id,
|
| int frame_routing_id,
|
| const std::string& device_id);
|
| + void OnDisconnect(int thread_id,
|
| + int frame_routing_id,
|
| + const std::string& device_id);
|
| void OnGetPrimaryService(int thread_id,
|
| int request_id,
|
| int frame_routing_id,
|
| @@ -165,6 +168,7 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
|
| void OnGATTConnectionCreated(
|
| int thread_id,
|
| int request_id,
|
| + int frame_routing_id,
|
| const std::string& device_id,
|
| base::TimeTicks start_time,
|
| scoped_ptr<device::BluetoothGattConnection> connection);
|
| @@ -298,8 +302,8 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
|
| base::Timer discovery_session_timer_;
|
|
|
| // Retain BluetoothGattConnection objects to keep connections open.
|
| - // TODO(scheib): Destroy as connections are closed. http://crbug.com/539643
|
| - ScopedVector<device::BluetoothGattConnection> connections_;
|
| + std::map<std::string, scoped_ptr<device::BluetoothGattConnection>>
|
| + device_id_to_connection_map_;
|
|
|
| // Keeps track of which devices have had their services discovered.
|
| std::set<std::string> devices_with_discovered_services_;
|
|
|