#include "extensions/browser/api/bluetooth/bluetooth_extension_function.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
#include "extensions/browser/api/bluetooth/bluetooth_api.h"
#include "extensions/browser/api/bluetooth/bluetooth_event_router.h"
BrowserThread;
namespace {
const char kPlatformNotSupported[] = …;
extensions::BluetoothEventRouter* GetEventRouter(
content::BrowserContext* context) { … }
bool IsBluetoothSupported(content::BrowserContext* context) { … }
void GetAdapter(device::BluetoothAdapterFactory::AdapterCallback callback,
content::BrowserContext* context) { … }
}
namespace extensions {
namespace api {
BluetoothExtensionFunction::BluetoothExtensionFunction() { … }
BluetoothExtensionFunction::~BluetoothExtensionFunction() { … }
ExtensionFunction::ResponseAction BluetoothExtensionFunction::Run() { … }
bool BluetoothExtensionFunction::CreateParams() { … }
std::string BluetoothExtensionFunction::GetExtensionId() { … }
void BluetoothExtensionFunction::RunOnAdapterReady(
scoped_refptr<device::BluetoothAdapter> adapter) { … }
}
}