Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / update_screen_handler.h
blob13151fb339c89ea8dde9aa6e19be4c5d0bc04186
1 // Copyright (c) 2012 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_UPDATE_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/chromeos/login/screens/update_view.h"
12 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
14 namespace chromeos {
16 class UpdateScreenHandler : public UpdateView, public BaseScreenHandler {
17 public:
18 UpdateScreenHandler();
19 ~UpdateScreenHandler() override;
21 // UpdateView:
22 void PrepareToShow() override;
23 void Show() override;
24 void Hide() override;
25 void Bind(UpdateModel& model) override;
26 void Unbind() override;
28 // BaseScreenHandler:
29 void DeclareLocalizedValues(
30 ::login::LocalizedValuesBuilder* builder) override;
31 void Initialize() override;
33 private:
34 UpdateModel* model_;
36 // Keeps whether screen should be shown right after initialization.
37 bool show_on_init_;
39 DISALLOW_COPY_AND_ASSIGN(UpdateScreenHandler);
42 } // namespace chromeos
44 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_UPDATE_SCREEN_HANDLER_H_