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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.h

Issue 1527853002: bluetooth: Add disconnect function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-device-identifier
Patch Set: Fix test that fails after upstream change. Created 4 years, 11 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: 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 7bae29ca9316cfb697db47f1509ba1547759e6a6..bbfddde8bcb4b32abbf22b6ab5dffa795bd06b80 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,
@@ -298,8 +301,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_;
// Map of device_address's to primary-services requests that need responses
// when that device's service discovery completes.
« no previous file with comments | « content/browser/bluetooth/bluetooth_allowed_devices_map.cc ('k') | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698