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

Side by Side Diff: chrome/browser/ui/webui/settings/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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/settings/certificates_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CERTIFICATES_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CERTIFICATES_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CERTIFICATES_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CERTIFICATES_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 class CertificatesHandler 26 class CertificatesHandler
27 : public SettingsPageUIHandler, 27 : public SettingsPageUIHandler,
28 public CertificateManagerModel::Observer, 28 public CertificateManagerModel::Observer,
29 public ui::SelectFileDialog::Listener { 29 public ui::SelectFileDialog::Listener {
30 public: 30 public:
31 explicit CertificatesHandler(bool show_certs_in_modal_dialog); 31 explicit CertificatesHandler(bool show_certs_in_modal_dialog);
32 ~CertificatesHandler() override; 32 ~CertificatesHandler() override;
33 33
34 // SettingsPageUIHandler implementation. 34 // SettingsPageUIHandler implementation.
35 void RegisterMessages() override; 35 void RegisterMessages() override;
36 void OnJavascriptAllowed() override {}
37 void OnJavascriptDisallowed() override {}
36 38
37 // CertificateManagerModel::Observer implementation. 39 // CertificateManagerModel::Observer implementation.
38 void CertificatesRefreshed() override; 40 void CertificatesRefreshed() override;
39 41
40 // SelectFileDialog::Listener implementation. 42 // SelectFileDialog::Listener implementation.
41 void FileSelected(const base::FilePath& path, 43 void FileSelected(const base::FilePath& path,
42 int index, 44 int index,
43 void* params) override; 45 void* params) override;
44 void FileSelectionCanceled(void* params) override; 46 void FileSelectionCanceled(void* params) override;
45 47
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 std::unique_ptr<CertIdMap> cert_id_map_; 194 std::unique_ptr<CertIdMap> cert_id_map_;
193 195
194 base::WeakPtrFactory<CertificatesHandler> weak_ptr_factory_; 196 base::WeakPtrFactory<CertificatesHandler> weak_ptr_factory_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(CertificatesHandler); 198 DISALLOW_COPY_AND_ASSIGN(CertificatesHandler);
197 }; 199 };
198 200
199 } // namespace settings 201 } // namespace settings
200 202
201 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CERTIFICATES_HANDLER_H_ 203 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CERTIFICATES_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/settings/certificates_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698