#include "device/fido/ble_adapter_manager.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "components/device_event_log/device_event_log.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "device/fido/fido_request_handler_base.h"
namespace device {
namespace {
BleStatus;
const char* BleStatusToString(BleStatus ble_status) { … }
BleStatus GetBleAdapterStatus(const BluetoothAdapter& adapter) { … }
}
BleAdapterManager::BleAdapterManager(FidoRequestHandlerBase* request_handler)
: … { … }
BleAdapterManager::~BleAdapterManager() { … }
void BleAdapterManager::SetAdapterPower(bool set_power_on) { … }
void BleAdapterManager::RequestBluetoothPermission(
FidoRequestHandlerBase::BlePermissionCallback callback) { … }
void BleAdapterManager::OnHaveBluetoothPermission(
FidoRequestHandlerBase::BlePermissionCallback callback) { … }
void BleAdapterManager::AdapterPoweredChanged(BluetoothAdapter* adapter,
bool powered) { … }
void BleAdapterManager::Start(scoped_refptr<BluetoothAdapter> adapter) { … }
}