| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 10 | 10 |
| 11 namespace settings { | 11 namespace settings { |
| 12 | 12 |
| 13 class NativeCertificatesHandler : public SettingsPageUIHandler { | 13 class NativeCertificatesHandler : public SettingsPageUIHandler { |
| 14 public: | 14 public: |
| 15 NativeCertificatesHandler(); | 15 NativeCertificatesHandler(); |
| 16 ~NativeCertificatesHandler() override; | 16 ~NativeCertificatesHandler() override; |
| 17 | 17 |
| 18 // SettingsPageUIHandler implementation. | 18 // SettingsPageUIHandler implementation. |
| 19 void RegisterMessages() override; | 19 void RegisterMessages() override; |
| 20 void OnJavascriptAllowed() override {} |
| 21 void OnJavascriptDisallowed() override {} |
| 20 | 22 |
| 21 // Callback for the "showManageSSLCertificates" message. This will invoke | 23 // Callback for the "showManageSSLCertificates" message. This will invoke |
| 22 // an appropriate certificate management action based on the platform. | 24 // an appropriate certificate management action based on the platform. |
| 23 void HandleShowManageSSLCertificates(const base::ListValue* args); | 25 void HandleShowManageSSLCertificates(const base::ListValue* args); |
| 24 | 26 |
| 25 private: | 27 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(NativeCertificatesHandler); | 28 DISALLOW_COPY_AND_ASSIGN(NativeCertificatesHandler); |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace settings | 31 } // namespace settings |
| 30 | 32 |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ | 33 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ |
| OLD | NEW |