| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |