#ifndef APPS_APP_LIFETIME_MONITOR_FACTORY_H_
#define APPS_APP_LIFETIME_MONITOR_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace apps {
class AppLifetimeMonitor;
class AppLifetimeMonitorFactory : public BrowserContextKeyedServiceFactory {
public:
static AppLifetimeMonitor* GetForProfile(Profile* profile);
static AppLifetimeMonitorFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<AppLifetimeMonitorFactory>;
AppLifetimeMonitorFactory();
virtual ~AppLifetimeMonitorFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
};
}
#endif