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"
12 class CertificateManagerHandler
;
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
{
25 explicit CertificateManagerDialogUI(content::WebUI
* web_ui
);
26 ~CertificateManagerDialogUI() override
;
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_