Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / certificate_manager_dialog_ui.h
blob4375d00b446aff290ae283955560f490915cf756
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_CERTIFICATE_MANAGER_DIALOG_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_
8 #include "chrome/browser/ui/webui/options/options_ui.h"
9 #include "ui/web_dialogs/web_dialog_ui.h"
11 namespace options {
12 class CertificateManagerHandler;
15 namespace chromeos {
17 namespace options {
18 class CoreChromeOSOptionsHandler;
21 // A WebUI to host certificate manager split from the main settings page.
22 class CertificateManagerDialogUI : public ui::WebDialogUI,
23 public ::options::OptionsPageUIHandlerHost {
24 public:
25 explicit CertificateManagerDialogUI(content::WebUI* web_ui);
26 ~CertificateManagerDialogUI() override;
28 private:
29 // Overridden from OptionsPageUIHandlerHost:
30 void InitializeHandlers() override;
32 bool initialized_handlers_;
34 ::options::CertificateManagerHandler* cert_handler_; // Weak ptr.
35 options::CoreChromeOSOptionsHandler* core_handler_; // Weak ptr.
37 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogUI);
40 } // namespace chromeos
42 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_