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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 1538173003: Implementing GATT connection/disconnect on OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing chromium.gyp_env 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: device/bluetooth/bluetooth_adapter_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index 472c2f9bd104fc65cdf9e53719324d8612bc1069..20e70f01811b3bcc6835e0bab1b4625eaf448e26 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -97,16 +97,21 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
// (crbug.com/506287).
static bool IsLowEnergyAvailable();
- // Resets |low_energy_central_manager_| to |central_manager| and sets
- // |low_energy_central_manager_delegate_| as the manager's delegate. Should
- // be called only when |IsLowEnergyAvailable()|.
- void SetCentralManagerForTesting(CBCentralManager* central_manager);
+ void CreateGattConnection(BluetoothLowEnergyDeviceMac* device_mac);
scheib 2016/01/27 01:09:03 Comment group of methods. I see that these provide
jlebel 2016/02/10 13:38:51 Done.
+ void DidConnectPeripheral(CBPeripheral* peripheral);
+ void DisconnectGatt(BluetoothLowEnergyDeviceMac* device_mac);
protected:
// BluetoothAdapter override:
void RemovePairingDelegateInternal(
device::BluetoothDevice::PairingDelegate* pairing_delegate) override;
+ // Resets |low_energy_central_manager_| to |central_manager| and sets
+ // |low_energy_central_manager_delegate_| as the manager's delegate. Should
+ // be called only when |IsLowEnergyAvailable()|.
+ void SetCentralManagerForTesting(CBCentralManager* central_manager);
+ CBCentralManager* GetCentralManagerForTesting();
+
private:
// The length of time that must elapse since the last Inquiry response (on
// Classic devices) or call to BluetoothLowEnergyDevice::Update() (on Low

Powered by Google App Engine
This is Rietveld 408576698