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

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

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

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

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

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

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

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

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

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

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

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

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

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



}  // namespace extension_types
}  // namespace api
}  // namespace extensions