chromium/out/Default/gen/extensions/common/api/bluetooth_private.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   extensions/common/api/bluetooth_private.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/bluetooth_private.h"

#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>
#include "extensions/common/api/bluetooth.h"


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace bluetooth_private {
//
// Types
//

const char* ToString(PairingEventType enum_param) {}

PairingEventType ParsePairingEventType(std::string_view enum_string) {}

std::u16string GetPairingEventTypeParseError(std::string_view enum_string) {}


const char* ToString(ConnectResultType enum_param) {}

ConnectResultType ParseConnectResultType(std::string_view enum_string) {}

std::u16string GetConnectResultTypeParseError(std::string_view enum_string) {}


const char* ToString(PairingResponse enum_param) {}

PairingResponse ParsePairingResponse(std::string_view enum_string) {}

std::u16string GetPairingResponseParseError(std::string_view enum_string) {}


const char* ToString(TransportType enum_param) {}

TransportType ParseTransportType(std::string_view enum_string) {}

std::u16string GetTransportTypeParseError(std::string_view enum_string) {}


PairingEvent::PairingEvent()
:{}

PairingEvent::~PairingEvent() = default;
PairingEvent::PairingEvent(PairingEvent&& rhs) noexcept = default;
PairingEvent& PairingEvent::operator=(PairingEvent&& rhs) noexcept = default;
PairingEvent PairingEvent::Clone() const {}

// static
bool PairingEvent::Populate(
    const base::Value::Dict& dict, PairingEvent& out) {}

// static
bool PairingEvent::Populate(
    const base::Value& value, PairingEvent& out) {}

// static
std::optional<PairingEvent> PairingEvent::FromValue(const base::Value::Dict& value) {}

// static
std::optional<PairingEvent> PairingEvent::FromValue(const base::Value& value) {}

base::Value::Dict PairingEvent::ToValue() const {}


NewAdapterState::NewAdapterState()
 {}

NewAdapterState::~NewAdapterState() = default;
NewAdapterState::NewAdapterState(NewAdapterState&& rhs) noexcept = default;
NewAdapterState& NewAdapterState::operator=(NewAdapterState&& rhs) noexcept = default;
NewAdapterState NewAdapterState::Clone() const {}

// static
bool NewAdapterState::Populate(
    const base::Value::Dict& dict, NewAdapterState& out) {}

// static
bool NewAdapterState::Populate(
    const base::Value& value, NewAdapterState& out) {}

// static
std::optional<NewAdapterState> NewAdapterState::FromValue(const base::Value::Dict& value) {}

// static
std::optional<NewAdapterState> NewAdapterState::FromValue(const base::Value& value) {}

base::Value::Dict NewAdapterState::ToValue() const {}


SetPairingResponseOptions::SetPairingResponseOptions()
:{}

SetPairingResponseOptions::~SetPairingResponseOptions() = default;
SetPairingResponseOptions::SetPairingResponseOptions(SetPairingResponseOptions&& rhs) noexcept = default;
SetPairingResponseOptions& SetPairingResponseOptions::operator=(SetPairingResponseOptions&& rhs) noexcept = default;
SetPairingResponseOptions SetPairingResponseOptions::Clone() const {}

// static
bool SetPairingResponseOptions::Populate(
    const base::Value::Dict& dict, SetPairingResponseOptions& out) {}

// static
bool SetPairingResponseOptions::Populate(
    const base::Value& value, SetPairingResponseOptions& out) {}

// static
std::optional<SetPairingResponseOptions> SetPairingResponseOptions::FromValue(const base::Value::Dict& value) {}

// static
std::optional<SetPairingResponseOptions> SetPairingResponseOptions::FromValue(const base::Value& value) {}

base::Value::Dict SetPairingResponseOptions::ToValue() const {}


DiscoveryFilter::Uuids::Uuids()
 {}

DiscoveryFilter::Uuids::~Uuids() = default;
DiscoveryFilter::Uuids::Uuids(Uuids&& rhs) noexcept = default;
DiscoveryFilter::Uuids& DiscoveryFilter::Uuids::operator=(Uuids&& rhs) noexcept = default;
DiscoveryFilter::Uuids DiscoveryFilter::Uuids::Clone() const {}

// static
bool DiscoveryFilter::Uuids::Populate(
    const base::Value& value, Uuids& out) {}

// static
std::optional<DiscoveryFilter::Uuids> DiscoveryFilter::Uuids::FromValue(const base::Value& value) {}

base::Value DiscoveryFilter::Uuids::ToValue() const {}



DiscoveryFilter::DiscoveryFilter()
:{}

DiscoveryFilter::~DiscoveryFilter() = default;
DiscoveryFilter::DiscoveryFilter(DiscoveryFilter&& rhs) noexcept = default;
DiscoveryFilter& DiscoveryFilter::operator=(DiscoveryFilter&& rhs) noexcept = default;
DiscoveryFilter DiscoveryFilter::Clone() const {}

// static
bool DiscoveryFilter::Populate(
    const base::Value::Dict& dict, DiscoveryFilter& out) {}

// static
bool DiscoveryFilter::Populate(
    const base::Value& value, DiscoveryFilter& out) {}

// static
std::optional<DiscoveryFilter> DiscoveryFilter::FromValue(const base::Value::Dict& value) {}

// static
std::optional<DiscoveryFilter> DiscoveryFilter::FromValue(const base::Value& value) {}

base::Value::Dict DiscoveryFilter::ToValue() const {}



//
// Functions
//

namespace SetAdapterState {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SetAdapterState

namespace SetPairingResponse {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SetPairingResponse

namespace DisconnectAll {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace DisconnectAll

namespace ForgetDevice {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace ForgetDevice

namespace SetDiscoveryFilter {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SetDiscoveryFilter

namespace Connect {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const ConnectResultType& result) {}
}  // namespace Connect

namespace Pair {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace Pair

namespace RecordPairing {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace RecordPairing

namespace RecordReconnection {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace RecordReconnection

namespace RecordDeviceSelection {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace RecordDeviceSelection

//
// Events
//

namespace OnPairing {

const char kEventName[] =;

base::Value::List Create(const PairingEvent& pairing_event) {}

}  // namespace OnPairing

namespace OnDeviceAddressChanged {

const char kEventName[] =;

base::Value::List Create(const extensions::api::bluetooth::Device& device, const std::string& old_address) {}

}  // namespace OnDeviceAddressChanged

}  // namespace bluetooth_private
}  // namespace api
}  // namespace extensions