#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/login/help_app_launcher.h"
#include "chrome/browser/chromeos/login/screens/reset_screen_actor.h"
#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
#include "content/public/browser/web_ui.h"
namespace chromeos {
class ResetScreenHandler : public ResetScreenActor,
public BaseScreenHandler {
public:
ResetScreenHandler();
virtual ~ResetScreenHandler();
virtual void PrepareToShow() OVERRIDE;
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
virtual void SetDelegate(Delegate* delegate) OVERRIDE;
virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
virtual void Initialize() OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
void OnRollbackCheck(bool can_rollback);
private:
void HandleOnCancel();
void HandleOnRestart(bool should_rollback);
void HandleOnPowerwash(bool rollback_checked);
void HandleOnLearnMore();
void ShowWithParams();
Delegate* delegate_;
scoped_refptr<HelpAppLauncher> help_app_;
bool show_on_init_;
bool restart_required_;
bool reboot_was_requested_;
bool rollback_available_;
base::WeakPtrFactory<ResetScreenHandler> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
};
}
#endif