Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/browser/ui/webui/settings/native_certificates_handler.h

Issue 1988463002: MD Settings: Convert C++ handlers to be JavaScript-lifecycle aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/languages_handler.h ('k') | chrome/browser/ui/webui/settings/profile_info_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698