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

#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 {
//
// Types
//

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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

// static
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 {}

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

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

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

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

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



//
// Functions
//

namespace GetUserEmail {

base::Value::List Results::Create(const std::string& email) {}
}  // namespace GetUserEmail

namespace GetSystemInformation {

base::Value::List Results::Create(const std::vector<LogsMapEntry>& system_information) {}
}  // namespace GetSystemInformation

namespace OpenFeedback {

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 OpenFeedback

namespace SendFeedback {

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 SendFeedbackResult& result) {}
}  // namespace SendFeedback

namespace ReadLogSource {

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 ReadLogSourceResult& result) {}
}  // namespace ReadLogSource

//
// Events
//

namespace OnFeedbackRequested {

const char kEventName[] =;

base::Value::List Create(const FeedbackInfo& feedback) {}

}  // namespace OnFeedbackRequested

}  // namespace feedback_private
}  // namespace api
}  // namespace extensions