#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_EULA_SCREEN_H_
#include <string>
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/login/screens/eula_screen_actor.h"
#include "chrome/browser/chromeos/login/screens/wizard_screen.h"
#include "chrome/browser/chromeos/login/tpm_password_fetcher.h"
#include "url/gurl.h"
namespace chromeos {
class EulaScreen : public WizardScreen,
public EulaScreenActor::Delegate,
public TpmPasswordFetcherDelegate {
public:
EulaScreen(ScreenObserver* observer, EulaScreenActor* actor);
virtual ~EulaScreen();
virtual void PrepareToShow() OVERRIDE;
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
virtual std::string GetName() const OVERRIDE;
virtual GURL GetOemEulaUrl() const OVERRIDE;
virtual void OnExit(bool accepted, bool usage_stats_enabled) OVERRIDE;
virtual void InitiatePasswordFetch() OVERRIDE;
virtual bool IsUsageStatsEnabled() const OVERRIDE;
virtual void OnActorDestroyed(EulaScreenActor* actor) OVERRIDE;
virtual void OnPasswordFetched(const std::string& tpm_password) OVERRIDE;
private:
GURL oem_eula_page_;
std::string tpm_password_;
EulaScreenActor* actor_;
TpmPasswordFetcher password_fetcher_;
DISALLOW_COPY_AND_ASSIGN(EulaScreen);
};
}
#endif