Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / wrong_hwid_screen_handler.h
blob93596f222f0782b4606ffb205c485ad2caeb8c16
1 // Copyright (c) 2013 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_WRONG_HWID_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/screens/wrong_hwid_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 WrongHWIDScreenActor.
20 class WrongHWIDScreenHandler : public WrongHWIDScreenActor,
21 public BaseScreenHandler {
22 public:
23 WrongHWIDScreenHandler();
24 ~WrongHWIDScreenHandler() override;
26 // WrongHWIDScreenActor implementation:
27 void PrepareToShow() override;
28 void Show() override;
29 void Hide() override;
30 void SetDelegate(Delegate* delegate) override;
32 // BaseScreenHandler implementation:
33 void DeclareLocalizedValues(
34 ::login::LocalizedValuesBuilder* builder) override;
35 void Initialize() override;
37 // WebUIMessageHandler implementation:
38 void RegisterMessages() override;
40 private:
41 // JS messages handlers.
42 void HandleOnSkip();
44 Delegate* delegate_;
46 // Keeps whether screen should be shown right after initialization.
47 bool show_on_init_;
49 DISALLOW_COPY_AND_ASSIGN(WrongHWIDScreenHandler);
52 } // namespace chromeos
54 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_HANDLER_H_