#ifndef CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_IMPL_H_
#define CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_IMPL_H_
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/app_list/keep_alive_service.h"
class ScopedKeepAlive {
public:
ScopedKeepAlive();
~ScopedKeepAlive();
private:
DISALLOW_COPY_AND_ASSIGN(ScopedKeepAlive);
};
class KeepAliveServiceImpl : public KeepAliveService {
public:
KeepAliveServiceImpl();
virtual ~KeepAliveServiceImpl();
virtual void EnsureKeepAlive() OVERRIDE;
virtual void FreeKeepAlive() OVERRIDE;
private:
scoped_ptr<ScopedKeepAlive> keep_alive_;
DISALLOW_COPY_AND_ASSIGN(KeepAliveServiceImpl);
};
#endif