chromium/device/bluetooth/floss/bluetooth_gatt_connection_floss.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_FLOSS_BLUETOOTH_GATT_CONNECTION_FLOSS_H_
#define DEVICE_BLUETOOTH_FLOSS_BLUETOOTH_GATT_CONNECTION_FLOSS_H_

#include "base/functional/callback.h"
#include "base/memory/weak_ptr.h"
#include "device/bluetooth/bluetooth_gatt_connection.h"
#include "device/bluetooth/floss/floss_adapter_client.h"
#include "device/bluetooth/floss/floss_dbus_client.h"
#include "device/bluetooth/floss/floss_gatt_manager_client.h"

namespace device {
class BluetoothAdapter;
}  // namespace device

namespace floss {

// BluetoothGattConnectionFloss is the Floss implementation tracking a Gatt
// connection. It observes the adapter client directly to keep track of
// connection status.
class BluetoothGattConnectionFloss : public device::BluetoothGattConnection,
                                     public floss::FlossAdapterClient::Observer,
                                     public floss::FlossGattClientObserver {};
}  // namespace floss

#endif  // DEVICE_BLUETOOTH_FLOSS_BLUETOOTH_GATT_CONNECTION_FLOSS_H_