OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |
| 7 |
| 8 #include "device/bluetooth/bluetooth_gatt_connection.h" |
| 9 |
| 10 #include "device/bluetooth/bluetooth_adapter.h" |
| 11 |
| 12 namespace device { |
| 13 |
| 14 class BluetoothLowEnergyDeviceMac; |
| 15 |
| 16 class DEVICE_BLUETOOTH_EXPORT BluetoothGattConnectionMac |
| 17 : public BluetoothGattConnection { |
| 18 public: |
| 19 BluetoothGattConnectionMac(scoped_refptr<BluetoothAdapter> adapter, |
| 20 std::string device_address); |
| 21 ~BluetoothGattConnectionMac() override; |
| 22 |
| 23 // BluetoothGattConenction overrides. |
| 24 std::string GetDeviceAddress() const override; |
| 25 bool IsConnected() override; |
| 26 void Disconnect(const base::Closure& callback) override; |
| 27 |
| 28 // Bluetooth adapter the connection is associated with. |
| 29 scoped_refptr<BluetoothAdapter> adapter_; |
| 30 |
| 31 // The address of the associated Bluetooth device. |
| 32 std::string device_address_; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionMac); |
| 36 }; |
| 37 |
| 38 } // namespace device |
| 39 |
| 40 #endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |
OLD | NEW |