#include "base/macros.h"
#include "chrome/browser/chromeos/login/screens/host_pairing_screen_actor.h"
+#include "chrome/browser/chromeos/login/screens/screen_context.h"
#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
namespace chromeos {
virtual ~HostPairingScreenHandler();
private:
+ void HandleContextReady();
+
// Overridden from BaseScreenHandler:
virtual void Initialize() OVERRIDE;
virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
HostPairingScreenActor::Delegate* delegate_;
bool show_on_init_;
+ bool js_context_ready_;
+
+ // Caches context changes while JS part is not ready to receive messages.
+ ScreenContext context_cache_;
DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler);
};