#include "chrome/common/extensions/api/debugger.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 debugger {
Debuggee::Debuggee()
{ … }
Debuggee::~Debuggee() = default;
Debuggee::Debuggee(Debuggee&& rhs) noexcept = default;
Debuggee& Debuggee::operator=(Debuggee&& rhs) noexcept = default;
Debuggee Debuggee::Clone() const { … }
bool Debuggee::Populate(
const base::Value::Dict& dict, Debuggee& out) { … }
bool Debuggee::Populate(
const base::Value& value, Debuggee& out) { … }
std::optional<Debuggee> Debuggee::FromValue(const base::Value::Dict& value) { … }
std::optional<Debuggee> Debuggee::FromValue(const base::Value& value) { … }
base::Value::Dict Debuggee::ToValue() const { … }
DebuggerSession::DebuggerSession()
{ … }
DebuggerSession::~DebuggerSession() = default;
DebuggerSession::DebuggerSession(DebuggerSession&& rhs) noexcept = default;
DebuggerSession& DebuggerSession::operator=(DebuggerSession&& rhs) noexcept = default;
DebuggerSession DebuggerSession::Clone() const { … }
bool DebuggerSession::Populate(
const base::Value::Dict& dict, DebuggerSession& out) { … }
bool DebuggerSession::Populate(
const base::Value& value, DebuggerSession& out) { … }
std::optional<DebuggerSession> DebuggerSession::FromValue(const base::Value::Dict& value) { … }
std::optional<DebuggerSession> DebuggerSession::FromValue(const base::Value& value) { … }
base::Value::Dict DebuggerSession::ToValue() const { … }
const char* ToString(TargetInfoType enum_param) { … }
TargetInfoType ParseTargetInfoType(std::string_view enum_string) { … }
std::u16string GetTargetInfoTypeParseError(std::string_view enum_string) { … }
const char* ToString(DetachReason enum_param) { … }
DetachReason ParseDetachReason(std::string_view enum_string) { … }
std::u16string GetDetachReasonParseError(std::string_view enum_string) { … }
TargetInfo::TargetInfo()
: … { … }
TargetInfo::~TargetInfo() = default;
TargetInfo::TargetInfo(TargetInfo&& rhs) noexcept = default;
TargetInfo& TargetInfo::operator=(TargetInfo&& rhs) noexcept = default;
TargetInfo TargetInfo::Clone() const { … }
bool TargetInfo::Populate(
const base::Value::Dict& dict, TargetInfo& out) { … }
bool TargetInfo::Populate(
const base::Value& value, TargetInfo& out) { … }
std::optional<TargetInfo> TargetInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<TargetInfo> TargetInfo::FromValue(const base::Value& value) { … }
base::Value::Dict TargetInfo::ToValue() const { … }
namespace Attach {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace Detach {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace SendCommand {
Params::CommandParams::CommandParams()
{ … }
Params::CommandParams::~CommandParams() = default;
Params::CommandParams::CommandParams(CommandParams&& rhs) noexcept = default;
Params::CommandParams& Params::CommandParams::operator=(CommandParams&& rhs) noexcept = default;
Params::CommandParams Params::CommandParams::Clone() const { … }
bool Params::CommandParams::Populate(
const base::Value::Dict& dict, CommandParams& out) { … }
bool Params::CommandParams::Populate(
const base::Value& value, CommandParams& out) { … }
std::optional<Params::CommandParams> Params::CommandParams::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::CommandParams> Params::CommandParams::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
Results::Result::Result()
{ … }
Results::Result::~Result() = default;
Results::Result::Result(Result&& rhs) noexcept = default;
Results::Result& Results::Result::operator=(Result&& rhs) noexcept = default;
base::Value::Dict Results::Result::ToValue() const { … }
base::Value::List Results::Create(const Result& result) { … }
}
namespace GetTargets {
base::Value::List Results::Create(const std::vector<TargetInfo>& result) { … }
}
namespace OnEvent {
const char kEventName[] = …;
Params::Params()
{ … }
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
base::Value::Dict Params::ToValue() const { … }
base::Value::List Create(const DebuggerSession& source, const std::string& method, const Params& params) { … }
}
namespace OnDetach {
const char kEventName[] = …;
base::Value::List Create(const Debuggee& source, const DetachReason& reason) { … }
}
}
}
}