#include "extensions/common/manifest_handler_registry.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.h"
#include "extensions/common/permissions/manifest_permission.h"
#include "extensions/common/permissions/manifest_permission_set.h"
namespace extensions {
namespace {
static base::LazyInstance<ManifestHandlerRegistry>::DestructorAtExit
g_registry = …;
static ManifestHandlerRegistry* g_registry_override = …;
}
const size_t ManifestHandlerRegistry::kHandlerMax;
ManifestHandlerRegistry::ManifestHandlerRegistry() = default;
ManifestHandlerRegistry::~ManifestHandlerRegistry() = default;
void ManifestHandlerRegistry::Finalize() { … }
void ManifestHandlerRegistry::RegisterHandler(
std::unique_ptr<ManifestHandler> handler) { … }
bool ManifestHandlerRegistry::ParseExtension(Extension* extension,
std::u16string* error) { … }
bool ManifestHandlerRegistry::ValidateExtension(
const Extension* extension,
std::string* error,
std::vector<InstallWarning>* warnings) { … }
ManifestPermission* ManifestHandlerRegistry::CreatePermission(
const std::string& name) { … }
void ManifestHandlerRegistry::AddExtensionInitialRequiredPermissions(
const Extension* extension,
ManifestPermissionSet* permission_set) { … }
ManifestHandlerRegistry* ManifestHandlerRegistry::Get() { … }
ManifestHandlerRegistry* ManifestHandlerRegistry::SetForTesting(
ManifestHandlerRegistry* new_registry) { … }
void ManifestHandlerRegistry::ResetForTesting() { … }
void ManifestHandlerRegistry::SortManifestHandlers() { … }
}