#include "extensions/common/manifest_handler.h"
#include <stddef.h>
#include <map>
#include <vector>
#include "base/check.h"
#include "base/containers/contains.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handler_registry.h"
#include "extensions/common/permissions/manifest_permission.h"
#include "extensions/common/permissions/manifest_permission_set.h"
namespace extensions {
ManifestHandler::ManifestHandler() = default;
ManifestHandler::~ManifestHandler() = default;
bool ManifestHandler::Validate(const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) const { … }
bool ManifestHandler::AlwaysParseForType(Manifest::Type type) const { … }
bool ManifestHandler::AlwaysValidateForType(Manifest::Type type) const { … }
const std::vector<std::string> ManifestHandler::PrerequisiteKeys() const { … }
ManifestPermission* ManifestHandler::CreatePermission() { … }
ManifestPermission* ManifestHandler::CreateInitialRequiredPermission(
const Extension* extension) { … }
void ManifestHandler::FinalizeRegistration() { … }
bool ManifestHandler::IsRegistrationFinalized() { … }
bool ManifestHandler::ParseExtension(Extension* extension,
std::u16string* error) { … }
bool ManifestHandler::ValidateExtension(const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) { … }
ManifestPermission* ManifestHandler::CreatePermission(const std::string& name) { … }
void ManifestHandler::AddExtensionInitialRequiredPermissions(
const Extension* extension, ManifestPermissionSet* permission_set) { … }
const std::vector<std::string> ManifestHandler::SingleKey(
const std::string& key) { … }
}