#include "content/browser/bluetooth/bluetooth_adapter_factory_wrapper.h"
#include <stddef.h>
#include <utility>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_task_runner.h"
#include "content/browser/bluetooth/web_bluetooth_service_impl.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
namespace content {
namespace {
BluetoothAdapter;
BluetoothAdapterFactory;
}
BluetoothAdapterFactoryWrapper::BluetoothAdapterFactoryWrapper() { … }
BluetoothAdapterFactoryWrapper::~BluetoothAdapterFactoryWrapper() { … }
BluetoothAdapterFactoryWrapper& BluetoothAdapterFactoryWrapper::Get() { … }
bool BluetoothAdapterFactoryWrapper::IsLowEnergySupported() { … }
void BluetoothAdapterFactoryWrapper::AcquireAdapter(
WebBluetoothServiceImpl* service,
AcquireAdapterCallback callback) { … }
void BluetoothAdapterFactoryWrapper::ReleaseAdapter(
WebBluetoothServiceImpl* service) { … }
BluetoothAdapter* BluetoothAdapterFactoryWrapper::GetAdapter(
WebBluetoothServiceImpl* service) { … }
scoped_refptr<BluetoothAdapter>
BluetoothAdapterFactoryWrapper::GetActiveAdapter() { … }
void BluetoothAdapterFactoryWrapper::SetBluetoothAdapterOverride(
scoped_refptr<BluetoothAdapter> override_adapter) { … }
void BluetoothAdapterFactoryWrapper::OnGetAdapter(
AcquireAdapterCallback continuation,
scoped_refptr<BluetoothAdapter> adapter) { … }
void BluetoothAdapterFactoryWrapper::OnGetOverrideAdapter(
AcquireAdapterCallback continuation,
scoped_refptr<BluetoothAdapter> override_adapter) { … }
bool BluetoothAdapterFactoryWrapper::HasAdapter(
WebBluetoothServiceImpl* service) { … }
void BluetoothAdapterFactoryWrapper::MaybeAddAdapterObserver(
WebBluetoothServiceImpl* service) { … }
void BluetoothAdapterFactoryWrapper::RemoveAdapterObserver(
WebBluetoothServiceImpl* service) { … }
void BluetoothAdapterFactoryWrapper::SetAdapterInternal(
scoped_refptr<BluetoothAdapter> adapter,
bool is_override_adapter) { … }
}