Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / host_pairing_screen_handler.h
blobcfe7d11142351708cbf52e1a972c772c532274c9
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_HOST_PAIRING_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_
8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/login/screens/host_pairing_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
11 #include "components/login/screens/screen_context.h"
13 namespace chromeos {
15 class HostPairingScreenHandler : public HostPairingScreenActor,
16 public BaseScreenHandler {
17 public:
18 HostPairingScreenHandler();
19 ~HostPairingScreenHandler() override;
21 private:
22 void HandleContextReady();
24 // Overridden from BaseScreenHandler:
25 void Initialize() override;
26 void DeclareLocalizedValues(
27 ::login::LocalizedValuesBuilder* builder) override;
29 // Overridden from content::WebUIMessageHandler:
30 void RegisterMessages() override;
32 // Overridden from HostPairingScreenActor:
33 void Show() override;
34 void Hide() override;
35 void SetDelegate(Delegate* delegate) override;
36 void OnContextChanged(const base::DictionaryValue& diff) override;
38 HostPairingScreenActor::Delegate* delegate_;
39 bool show_on_init_;
40 bool js_context_ready_;
42 // Caches context changes while JS part is not ready to receive messages.
43 ::login::ScreenContext context_cache_;
45 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler);
48 } // namespace chromeos
50 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_