#ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_
#define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_KIOSK_MODE_SCREENSAVER_H_
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
#include "ui/wm/core/user_activity_observer.h"
namespace extensions {
class Extension;
}
namespace chromeos {
class KioskModeScreensaver : public wm::UserActivityObserver {
public:
KioskModeScreensaver();
virtual ~KioskModeScreensaver();
private:
friend class KioskModeScreensaverTest;
virtual void OnUserActivity(const ui::Event* event) OVERRIDE;
void GetScreensaverCrxPath();
void ScreensaverPathCallback(const base::FilePath& screensaver_crx);
void SetupScreensaver(scoped_refptr<extensions::Extension> extension,
const base::FilePath& extension_base_path);
base::WeakPtrFactory<KioskModeScreensaver> weak_ptr_factory_;
base::FilePath extension_base_path_;
DISALLOW_COPY_AND_ASSIGN(KioskModeScreensaver);
};
void InitializeKioskModeScreensaver();
void ShutdownKioskModeScreensaver();
}
#endif