#ifndef EXTENSIONS_COMMON_API_BLUETOOTH_H__
#define EXTENSIONS_COMMON_API_BLUETOOTH_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
namespace extensions {
namespace api {
namespace bluetooth {
enum class VendorIdSource { … };
const char* ToString(VendorIdSource as_enum);
VendorIdSource ParseVendorIdSource(std::string_view as_string);
std::u16string GetVendorIdSourceParseError(std::string_view as_string);
enum class DeviceType { … };
const char* ToString(DeviceType as_enum);
DeviceType ParseDeviceType(std::string_view as_string);
std::u16string GetDeviceTypeParseError(std::string_view as_string);
enum class FilterType { … };
const char* ToString(FilterType as_enum);
FilterType ParseFilterType(std::string_view as_string);
std::u16string GetFilterTypeParseError(std::string_view as_string);
enum class Transport { … };
const char* ToString(Transport as_enum);
Transport ParseTransport(std::string_view as_string);
std::u16string GetTransportParseError(std::string_view as_string);
struct AdapterState { … };
struct Device { … };
struct BluetoothFilter { … };
namespace GetAdapterState {
namespace Results {
base::Value::List Create(const AdapterState& adapter_info);
}
}
namespace GetDevice {
struct Params { … };
namespace Results {
base::Value::List Create(const Device& device_info);
}
}
namespace GetDevices {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<Device>& device_infos);
}
}
namespace StartDiscovery {
namespace Results {
base::Value::List Create();
}
}
namespace StopDiscovery {
namespace Results {
base::Value::List Create();
}
}
namespace OnAdapterStateChanged {
extern const char kEventName[];
base::Value::List Create(const AdapterState& state);
}
namespace OnDeviceAdded {
extern const char kEventName[];
base::Value::List Create(const Device& device);
}
namespace OnDeviceChanged {
extern const char kEventName[];
base::Value::List Create(const Device& device);
}
namespace OnDeviceRemoved {
extern const char kEventName[];
base::Value::List Create(const Device& device);
}
}
}
}
#endif