#include "extensions/common/api/runtime.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 runtime {
const char* ToString(PlatformOs enum_param) { … }
PlatformOs ParsePlatformOs(std::string_view enum_string) { … }
std::u16string GetPlatformOsParseError(std::string_view enum_string) { … }
const char* ToString(PlatformArch enum_param) { … }
PlatformArch ParsePlatformArch(std::string_view enum_string) { … }
std::u16string GetPlatformArchParseError(std::string_view enum_string) { … }
const char* ToString(PlatformNaclArch enum_param) { … }
PlatformNaclArch ParsePlatformNaclArch(std::string_view enum_string) { … }
std::u16string GetPlatformNaclArchParseError(std::string_view enum_string) { … }
PlatformInfo::PlatformInfo()
: … { … }
PlatformInfo::~PlatformInfo() = default;
PlatformInfo::PlatformInfo(PlatformInfo&& rhs) noexcept = default;
PlatformInfo& PlatformInfo::operator=(PlatformInfo&& rhs) noexcept = default;
PlatformInfo PlatformInfo::Clone() const { … }
bool PlatformInfo::Populate(
const base::Value::Dict& dict, PlatformInfo& out) { … }
bool PlatformInfo::Populate(
const base::Value& value, PlatformInfo& out) { … }
std::optional<PlatformInfo> PlatformInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<PlatformInfo> PlatformInfo::FromValue(const base::Value& value) { … }
base::Value::Dict PlatformInfo::ToValue() const { … }
const char* ToString(RequestUpdateCheckStatus enum_param) { … }
RequestUpdateCheckStatus ParseRequestUpdateCheckStatus(std::string_view enum_string) { … }
std::u16string GetRequestUpdateCheckStatusParseError(std::string_view enum_string) { … }
const char* ToString(OnInstalledReason enum_param) { … }
OnInstalledReason ParseOnInstalledReason(std::string_view enum_string) { … }
std::u16string GetOnInstalledReasonParseError(std::string_view enum_string) { … }
const char* ToString(OnRestartRequiredReason enum_param) { … }
OnRestartRequiredReason ParseOnRestartRequiredReason(std::string_view enum_string) { … }
std::u16string GetOnRestartRequiredReasonParseError(std::string_view enum_string) { … }
const char* ToString(ContextType enum_param) { … }
ContextType ParseContextType(std::string_view enum_string) { … }
std::u16string GetContextTypeParseError(std::string_view enum_string) { … }
ExtensionContext::ExtensionContext()
: … { … }
ExtensionContext::~ExtensionContext() = default;
ExtensionContext::ExtensionContext(ExtensionContext&& rhs) noexcept = default;
ExtensionContext& ExtensionContext::operator=(ExtensionContext&& rhs) noexcept = default;
ExtensionContext ExtensionContext::Clone() const { … }
bool ExtensionContext::Populate(
const base::Value::Dict& dict, ExtensionContext& out) { … }
bool ExtensionContext::Populate(
const base::Value& value, ExtensionContext& out) { … }
std::optional<ExtensionContext> ExtensionContext::FromValue(const base::Value::Dict& value) { … }
std::optional<ExtensionContext> ExtensionContext::FromValue(const base::Value& value) { … }
base::Value::Dict ExtensionContext::ToValue() const { … }
ContextFilter::ContextFilter()
{ … }
ContextFilter::~ContextFilter() = default;
ContextFilter::ContextFilter(ContextFilter&& rhs) noexcept = default;
ContextFilter& ContextFilter::operator=(ContextFilter&& rhs) noexcept = default;
ContextFilter ContextFilter::Clone() const { … }
bool ContextFilter::Populate(
const base::Value::Dict& dict, ContextFilter& out) { … }
bool ContextFilter::Populate(
const base::Value& value, ContextFilter& out) { … }
std::optional<ContextFilter> ContextFilter::FromValue(const base::Value::Dict& value) { … }
std::optional<ContextFilter> ContextFilter::FromValue(const base::Value& value) { … }
base::Value::Dict ContextFilter::ToValue() const { … }
namespace GetBackgroundPage {
Results::BackgroundPage::BackgroundPage()
{ … }
Results::BackgroundPage::~BackgroundPage() = default;
Results::BackgroundPage::BackgroundPage(BackgroundPage&& rhs) noexcept = default;
Results::BackgroundPage& Results::BackgroundPage::operator=(BackgroundPage&& rhs) noexcept = default;
base::Value::Dict Results::BackgroundPage::ToValue() const { … }
base::Value::List Results::Create(const BackgroundPage& background_page) { … }
}
namespace OpenOptionsPage {
base::Value::List Results::Create() { … }
}
namespace SetUninstallURL {
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 Reload {
}
namespace RequestUpdateCheck {
Results::Result::Result()
: … { … }
Results::Result::~Result() = default;
Results::Result::Result(Result&& rhs) noexcept = default;
Results::Result& Results::Result::operator=(Result&& rhs) noexcept = default;
base::Value::Dict Results::Result::ToValue() const { … }
base::Value::List Results::Create(const Result& result) { … }
}
namespace Restart {
}
namespace RestartAfterDelay {
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 GetPlatformInfo {
base::Value::List Results::Create(const PlatformInfo& platform_info) { … }
}
namespace GetPackageDirectoryEntry {
Results::DirectoryEntry::DirectoryEntry()
{ … }
Results::DirectoryEntry::~DirectoryEntry() = default;
Results::DirectoryEntry::DirectoryEntry(DirectoryEntry&& rhs) noexcept = default;
Results::DirectoryEntry& Results::DirectoryEntry::operator=(DirectoryEntry&& rhs) noexcept = default;
base::Value::Dict Results::DirectoryEntry::ToValue() const { … }
base::Value::List Results::Create(const DirectoryEntry& directory_entry) { … }
}
namespace GetContexts {
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<ExtensionContext>& contexts) { … }
}
namespace OnStartup {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnInstalled {
const char kEventName[] = …;
Details::Details()
: … { … }
Details::~Details() = default;
Details::Details(Details&& rhs) noexcept = default;
Details& Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Details::ToValue() const { … }
base::Value::List Create(const Details& details) { … }
}
namespace OnSuspend {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnSuspendCanceled {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnUpdateAvailable {
const char kEventName[] = …;
Details::Details()
{ … }
Details::~Details() = default;
Details::Details(Details&& rhs) noexcept = default;
Details& Details::operator=(Details&& rhs) noexcept = default;
base::Value::Dict Details::ToValue() const { … }
base::Value::List Create(const Details& details) { … }
}
namespace OnBrowserUpdateAvailable {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnRestartRequired {
const char kEventName[] = …;
base::Value::List Create(const OnRestartRequiredReason& reason) { … }
}
}
}
}