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_CERTIFICATE_MANAGER_MODEL_H_ | 5 #ifndef CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ |
6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ | 6 #define CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "net/base/nss_cert_database.h" | 13 #include "net/cert/nss_cert_database.h" |
14 | 14 |
15 // CertificateManagerModel provides the data to be displayed in the certificate | 15 // CertificateManagerModel provides the data to be displayed in the certificate |
16 // manager dialog, and processes changes from the view. | 16 // manager dialog, and processes changes from the view. |
17 class CertificateManagerModel { | 17 class CertificateManagerModel { |
18 public: | 18 public: |
19 // Map from the subject organization name to the list of certs from that | 19 // Map from the subject organization name to the list of certs from that |
20 // organization. If a cert does not have an organization name, the | 20 // organization. If a cert does not have an organization name, the |
21 // subject's CertPrincipal::GetDisplayName() value is used instead. | 21 // subject's CertPrincipal::GetDisplayName() value is used instead. |
22 typedef std::map<std::string, net::CertificateList> OrgGroupingMap; | 22 typedef std::map<std::string, net::CertificateList> OrgGroupingMap; |
23 | 23 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 net::NSSCertDatabase* cert_db_; | 114 net::NSSCertDatabase* cert_db_; |
115 net::CertificateList cert_list_; | 115 net::CertificateList cert_list_; |
116 | 116 |
117 // The observer to notify when certificate list is refreshed. | 117 // The observer to notify when certificate list is refreshed. |
118 Observer* observer_; | 118 Observer* observer_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); | 120 DISALLOW_COPY_AND_ASSIGN(CertificateManagerModel); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ | 123 #endif // CHROME_BROWSER_CERTIFICATE_MANAGER_MODEL_H_ |
OLD | NEW |