chromium/components/keyed_service/content/browser_context_keyed_service_factory.cc

// Copyright 2014 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/keyed_service/content/browser_context_keyed_service_factory.h"

#include <utility>

#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "content/public/browser/browser_context.h"

namespace {

// Wraps `factory` as a KeyedServiceFactory::TestingFactory.
base::OnceCallback<std::unique_ptr<KeyedService>(void*)> WrapFactory(
    BrowserContextKeyedServiceFactory::TestingFactory factory) {}

}  // namespace

void BrowserContextKeyedServiceFactory::SetTestingFactory(
    content::BrowserContext* context,
    TestingFactory testing_factory) {}

KeyedService* BrowserContextKeyedServiceFactory::SetTestingFactoryAndUse(
    content::BrowserContext* context,
    TestingFactory testing_factory) {}

BrowserContextKeyedServiceFactory::BrowserContextKeyedServiceFactory(
    const char* name,
    BrowserContextDependencyManager* manager)
    :{}

BrowserContextKeyedServiceFactory::~BrowserContextKeyedServiceFactory() {}

KeyedService* BrowserContextKeyedServiceFactory::GetServiceForBrowserContext(
    content::BrowserContext* context,
    bool create) {}

content::BrowserContext*
BrowserContextKeyedServiceFactory::GetBrowserContextToUse(
    content::BrowserContext* context) const {}

bool BrowserContextKeyedServiceFactory::ServiceIsCreatedWithBrowserContext()
    const {}

bool BrowserContextKeyedServiceFactory::ServiceIsNULLWhileTesting() const {}

void BrowserContextKeyedServiceFactory::BrowserContextShutdown(
    content::BrowserContext* context) {}

void BrowserContextKeyedServiceFactory::BrowserContextDestroyed(
    content::BrowserContext* context) {}

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

KeyedService* BrowserContextKeyedServiceFactory::BuildServiceInstanceFor(
    content::BrowserContext* context) const {}

std::unique_ptr<KeyedService>
BrowserContextKeyedServiceFactory::BuildServiceInstanceFor(
    void* context) const {}

void* BrowserContextKeyedServiceFactory::GetContextToUse(void* context) const {}

bool BrowserContextKeyedServiceFactory::ServiceIsCreatedWithContext() const {}

void BrowserContextKeyedServiceFactory::ContextShutdown(void* context) {}

void BrowserContextKeyedServiceFactory::ContextDestroyed(void* context) {}

void BrowserContextKeyedServiceFactory::RegisterPrefs(
    user_prefs::PrefRegistrySyncable* registry) {}

void BrowserContextKeyedServiceFactory::CreateServiceNow(void* context) {}