#include "extensions/common/api/feedback_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>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace feedback_private {
AttachedFile::Data::Data()
{ … }
AttachedFile::Data::~Data() = default;
AttachedFile::Data::Data(Data&& rhs) noexcept = default;
AttachedFile::Data& AttachedFile::Data::operator=(Data&& rhs) noexcept = default;
AttachedFile::Data AttachedFile::Data::Clone() const { … }
bool AttachedFile::Data::Populate(
const base::Value::Dict& dict, Data& out) { … }
bool AttachedFile::Data::Populate(
const base::Value& value, Data& out) { … }
std::optional<AttachedFile::Data> AttachedFile::Data::FromValue(const base::Value::Dict& value) { … }
std::optional<AttachedFile::Data> AttachedFile::Data::FromValue(const base::Value& value) { … }
base::Value::Dict AttachedFile::Data::ToValue() const { … }
AttachedFile::AttachedFile()
{ … }
AttachedFile::~AttachedFile() = default;
AttachedFile::AttachedFile(AttachedFile&& rhs) noexcept = default;
AttachedFile& AttachedFile::operator=(AttachedFile&& rhs) noexcept = default;
AttachedFile AttachedFile::Clone() const { … }
bool AttachedFile::Populate(
const base::Value::Dict& dict, AttachedFile& out) { … }
bool AttachedFile::Populate(
const base::Value& value, AttachedFile& out) { … }
std::optional<AttachedFile> AttachedFile::FromValue(const base::Value::Dict& value) { … }
std::optional<AttachedFile> AttachedFile::FromValue(const base::Value& value) { … }
base::Value::Dict AttachedFile::ToValue() const { … }
LogsMapEntry::LogsMapEntry()
{ … }
LogsMapEntry::~LogsMapEntry() = default;
LogsMapEntry::LogsMapEntry(LogsMapEntry&& rhs) noexcept = default;
LogsMapEntry& LogsMapEntry::operator=(LogsMapEntry&& rhs) noexcept = default;
LogsMapEntry LogsMapEntry::Clone() const { … }
bool LogsMapEntry::Populate(
const base::Value::Dict& dict, LogsMapEntry& out) { … }
bool LogsMapEntry::Populate(
const base::Value& value, LogsMapEntry& out) { … }
std::optional<LogsMapEntry> LogsMapEntry::FromValue(const base::Value::Dict& value) { … }
std::optional<LogsMapEntry> LogsMapEntry::FromValue(const base::Value& value) { … }
base::Value::Dict LogsMapEntry::ToValue() const { … }
const char* ToString(FeedbackFlow enum_param) { … }
FeedbackFlow ParseFeedbackFlow(std::string_view enum_string) { … }
std::u16string GetFeedbackFlowParseError(std::string_view enum_string) { … }
FeedbackInfo::Screenshot::Screenshot()
{ … }
FeedbackInfo::Screenshot::~Screenshot() = default;
FeedbackInfo::Screenshot::Screenshot(Screenshot&& rhs) noexcept = default;
FeedbackInfo::Screenshot& FeedbackInfo::Screenshot::operator=(Screenshot&& rhs) noexcept = default;
FeedbackInfo::Screenshot FeedbackInfo::Screenshot::Clone() const { … }
bool FeedbackInfo::Screenshot::Populate(
const base::Value::Dict& dict, Screenshot& out) { … }
bool FeedbackInfo::Screenshot::Populate(
const base::Value& value, Screenshot& out) { … }
std::optional<FeedbackInfo::Screenshot> FeedbackInfo::Screenshot::FromValue(const base::Value::Dict& value) { … }
std::optional<FeedbackInfo::Screenshot> FeedbackInfo::Screenshot::FromValue(const base::Value& value) { … }
base::Value::Dict FeedbackInfo::Screenshot::ToValue() const { … }
FeedbackInfo::FeedbackInfo()
: … { … }
FeedbackInfo::~FeedbackInfo() = default;
FeedbackInfo::FeedbackInfo(FeedbackInfo&& rhs) noexcept = default;
FeedbackInfo& FeedbackInfo::operator=(FeedbackInfo&& rhs) noexcept = default;
FeedbackInfo FeedbackInfo::Clone() const { … }
bool FeedbackInfo::Populate(
const base::Value::Dict& dict, FeedbackInfo& out) { … }
bool FeedbackInfo::Populate(
const base::Value& value, FeedbackInfo& out) { … }
std::optional<FeedbackInfo> FeedbackInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<FeedbackInfo> FeedbackInfo::FromValue(const base::Value& value) { … }
base::Value::Dict FeedbackInfo::ToValue() const { … }
const char* ToString(Status enum_param) { … }
Status ParseStatus(std::string_view enum_string) { … }
std::u16string GetStatusParseError(std::string_view enum_string) { … }
const char* ToString(LandingPageType enum_param) { … }
LandingPageType ParseLandingPageType(std::string_view enum_string) { … }
std::u16string GetLandingPageTypeParseError(std::string_view enum_string) { … }
SendFeedbackResult::SendFeedbackResult()
: … { … }
SendFeedbackResult::~SendFeedbackResult() = default;
SendFeedbackResult::SendFeedbackResult(SendFeedbackResult&& rhs) noexcept = default;
SendFeedbackResult& SendFeedbackResult::operator=(SendFeedbackResult&& rhs) noexcept = default;
SendFeedbackResult SendFeedbackResult::Clone() const { … }
bool SendFeedbackResult::Populate(
const base::Value::Dict& dict, SendFeedbackResult& out) { … }
bool SendFeedbackResult::Populate(
const base::Value& value, SendFeedbackResult& out) { … }
std::optional<SendFeedbackResult> SendFeedbackResult::FromValue(const base::Value::Dict& value) { … }
std::optional<SendFeedbackResult> SendFeedbackResult::FromValue(const base::Value& value) { … }
base::Value::Dict SendFeedbackResult::ToValue() const { … }
const char* ToString(LogSource enum_param) { … }
LogSource ParseLogSource(std::string_view enum_string) { … }
std::u16string GetLogSourceParseError(std::string_view enum_string) { … }
const char* ToString(FeedbackSource enum_param) { … }
FeedbackSource ParseFeedbackSource(std::string_view enum_string) { … }
std::u16string GetFeedbackSourceParseError(std::string_view enum_string) { … }
ReadLogSourceParams::ReadLogSourceParams()
: … { … }
ReadLogSourceParams::~ReadLogSourceParams() = default;
ReadLogSourceParams::ReadLogSourceParams(ReadLogSourceParams&& rhs) noexcept = default;
ReadLogSourceParams& ReadLogSourceParams::operator=(ReadLogSourceParams&& rhs) noexcept = default;
ReadLogSourceParams ReadLogSourceParams::Clone() const { … }
bool ReadLogSourceParams::Populate(
const base::Value::Dict& dict, ReadLogSourceParams& out) { … }
bool ReadLogSourceParams::Populate(
const base::Value& value, ReadLogSourceParams& out) { … }
std::optional<ReadLogSourceParams> ReadLogSourceParams::FromValue(const base::Value::Dict& value) { … }
std::optional<ReadLogSourceParams> ReadLogSourceParams::FromValue(const base::Value& value) { … }
base::Value::Dict ReadLogSourceParams::ToValue() const { … }
ReadLogSourceResult::ReadLogSourceResult()
: … { … }
ReadLogSourceResult::~ReadLogSourceResult() = default;
ReadLogSourceResult::ReadLogSourceResult(ReadLogSourceResult&& rhs) noexcept = default;
ReadLogSourceResult& ReadLogSourceResult::operator=(ReadLogSourceResult&& rhs) noexcept = default;
ReadLogSourceResult ReadLogSourceResult::Clone() const { … }
bool ReadLogSourceResult::Populate(
const base::Value::Dict& dict, ReadLogSourceResult& out) { … }
bool ReadLogSourceResult::Populate(
const base::Value& value, ReadLogSourceResult& out) { … }
std::optional<ReadLogSourceResult> ReadLogSourceResult::FromValue(const base::Value::Dict& value) { … }
std::optional<ReadLogSourceResult> ReadLogSourceResult::FromValue(const base::Value& value) { … }
base::Value::Dict ReadLogSourceResult::ToValue() const { … }
namespace GetUserEmail {
base::Value::List Results::Create(const std::string& email) { … }
}
namespace GetSystemInformation {
base::Value::List Results::Create(const std::vector<LogsMapEntry>& system_information) { … }
}
namespace OpenFeedback {
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) { … }
}
namespace SendFeedback {
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(const SendFeedbackResult& result) { … }
}
namespace ReadLogSource {
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(const ReadLogSourceResult& result) { … }
}
namespace OnFeedbackRequested {
const char kEventName[] = …;
base::Value::List Create(const FeedbackInfo& feedback) { … }
}
}
}
}