#include "extensions/common/api/extension_types.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 extension_types {
const char* ToString(ImageFormat enum_param) { … }
ImageFormat ParseImageFormat(std::string_view enum_string) { … }
std::u16string GetImageFormatParseError(std::string_view enum_string) { … }
ImageDetails::ImageDetails()
: … { … }
ImageDetails::~ImageDetails() = default;
ImageDetails::ImageDetails(ImageDetails&& rhs) noexcept = default;
ImageDetails& ImageDetails::operator=(ImageDetails&& rhs) noexcept = default;
ImageDetails ImageDetails::Clone() const { … }
bool ImageDetails::Populate(
const base::Value::Dict& dict, ImageDetails& out) { … }
bool ImageDetails::Populate(
const base::Value& value, ImageDetails& out) { … }
std::optional<ImageDetails> ImageDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<ImageDetails> ImageDetails::FromValue(const base::Value& value) { … }
base::Value::Dict ImageDetails::ToValue() const { … }
const char* ToString(RunAt enum_param) { … }
RunAt ParseRunAt(std::string_view enum_string) { … }
std::u16string GetRunAtParseError(std::string_view enum_string) { … }
const char* ToString(CSSOrigin enum_param) { … }
CSSOrigin ParseCSSOrigin(std::string_view enum_string) { … }
std::u16string GetCSSOriginParseError(std::string_view enum_string) { … }
InjectDetails::InjectDetails()
: … { … }
InjectDetails::~InjectDetails() = default;
InjectDetails::InjectDetails(InjectDetails&& rhs) noexcept = default;
InjectDetails& InjectDetails::operator=(InjectDetails&& rhs) noexcept = default;
InjectDetails InjectDetails::Clone() const { … }
bool InjectDetails::Populate(
const base::Value::Dict& dict, InjectDetails& out) { … }
bool InjectDetails::Populate(
const base::Value& value, InjectDetails& out) { … }
std::optional<InjectDetails> InjectDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<InjectDetails> InjectDetails::FromValue(const base::Value& value) { … }
base::Value::Dict InjectDetails::ToValue() const { … }
DeleteInjectionDetails::DeleteInjectionDetails()
: … { … }
DeleteInjectionDetails::~DeleteInjectionDetails() = default;
DeleteInjectionDetails::DeleteInjectionDetails(DeleteInjectionDetails&& rhs) noexcept = default;
DeleteInjectionDetails& DeleteInjectionDetails::operator=(DeleteInjectionDetails&& rhs) noexcept = default;
DeleteInjectionDetails DeleteInjectionDetails::Clone() const { … }
bool DeleteInjectionDetails::Populate(
const base::Value::Dict& dict, DeleteInjectionDetails& out) { … }
bool DeleteInjectionDetails::Populate(
const base::Value& value, DeleteInjectionDetails& out) { … }
std::optional<DeleteInjectionDetails> DeleteInjectionDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<DeleteInjectionDetails> DeleteInjectionDetails::FromValue(const base::Value& value) { … }
base::Value::Dict DeleteInjectionDetails::ToValue() const { … }
const char* ToString(FrameType enum_param) { … }
FrameType ParseFrameType(std::string_view enum_string) { … }
std::u16string GetFrameTypeParseError(std::string_view enum_string) { … }
const char* ToString(DocumentLifecycle enum_param) { … }
DocumentLifecycle ParseDocumentLifecycle(std::string_view enum_string) { … }
std::u16string GetDocumentLifecycleParseError(std::string_view enum_string) { … }
const char* ToString(ExecutionWorld enum_param) { … }
ExecutionWorld ParseExecutionWorld(std::string_view enum_string) { … }
std::u16string GetExecutionWorldParseError(std::string_view enum_string) { … }
}
}
}