#ifndef EXTENSIONS_COMMON_API_BLUETOOTH_PRIVATE_H__
#define EXTENSIONS_COMMON_API_BLUETOOTH_PRIVATE_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
#include "extensions/common/api/bluetooth.h"
namespace extensions {
namespace api {
namespace bluetooth_private {
enum class PairingEventType { … };
const char* ToString(PairingEventType as_enum);
PairingEventType ParsePairingEventType(std::string_view as_string);
std::u16string GetPairingEventTypeParseError(std::string_view as_string);
enum class ConnectResultType { … };
const char* ToString(ConnectResultType as_enum);
ConnectResultType ParseConnectResultType(std::string_view as_string);
std::u16string GetConnectResultTypeParseError(std::string_view as_string);
enum class PairingResponse { … };
const char* ToString(PairingResponse as_enum);
PairingResponse ParsePairingResponse(std::string_view as_string);
std::u16string GetPairingResponseParseError(std::string_view as_string);
enum class TransportType { … };
const char* ToString(TransportType as_enum);
TransportType ParseTransportType(std::string_view as_string);
std::u16string GetTransportTypeParseError(std::string_view as_string);
struct PairingEvent { … };
struct NewAdapterState { … };
struct SetPairingResponseOptions { … };
struct DiscoveryFilter { … };
namespace SetAdapterState {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace SetPairingResponse {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace DisconnectAll {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ForgetDevice {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace SetDiscoveryFilter {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Connect {
struct Params { … };
namespace Results {
base::Value::List Create(const ConnectResultType& result);
}
}
namespace Pair {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace RecordPairing {
struct Params { … };
}
namespace RecordReconnection {
struct Params { … };
}
namespace RecordDeviceSelection {
struct Params { … };
}
namespace OnPairing {
extern const char kEventName[];
base::Value::List Create(const PairingEvent& pairing_event);
}
namespace OnDeviceAddressChanged {
extern const char kEventName[];
base::Value::List Create(const extensions::api::bluetooth::Device& device, const std::string& old_address);
}
}
}
}
#endif