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

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

//
// Types
//

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

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

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

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

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

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

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

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

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

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

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

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

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

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



//
// Functions
//

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 GetBackgroundPage

namespace OpenOptionsPage {

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

namespace SetUninstallURL {

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 SetUninstallURL

namespace Reload {

}  // 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 RequestUpdateCheck

namespace Restart {

}  // namespace Restart

namespace RestartAfterDelay {

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 RestartAfterDelay

namespace GetPlatformInfo {

base::Value::List Results::Create(const PlatformInfo& platform_info) {}
}  // namespace GetPlatformInfo

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 GetPackageDirectoryEntry

namespace GetContexts {

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<ExtensionContext>& contexts) {}
}  // namespace GetContexts

//
// Events
//

namespace OnStartup {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnStartup

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 OnInstalled

namespace OnSuspend {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnSuspend

namespace OnSuspendCanceled {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnSuspendCanceled

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 OnUpdateAvailable

namespace OnBrowserUpdateAvailable {

const char kEventName[] =;

base::Value::List Create() {}

}  // namespace OnBrowserUpdateAvailable

namespace OnRestartRequired {

const char kEventName[] =;

base::Value::List Create(const OnRestartRequiredReason& reason) {}

}  // namespace OnRestartRequired

}  // namespace runtime
}  // namespace api
}  // namespace extensions