#include "third_party/blink/renderer/modules/bluetooth/bluetooth_uuid.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_string_unsignedlong.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/blink/renderer/platform/wtf/text/string_hash.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/uuid.h"
namespace blink {
namespace {
NameToAssignedNumberMap;
enum class GATTAttribute { … };
NameToAssignedNumberMap* GetAssignedNumberToServiceNameMap() { … }
NameToAssignedNumberMap* GetAssignedNumberForCharacteristicNameMap() { … }
NameToAssignedNumberMap* GetAssignedNumberForDescriptorNameMap() { … }
String GetUUIDFromV8Value(const V8UnionStringOrUnsignedLong* value) { … }
String GetUUIDForGATTAttribute(GATTAttribute attribute,
const V8UnionStringOrUnsignedLong* name,
ExceptionState& exception_state) { … }
}
String GetBluetoothUUIDFromV8Value(const V8UnionStringOrUnsignedLong* value) { … }
String BluetoothUUID::getService(const V8BluetoothServiceUUID* name,
ExceptionState& exception_state) { … }
String BluetoothUUID::getCharacteristic(
const V8BluetoothCharacteristicUUID* name,
ExceptionState& exception_state) { … }
String BluetoothUUID::getDescriptor(const V8BluetoothDescriptorUUID* name,
ExceptionState& exception_state) { … }
String BluetoothUUID::canonicalUUID(unsigned alias) { … }
}