Index: device/bluetooth/bluetooth_gatt_connection_mac.h |
diff --git a/device/bluetooth/bluetooth_gatt_connection_mac.h b/device/bluetooth/bluetooth_gatt_connection_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bfd3681291cbddaab9252cb3839cb03501fb9ece |
--- /dev/null |
+++ b/device/bluetooth/bluetooth_gatt_connection_mac.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |
+#define DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |
+ |
+#include "device/bluetooth/bluetooth_gatt_connection.h" |
+ |
+#include "device/bluetooth/bluetooth_adapter.h" |
+ |
+namespace device { |
+ |
+class BluetoothLowEnergyDeviceMac; |
+ |
+class DEVICE_BLUETOOTH_EXPORT BluetoothGattConnectionMac |
+ : public BluetoothGattConnection { |
+ public: |
+ BluetoothGattConnectionMac(scoped_refptr<BluetoothAdapter> adapter, |
+ std::string device_address); |
+ ~BluetoothGattConnectionMac() override; |
+ |
+ // BluetoothGattConenction overrides. |
+ std::string GetDeviceAddress() const override; |
+ bool IsConnected() override; |
+ void Disconnect(const base::Closure& callback) override; |
+ |
+ // Bluetooth adapter the connection is associated with. |
+ scoped_refptr<BluetoothAdapter> adapter_; |
+ |
+ // The address of the associated Bluetooth device. |
+ std::string device_address_; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(BluetoothGattConnectionMac); |
+}; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_GATT_CONNECTION_MAC_H_ |