chromium/extensions/renderer/renderer_extension_registry.cc

// Copyright 2015 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/renderer/renderer_extension_registry.h"

#include "base/check.h"
#include "base/lazy_instance.h"
#include "base/unguessable_token.h"
#include "content/public/renderer/render_thread.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/manifest_handlers/background_info.h"

namespace extensions {

namespace {

base::LazyInstance<RendererExtensionRegistry>::DestructorAtExit
    g_renderer_extension_registry =;

}  // namespace

RendererExtensionRegistry::RendererExtensionRegistry() = default;

RendererExtensionRegistry::~RendererExtensionRegistry() = default;

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

const ExtensionSet* RendererExtensionRegistry::GetMainThreadExtensionSet()
    const {}

bool RendererExtensionRegistry::Contains(
    const ExtensionId& extension_id) const {}

bool RendererExtensionRegistry::Insert(
    const scoped_refptr<const Extension>& extension) {}

bool RendererExtensionRegistry::Remove(const ExtensionId& id) {}

ExtensionId RendererExtensionRegistry::GetExtensionOrAppIDByURL(
    const GURL& url) const {}

const Extension* RendererExtensionRegistry::GetExtensionOrAppByURL(
    const GURL& url,
    bool include_guid) const {}

const Extension* RendererExtensionRegistry::GetHostedAppByURL(
    const GURL& url) const {}

const Extension* RendererExtensionRegistry::GetByID(
    const ExtensionId& id) const {}

ExtensionIdSet RendererExtensionRegistry::GetIDs() const {}

bool RendererExtensionRegistry::ExtensionBindingsAllowed(
    const GURL& url) const {}

void RendererExtensionRegistry::SetWorkerActivationToken(
    const scoped_refptr<const Extension>& extension,
    base::UnguessableToken worker_activation_token) {}

std::optional<base::UnguessableToken>
RendererExtensionRegistry::GetWorkerActivationToken(
    const ExtensionId& extension_id) const {}

}  // namespace extensions