#include "extensions/common/api/shared_module.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 "tools/json_schema_compiler/manifest_parse_util.h"
#include <string_view>
#include "base/types/expected.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace shared_module {
Import::Import()
{ … }
Import::~Import() = default;
Import::Import(Import&& rhs) noexcept = default;
Import& Import::operator=(Import&& rhs) noexcept = default;
constexpr char Import::kId[];
constexpr char Import::kMinimumVersion[];
Import Import::Clone() const { … }
bool Import::Populate(
const base::Value::Dict& dict, Import& out, std::u16string& error) { … }
bool Import::Populate(
const base::Value& value, Import& out, std::u16string& error) { … }
base::expected<Import, std::u16string> Import::FromValue(const base::Value::Dict& value) { … }
base::expected<Import, std::u16string> Import::FromValue(const base::Value& value) { … }
base::Value::Dict Import::ToValue() const { … }
bool Import::ParseFromDictionary(
const base::Value::Dict& root_dict, std::string_view key, Import& out, std::u16string& error, std::vector<std::string_view>& error_path_reversed) { … }
Export::Export()
{ … }
Export::~Export() = default;
Export::Export(Export&& rhs) noexcept = default;
Export& Export::operator=(Export&& rhs) noexcept = default;
constexpr char Export::kAllowlist[];
Export Export::Clone() const { … }
bool Export::Populate(
const base::Value::Dict& dict, Export& out, std::u16string& error) { … }
bool Export::Populate(
const base::Value& value, Export& out, std::u16string& error) { … }
base::expected<Export, std::u16string> Export::FromValue(const base::Value::Dict& value) { … }
base::expected<Export, std::u16string> Export::FromValue(const base::Value& value) { … }
base::Value::Dict Export::ToValue() const { … }
bool Export::ParseFromDictionary(
const base::Value::Dict& root_dict, std::string_view key, Export& out, std::u16string& error, std::vector<std::string_view>& error_path_reversed) { … }
ManifestKeys::ManifestKeys()
{ … }
ManifestKeys::~ManifestKeys() = default;
ManifestKeys::ManifestKeys(ManifestKeys&& rhs) noexcept = default;
ManifestKeys& ManifestKeys::operator=(ManifestKeys&& rhs) noexcept = default;
constexpr char ManifestKeys::kImport[];
constexpr char ManifestKeys::kExport[];
bool ManifestKeys::ParseFromDictionary(
const base::Value::Dict& root_dict, ManifestKeys& out, std::u16string& error) { … }
}
}
}