chromium/components/custom_handlers/simple_protocol_handler_registry_factory.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/custom_handlers/simple_protocol_handler_registry_factory.h"

#include <memory>

#include "base/no_destructor.h"
#include "build/build_config.h"
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/custom_handlers/test_protocol_handler_registry_delegate.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"

namespace custom_handlers {

// static
SimpleProtocolHandlerRegistryFactory*
SimpleProtocolHandlerRegistryFactory::GetInstance() {}

// static
ProtocolHandlerRegistry*
SimpleProtocolHandlerRegistryFactory::GetForBrowserContext(
    content::BrowserContext* context,
    bool create) {}

SimpleProtocolHandlerRegistryFactory::SimpleProtocolHandlerRegistryFactory()
    :{}

// Will be created when initializing profile_io_data, so we might
// as well have the framework create this along with other
// PKSs to preserve orderly civic conduct :)
bool SimpleProtocolHandlerRegistryFactory::ServiceIsCreatedWithBrowserContext()
    const {}

// Do not create this service for tests. MANY tests will fail
// due to the threading requirements of this service. ALSO,
// not creating this increases test isolation (which is GOOD!)
bool SimpleProtocolHandlerRegistryFactory::ServiceIsNULLWhileTesting() const {}

std::unique_ptr<KeyedService>
SimpleProtocolHandlerRegistryFactory::BuildServiceInstanceForBrowserContext(
    content::BrowserContext* context) const {}

}  // namespace custom_handlers