chromium/extensions/common/manifest_handler_registry.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.

#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 =;

}  // namespace

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

// static
ManifestHandlerRegistry* ManifestHandlerRegistry::Get() {}

// static
ManifestHandlerRegistry* ManifestHandlerRegistry::SetForTesting(
    ManifestHandlerRegistry* new_registry) {}

// static
void ManifestHandlerRegistry::ResetForTesting() {}

void ManifestHandlerRegistry::SortManifestHandlers() {}

}  // namespace extensions