This source file includes following definitions.
- GetInstance
- GetForBrowserContext
- BuildServiceInstanceFor
#include "chrome/browser/ui/app_list/search/common/webservice_cache_factory.h"
#include "base/memory/singleton.h"
#include "chrome/browser/ui/app_list/search/common/webservice_cache.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
namespace app_list {
WebserviceCacheFactory* WebserviceCacheFactory::GetInstance() {
return Singleton<WebserviceCacheFactory>::get();
}
WebserviceCache* WebserviceCacheFactory::GetForBrowserContext(
content::BrowserContext* context) {
return static_cast<WebserviceCache*>(
GetInstance()->GetServiceForBrowserContext(context, true));
}
WebserviceCacheFactory::WebserviceCacheFactory()
: BrowserContextKeyedServiceFactory(
"app_list::WebserviceCache",
BrowserContextDependencyManager::GetInstance()) {}
WebserviceCacheFactory::~WebserviceCacheFactory() {}
KeyedService* WebserviceCacheFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
return new WebserviceCache(context);
}
}