| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CROS_CERT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void AddObserver(Observer* observer) = 0; | 73 virtual void AddObserver(Observer* observer) = 0; |
| 74 | 74 |
| 75 // Unregisters |observer| from receiving notifications. This must be called | 75 // Unregisters |observer| from receiving notifications. This must be called |
| 76 // on the same thread on which AddObserver() was called. | 76 // on the same thread on which AddObserver() was called. |
| 77 virtual void RemoveObserver(Observer* observer) = 0; | 77 virtual void RemoveObserver(Observer* observer) = 0; |
| 78 | 78 |
| 79 // Call this to start the certificate list initialization process. | 79 // Call this to start the certificate list initialization process. |
| 80 // Must be called from the UI thread. | 80 // Must be called from the UI thread. |
| 81 virtual void RequestCertificates() = 0; | 81 virtual void RequestCertificates() = 0; |
| 82 | 82 |
| 83 // Returns true when the certificate list has been requested but not loaded. |
| 84 virtual bool CertificatesLoading() const = 0; |
| 85 |
| 83 // Returns true when the certificate list has been initiailized. | 86 // Returns true when the certificate list has been initiailized. |
| 84 virtual bool CertificatesLoaded() const = 0; | 87 virtual bool CertificatesLoaded() const = 0; |
| 85 | 88 |
| 86 // Returns true if the TPM is available for hardware-backed certificates. | 89 // Returns true if the TPM is available for hardware-backed certificates. |
| 87 virtual bool IsHardwareBacked() const = 0; | 90 virtual bool IsHardwareBacked() const = 0; |
| 88 | 91 |
| 89 // Returns the cached TPM token name. | 92 // Returns the cached TPM token name. |
| 90 virtual const std::string& GetTpmTokenName() const = 0; | 93 virtual const std::string& GetTpmTokenName() const = 0; |
| 91 | 94 |
| 92 // Returns the current list of all certificates. | 95 // Returns the current list of all certificates. |
| 93 virtual const CertList& GetCertificates() const = 0; | 96 virtual const CertList& GetCertificates() const = 0; |
| 94 | 97 |
| 95 // Returns the current list of user certificates. | 98 // Returns the current list of user certificates. |
| 96 virtual const CertList& GetUserCertificates() const = 0; | 99 virtual const CertList& GetUserCertificates() const = 0; |
| 97 | 100 |
| 98 // Returns the current list of server certificates. | 101 // Returns the current list of server certificates. |
| 99 virtual const CertList& GetServerCertificates() const = 0; | 102 virtual const CertList& GetServerCertificates() const = 0; |
| 100 | 103 |
| 101 // Returns the current list of server CA certificates. | 104 // Returns the current list of server CA certificates. |
| 102 virtual const CertList& GetCACertificates() const = 0; | 105 virtual const CertList& GetCACertificates() const = 0; |
| 103 | 106 |
| 104 // Returns the supplemental user key. | 107 // Returns the supplemental user key. |
| 105 virtual crypto::SymmetricKey* GetSupplementalUserKey() const = 0; | 108 virtual crypto::SymmetricKey* GetSupplementalUserKey() const = 0; |
| 106 }; | 109 }; |
| 107 | 110 |
| 108 } // namespace chromeos | 111 } // namespace chromeos |
| 109 | 112 |
| 110 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 113 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| OLD | NEW |