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

#include "extensions/common/api/management.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 management {
//
// Types
//

IconInfo::IconInfo()
:{}

IconInfo::~IconInfo() = default;
IconInfo::IconInfo(IconInfo&& rhs) noexcept = default;
IconInfo& IconInfo::operator=(IconInfo&& rhs) noexcept = default;
IconInfo IconInfo::Clone() const {}

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

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

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

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

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


const char* ToString(LaunchType enum_param) {}

LaunchType ParseLaunchType(std::string_view enum_string) {}

std::u16string GetLaunchTypeParseError(std::string_view enum_string) {}


const char* ToString(ExtensionDisabledReason enum_param) {}

ExtensionDisabledReason ParseExtensionDisabledReason(std::string_view enum_string) {}

std::u16string GetExtensionDisabledReasonParseError(std::string_view enum_string) {}


const char* ToString(ExtensionType enum_param) {}

ExtensionType ParseExtensionType(std::string_view enum_string) {}

std::u16string GetExtensionTypeParseError(std::string_view enum_string) {}


const char* ToString(ExtensionInstallType enum_param) {}

ExtensionInstallType ParseExtensionInstallType(std::string_view enum_string) {}

std::u16string GetExtensionInstallTypeParseError(std::string_view enum_string) {}


ExtensionInfo::ExtensionInfo()
:{}

ExtensionInfo::~ExtensionInfo() = default;
ExtensionInfo::ExtensionInfo(ExtensionInfo&& rhs) noexcept = default;
ExtensionInfo& ExtensionInfo::operator=(ExtensionInfo&& rhs) noexcept = default;
ExtensionInfo ExtensionInfo::Clone() const {}

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

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

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

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

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


UninstallOptions::UninstallOptions()
 {}

UninstallOptions::~UninstallOptions() = default;
UninstallOptions::UninstallOptions(UninstallOptions&& rhs) noexcept = default;
UninstallOptions& UninstallOptions::operator=(UninstallOptions&& rhs) noexcept = default;
UninstallOptions UninstallOptions::Clone() const {}

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

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

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

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

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



//
// Functions
//

namespace GetAll {

base::Value::List Results::Create(const std::vector<ExtensionInfo>& result) {}
}  // namespace GetAll

namespace Get {

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 ExtensionInfo& result) {}
}  // namespace Get

namespace GetSelf {

base::Value::List Results::Create(const ExtensionInfo& result) {}
}  // namespace GetSelf

namespace GetPermissionWarningsById {

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 std::vector<std::string>& permission_warnings) {}
}  // namespace GetPermissionWarningsById

namespace GetPermissionWarningsByManifest {

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 std::vector<std::string>& permission_warnings) {}
}  // namespace GetPermissionWarningsByManifest

namespace SetEnabled {

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() {}
}  // namespace SetEnabled

namespace Uninstall {

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() {}
}  // namespace Uninstall

namespace UninstallSelf {

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() {}
}  // namespace UninstallSelf

namespace LaunchApp {

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() {}
}  // namespace LaunchApp

namespace CreateAppShortcut {

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() {}
}  // namespace CreateAppShortcut

namespace SetLaunchType {

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() {}
}  // namespace SetLaunchType

namespace GenerateAppForLink {

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 ExtensionInfo& result) {}
}  // namespace GenerateAppForLink

namespace InstallReplacementWebApp {

base::Value::List Results::Create() {}
}  // namespace InstallReplacementWebApp

//
// Events
//

namespace OnInstalled {

const char kEventName[] =;

base::Value::List Create(const ExtensionInfo& info) {}

}  // namespace OnInstalled

namespace OnUninstalled {

const char kEventName[] =;

base::Value::List Create(const std::string& id) {}

}  // namespace OnUninstalled

namespace OnEnabled {

const char kEventName[] =;

base::Value::List Create(const ExtensionInfo& info) {}

}  // namespace OnEnabled

namespace OnDisabled {

const char kEventName[] =;

base::Value::List Create(const ExtensionInfo& info) {}

}  // namespace OnDisabled

}  // namespace management
}  // namespace api
}  // namespace extensions