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

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

Issue 1592733002: Clear the BLE services list on disconnect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the bluetooth/getPrimaryService.html timeout issue 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
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d45271d0464dd192af4adc0c296d0de9bd7a957e..bf2480da04cb469bdd038d0fc0ecef942ab0f7a7 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.h
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.h
@@ -222,12 +222,6 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
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(
@@ -282,9 +276,6 @@ class CONTENT_EXPORT BluetoothDispatcherHost final
// 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>>
« no previous file with comments | « no previous file | content/browser/bluetooth/bluetooth_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698