chromium/out/Default/gen/extensions/common/api/bluetooth_socket.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_socket.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/bluetooth_socket.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>


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace bluetooth_socket {
//
// Types
//

SocketProperties::SocketProperties()
 {}

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

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

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

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

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

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


CreateInfo::CreateInfo()
:{}

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

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

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

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

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

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


ListenOptions::ListenOptions()
 {}

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

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

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

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

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

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


SocketInfo::SocketInfo()
:{}

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

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

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

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

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

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


AcceptInfo::AcceptInfo()
:{}

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

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

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

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

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

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


const char* ToString(AcceptError enum_param) {}

AcceptError ParseAcceptError(std::string_view enum_string) {}

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


AcceptErrorInfo::AcceptErrorInfo()
:{}

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

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

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

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

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

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


ReceiveInfo::ReceiveInfo()
:{}

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

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

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

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

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

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


const char* ToString(ReceiveError enum_param) {}

ReceiveError ParseReceiveError(std::string_view enum_string) {}

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


ReceiveErrorInfo::ReceiveErrorInfo()
:{}

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

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

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

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

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

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



//
// Functions
//

namespace Create {

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 CreateInfo& create_info) {}
}  // namespace Create

namespace Update {

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 Update

namespace SetPaused {

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 SetPaused

namespace ListenUsingRfcomm {

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 ListenUsingRfcomm

namespace ListenUsingL2cap {

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 ListenUsingL2cap

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() {}
}  // namespace Connect

namespace Disconnect {

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 Disconnect

namespace Close {

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 Close

namespace Send {

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(int bytes_sent) {}
}  // namespace Send

namespace GetInfo {

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 SocketInfo& socket_info) {}
}  // namespace GetInfo

namespace GetSockets {

base::Value::List Results::Create(const std::vector<SocketInfo>& sockets) {}
}  // namespace GetSockets

//
// Events
//

namespace OnAccept {

const char kEventName[] =;

base::Value::List Create(const AcceptInfo& info) {}

}  // namespace OnAccept

namespace OnAcceptError {

const char kEventName[] =;

base::Value::List Create(const AcceptErrorInfo& info) {}

}  // namespace OnAcceptError

namespace OnReceive {

const char kEventName[] =;

base::Value::List Create(const ReceiveInfo& info) {}

}  // namespace OnReceive

namespace OnReceiveError {

const char kEventName[] =;

base::Value::List Create(const ReceiveErrorInfo& info) {}

}  // namespace OnReceiveError

}  // namespace bluetooth_socket
}  // namespace api
}  // namespace extensions