Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / auto_enrollment_check_screen_handler.h
blob73883141d6a62c9823c00f2ce13d8076b9e4b8b8
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTO_ENROLLMENT_CHECK_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTO_ENROLLMENT_CHECK_SCREEN_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_check_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
11 #include "content/public/browser/web_ui.h"
13 namespace base {
14 class DictionaryValue;
17 namespace chromeos {
19 // WebUI implementation of AutoEnrollmentCheckScreenActor.
20 class AutoEnrollmentCheckScreenHandler : public AutoEnrollmentCheckScreenActor,
21 public BaseScreenHandler {
22 public:
23 AutoEnrollmentCheckScreenHandler();
24 ~AutoEnrollmentCheckScreenHandler() override;
26 // AutoEnrollmentCheckScreenActor implementation:
27 void Show() override;
28 void SetDelegate(Delegate* delegate) override;
30 // BaseScreenHandler implementation:
31 void DeclareLocalizedValues(
32 ::login::LocalizedValuesBuilder* builder) override;
33 void Initialize() override;
35 // WebUIMessageHandler implementation:
36 void RegisterMessages() override;
38 private:
39 Delegate* delegate_;
41 // Keeps whether screen should be shown right after initialization.
42 bool show_on_init_;
44 DISALLOW_COPY_AND_ASSIGN(AutoEnrollmentCheckScreenHandler);
47 } // namespace chromeos
49 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_AUTO_ENROLLMENT_CHECK_SCREEN_HANDLER_H_