#include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/core/refcounted_keyed_service.h"
#include "content/public/browser/browser_context.h"
namespace {
base::OnceCallback<scoped_refptr<RefcountedKeyedService>(void*)> WrapFactory(
RefcountedBrowserContextKeyedServiceFactory::TestingFactory factory) { … }
}
void RefcountedBrowserContextKeyedServiceFactory::SetTestingFactory(
content::BrowserContext* context,
TestingFactory testing_factory) { … }
scoped_refptr<RefcountedKeyedService>
RefcountedBrowserContextKeyedServiceFactory::SetTestingFactoryAndUse(
content::BrowserContext* context,
TestingFactory testing_factory) { … }
RefcountedBrowserContextKeyedServiceFactory::
RefcountedBrowserContextKeyedServiceFactory(
const char* name,
BrowserContextDependencyManager* manager)
: … { … }
RefcountedBrowserContextKeyedServiceFactory::
~RefcountedBrowserContextKeyedServiceFactory() { … }
scoped_refptr<RefcountedKeyedService>
RefcountedBrowserContextKeyedServiceFactory::GetServiceForBrowserContext(
content::BrowserContext* context,
bool create) { … }
content::BrowserContext*
RefcountedBrowserContextKeyedServiceFactory::GetBrowserContextToUse(
content::BrowserContext* context) const { … }
bool RefcountedBrowserContextKeyedServiceFactory::
ServiceIsCreatedWithBrowserContext() const { … }
bool RefcountedBrowserContextKeyedServiceFactory::ServiceIsNULLWhileTesting()
const { … }
void RefcountedBrowserContextKeyedServiceFactory::BrowserContextShutdown(
content::BrowserContext* context) { … }
void RefcountedBrowserContextKeyedServiceFactory::BrowserContextDestroyed(
content::BrowserContext* context) { … }
scoped_refptr<RefcountedKeyedService>
RefcountedBrowserContextKeyedServiceFactory::BuildServiceInstanceFor(
void* context) const { … }
void* RefcountedBrowserContextKeyedServiceFactory::GetContextToUse(
void* context) const { … }
bool RefcountedBrowserContextKeyedServiceFactory::ServiceIsCreatedWithContext()
const { … }
void RefcountedBrowserContextKeyedServiceFactory::ContextShutdown(
void* context) { … }
void RefcountedBrowserContextKeyedServiceFactory::ContextDestroyed(
void* context) { … }
void RefcountedBrowserContextKeyedServiceFactory::RegisterPrefs(
user_prefs::PrefRegistrySyncable* registry) { … }