OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 class CertIdMap; | 22 class CertIdMap; |
23 class FileAccessProvider; | 23 class FileAccessProvider; |
24 | 24 |
25 class CertificateManagerHandler | 25 class CertificateManagerHandler |
26 : public OptionsPageUIHandler, | 26 : public OptionsPageUIHandler, |
27 public CertificateManagerModel::Observer, | 27 public CertificateManagerModel::Observer, |
28 public ui::SelectFileDialog::Listener { | 28 public ui::SelectFileDialog::Listener { |
29 public: | 29 public: |
30 explicit CertificateManagerHandler(bool show_certs_in_modal_dialog); | 30 explicit CertificateManagerHandler(bool show_certs_in_modal_dialog); |
31 virtual ~CertificateManagerHandler(); | 31 ~CertificateManagerHandler() override; |
32 | 32 |
33 // OptionsPageUIHandler implementation. | 33 // OptionsPageUIHandler implementation. |
34 virtual void GetLocalizedValues( | 34 void GetLocalizedValues(base::DictionaryValue* localized_strings) override; |
35 base::DictionaryValue* localized_strings) override; | 35 void RegisterMessages() override; |
36 virtual void RegisterMessages() override; | |
37 | 36 |
38 // CertificateManagerModel::Observer implementation. | 37 // CertificateManagerModel::Observer implementation. |
39 virtual void CertificatesRefreshed() override; | 38 void CertificatesRefreshed() override; |
40 | 39 |
41 // SelectFileDialog::Listener implementation. | 40 // SelectFileDialog::Listener implementation. |
42 virtual void FileSelected(const base::FilePath& path, | 41 void FileSelected(const base::FilePath& path, |
43 int index, | 42 int index, |
44 void* params) override; | 43 void* params) override; |
45 virtual void FileSelectionCanceled(void* params) override; | 44 void FileSelectionCanceled(void* params) override; |
46 | 45 |
47 private: | 46 private: |
48 // View certificate. | 47 // View certificate. |
49 void View(const base::ListValue* args); | 48 void View(const base::ListValue* args); |
50 | 49 |
51 // Edit server certificate trust values. | 50 // Edit server certificate trust values. |
52 void EditServer(const base::ListValue* args); | 51 void EditServer(const base::ListValue* args); |
53 | 52 |
54 // Edit certificate authority trust values. The sequence goes like: | 53 // Edit certificate authority trust values. The sequence goes like: |
55 // 1. user clicks edit button -> CertificateEditCaTrustOverlay.show -> | 54 // 1. user clicks edit button -> CertificateEditCaTrustOverlay.show -> |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 scoped_ptr<CertIdMap> cert_id_map_; | 183 scoped_ptr<CertIdMap> cert_id_map_; |
185 | 184 |
186 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; | 185 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; |
187 | 186 |
188 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); | 187 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); |
189 }; | 188 }; |
190 | 189 |
191 } // namespace options | 190 } // namespace options |
192 | 191 |
193 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ | 192 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CERTIFICATE_MANAGER_HANDLER_H_ |
OLD | NEW |