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_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/cancelable_request.h" | 14 #include "chrome/browser/cancelable_request.h" |
15 #include "chrome/browser/certificate_manager_model.h" | 15 #include "chrome/browser/certificate_manager_model.h" |
16 #include "chrome/browser/ui/select_file_dialog.h" | 16 #include "chrome/browser/ui/select_file_dialog.h" |
17 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 17 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
18 #include "net/base/cert_database.h" | 18 #include "net/base/cert_database.h" |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 | 20 |
21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
22 #include "chromeos/dbus/cryptohome_client.h" | 22 #include "chromeos/dbus/cryptohome_client.h" |
23 #endif | 23 #endif |
24 | 24 |
25 namespace options2 { | 25 namespace options2 { |
26 | 26 |
| 27 class CertIdMap; |
27 class FileAccessProvider; | 28 class FileAccessProvider; |
28 | 29 |
29 class CertificateManagerHandler : public OptionsPageUIHandler, | 30 class CertificateManagerHandler : public OptionsPageUIHandler, |
30 public CertificateManagerModel::Observer, | 31 public CertificateManagerModel::Observer, |
31 public SelectFileDialog::Listener { | 32 public SelectFileDialog::Listener { |
32 public: | 33 public: |
33 CertificateManagerHandler(); | 34 CertificateManagerHandler(); |
34 virtual ~CertificateManagerHandler(); | 35 virtual ~CertificateManagerHandler(); |
35 | 36 |
36 // OptionsPageUIHandler implementation. | 37 // OptionsPageUIHandler implementation. |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 net::CertificateList selected_cert_list_; | 171 net::CertificateList selected_cert_list_; |
171 scoped_refptr<SelectFileDialog> select_file_dialog_; | 172 scoped_refptr<SelectFileDialog> select_file_dialog_; |
172 scoped_refptr<net::CryptoModule> module_; | 173 scoped_refptr<net::CryptoModule> module_; |
173 | 174 |
174 // Used in reading and writing certificate files. | 175 // Used in reading and writing certificate files. |
175 CancelableRequestConsumer consumer_; | 176 CancelableRequestConsumer consumer_; |
176 scoped_refptr<FileAccessProvider> file_access_provider_; | 177 scoped_refptr<FileAccessProvider> file_access_provider_; |
177 | 178 |
178 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; | 179 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; |
179 | 180 |
| 181 scoped_ptr<CertIdMap> cert_id_map_; |
| 182 |
180 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); | 183 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); |
181 }; | 184 }; |
182 | 185 |
183 } // namespace options2 | 186 } // namespace options2 |
184 | 187 |
185 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 188 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
OLD | NEW |