#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 {
IconInfo::IconInfo()
: … { … }
IconInfo::~IconInfo() = default;
IconInfo::IconInfo(IconInfo&& rhs) noexcept = default;
IconInfo& IconInfo::operator=(IconInfo&& rhs) noexcept = default;
IconInfo IconInfo::Clone() const { … }
bool IconInfo::Populate(
const base::Value::Dict& dict, IconInfo& out) { … }
bool IconInfo::Populate(
const base::Value& value, IconInfo& out) { … }
std::optional<IconInfo> IconInfo::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool ExtensionInfo::Populate(
const base::Value::Dict& dict, ExtensionInfo& out) { … }
bool ExtensionInfo::Populate(
const base::Value& value, ExtensionInfo& out) { … }
std::optional<ExtensionInfo> ExtensionInfo::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool UninstallOptions::Populate(
const base::Value::Dict& dict, UninstallOptions& out) { … }
bool UninstallOptions::Populate(
const base::Value& value, UninstallOptions& out) { … }
std::optional<UninstallOptions> UninstallOptions::FromValue(const base::Value::Dict& value) { … }
std::optional<UninstallOptions> UninstallOptions::FromValue(const base::Value& value) { … }
base::Value::Dict UninstallOptions::ToValue() const { … }
namespace GetAll {
base::Value::List Results::Create(const std::vector<ExtensionInfo>& result) { … }
}
namespace Get {
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 ExtensionInfo& result) { … }
}
namespace GetSelf {
base::Value::List Results::Create(const ExtensionInfo& result) { … }
}
namespace GetPermissionWarningsById {
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 std::vector<std::string>& permission_warnings) { … }
}
namespace GetPermissionWarningsByManifest {
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 std::vector<std::string>& permission_warnings) { … }
}
namespace SetEnabled {
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() { … }
}
namespace Uninstall {
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() { … }
}
namespace UninstallSelf {
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() { … }
}
namespace LaunchApp {
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() { … }
}
namespace CreateAppShortcut {
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() { … }
}
namespace SetLaunchType {
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() { … }
}
namespace GenerateAppForLink {
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 ExtensionInfo& result) { … }
}
namespace InstallReplacementWebApp {
base::Value::List Results::Create() { … }
}
namespace OnInstalled {
const char kEventName[] = …;
base::Value::List Create(const ExtensionInfo& info) { … }
}
namespace OnUninstalled {
const char kEventName[] = …;
base::Value::List Create(const std::string& id) { … }
}
namespace OnEnabled {
const char kEventName[] = …;
base::Value::List Create(const ExtensionInfo& info) { … }
}
namespace OnDisabled {
const char kEventName[] = …;
base::Value::List Create(const ExtensionInfo& info) { … }
}
}
}
}