OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ |
7 | 7 |
8 #include "chrome/browser/ui/webui/options/options_ui.h" | 8 #include "chrome/browser/ui/webui/options/options_ui.h" |
9 #include "ui/web_dialogs/web_dialog_ui.h" | 9 #include "ui/web_dialogs/web_dialog_ui.h" |
10 | 10 |
11 namespace options { | 11 namespace options { |
12 class CertificateManagerHandler; | 12 class CertificateManagerHandler; |
13 } | 13 } |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 namespace options { | 17 namespace options { |
18 class CoreChromeOSOptionsHandler; | 18 class CoreChromeOSOptionsHandler; |
19 } | 19 } |
20 | 20 |
21 // A WebUI to host certificate manager split from the main settings page. | 21 // A WebUI to host certificate manager split from the main settings page. |
22 class CertificateManagerDialogUI : public ui::WebDialogUI, | 22 class CertificateManagerDialogUI : public ui::WebDialogUI, |
23 public ::options::OptionsPageUIHandlerHost { | 23 public ::options::OptionsPageUIHandlerHost { |
24 public: | 24 public: |
25 explicit CertificateManagerDialogUI(content::WebUI* web_ui); | 25 explicit CertificateManagerDialogUI(content::WebUI* web_ui); |
26 virtual ~CertificateManagerDialogUI(); | 26 virtual ~CertificateManagerDialogUI(); |
27 | 27 |
28 private: | 28 private: |
29 // Overridden from OptionsPageUIHandlerHost: | 29 // Overridden from OptionsPageUIHandlerHost: |
30 virtual void InitializeHandlers() OVERRIDE; | 30 virtual void InitializeHandlers() override; |
31 | 31 |
32 bool initialized_handlers_; | 32 bool initialized_handlers_; |
33 | 33 |
34 ::options::CertificateManagerHandler* cert_handler_; // Weak ptr. | 34 ::options::CertificateManagerHandler* cert_handler_; // Weak ptr. |
35 options::CoreChromeOSOptionsHandler* core_handler_; // Weak ptr. | 35 options::CoreChromeOSOptionsHandler* core_handler_; // Weak ptr. |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogUI); | 37 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogUI); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace chromeos | 40 } // namespace chromeos |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ | 42 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_CERTIFICATE_MANAGER_DIALOG_UI_H_ |
OLD | NEW |