OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "chromeos/cert_loader.h" | 12 #include "chromeos/cert_loader.h" |
13 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 class CertNameComparator; | |
18 | |
19 // This class is responsible for keeping track of certificates in a UI | 17 // This class is responsible for keeping track of certificates in a UI |
20 // friendly manner. It observes CertLoader to receive certificate list | 18 // friendly manner. It observes CertLoader to receive certificate list |
21 // updates and sorts them by type for the UI. All public APIs are expected | 19 // updates and sorts them by type for the UI. All public APIs are expected |
22 // to be called from the UI thread and are non blocking. Observers will also | 20 // to be called from the UI thread and are non blocking. Observers will also |
23 // be called on the UI thread. | 21 // be called on the UI thread. |
24 class CertLibrary : public CertLoader::Observer { | 22 class CertLibrary : public CertLoader::Observer { |
25 public: | 23 public: |
26 class Observer { | 24 class Observer { |
27 public: | 25 public: |
28 virtual ~Observer() {} | 26 virtual ~Observer() {} |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 net::CertificateList user_certs_; | 95 net::CertificateList user_certs_; |
98 net::CertificateList server_certs_; | 96 net::CertificateList server_certs_; |
99 net::CertificateList server_ca_certs_; | 97 net::CertificateList server_ca_certs_; |
100 | 98 |
101 DISALLOW_COPY_AND_ASSIGN(CertLibrary); | 99 DISALLOW_COPY_AND_ASSIGN(CertLibrary); |
102 }; | 100 }; |
103 | 101 |
104 } // namespace chromeos | 102 } // namespace chromeos |
105 | 103 |
106 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ |
OLD | NEW |