#include "components/keyed_service/core/simple_keyed_service_factory.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/keyed_service/core/simple_dependency_manager.h"
#include "components/keyed_service/core/simple_factory_key.h"
namespace {
base::OnceCallback<std::unique_ptr<KeyedService>(void*)> WrapFactory(
SimpleKeyedServiceFactory::TestingFactory factory) { … }
}
void SimpleKeyedServiceFactory::SetTestingFactory(
SimpleFactoryKey* key,
TestingFactory testing_factory) { … }
KeyedService* SimpleKeyedServiceFactory::SetTestingFactoryAndUse(
SimpleFactoryKey* key,
TestingFactory testing_factory) { … }
SimpleKeyedServiceFactory::SimpleKeyedServiceFactory(
const char* name,
SimpleDependencyManager* manager)
: … { … }
SimpleKeyedServiceFactory::~SimpleKeyedServiceFactory() { … }
KeyedService* SimpleKeyedServiceFactory::GetServiceForKey(SimpleFactoryKey* key,
bool create) { … }
SimpleFactoryKey* SimpleKeyedServiceFactory::GetKeyToUse(
SimpleFactoryKey* key) const { … }
void SimpleKeyedServiceFactory::SimpleContextShutdown(SimpleFactoryKey* key) { … }
void SimpleKeyedServiceFactory::SimpleContextDestroyed(SimpleFactoryKey* key) { … }
std::unique_ptr<KeyedService>
SimpleKeyedServiceFactory::BuildServiceInstanceFor(void* context) const { … }
void* SimpleKeyedServiceFactory::GetContextToUse(void* context) const { … }
bool SimpleKeyedServiceFactory::ServiceIsCreatedWithContext() const { … }
void SimpleKeyedServiceFactory::ContextShutdown(void* context) { … }
void SimpleKeyedServiceFactory::ContextDestroyed(void* context) { … }
void SimpleKeyedServiceFactory::RegisterPrefs(
user_prefs::PrefRegistrySyncable* registry) { … }
void SimpleKeyedServiceFactory::CreateServiceNow(void* context) { … }