| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROMEOS_CERT_LOADER_H_ | 5 #ifndef CHROMEOS_CERT_LOADER_H_ |
| 6 #define CHROMEOS_CERT_LOADER_H_ | 6 #define CHROMEOS_CERT_LOADER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // kick off the update of the certificate list. | 116 // kick off the update of the certificate list. |
| 117 void InitializeTokenAndLoadCertificates(); | 117 void InitializeTokenAndLoadCertificates(); |
| 118 void RetryTokenInitializationLater(); | 118 void RetryTokenInitializationLater(); |
| 119 void OnPersistentNSSDBOpened(); | 119 void OnPersistentNSSDBOpened(); |
| 120 void OnTpmIsEnabled(DBusMethodCallStatus call_status, | 120 void OnTpmIsEnabled(DBusMethodCallStatus call_status, |
| 121 bool tpm_is_enabled); | 121 bool tpm_is_enabled); |
| 122 void OnPkcs11IsTpmTokenReady(DBusMethodCallStatus call_status, | 122 void OnPkcs11IsTpmTokenReady(DBusMethodCallStatus call_status, |
| 123 bool is_tpm_token_ready); | 123 bool is_tpm_token_ready); |
| 124 void OnPkcs11GetTpmTokenInfo(DBusMethodCallStatus call_status, | 124 void OnPkcs11GetTpmTokenInfo(DBusMethodCallStatus call_status, |
| 125 const std::string& token_name, | 125 const std::string& token_name, |
| 126 const std::string& user_pin); | 126 const std::string& user_pin, |
| 127 int token_slot); |
| 127 void OnTPMTokenInitialized(bool success); | 128 void OnTPMTokenInitialized(bool success); |
| 128 | 129 |
| 129 // These calls handle the updating of the certificate list after the TPM token | 130 // These calls handle the updating of the certificate list after the TPM token |
| 130 // was initialized. | 131 // was initialized. |
| 131 | 132 |
| 132 // Start certificate loading. Must be called at most once. | 133 // Start certificate loading. Must be called at most once. |
| 133 void StartLoadCertificates(); | 134 void StartLoadCertificates(); |
| 134 | 135 |
| 135 // Trigger a certificate load. If a certificate loading task is already in | 136 // Trigger a certificate load. If a certificate loading task is already in |
| 136 // progress, will start a reload once the current task finised. | 137 // progress, will start a reload once the current task finised. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // This factory should be used only for callbacks during updating the | 199 // This factory should be used only for callbacks during updating the |
| 199 // certificate list. | 200 // certificate list. |
| 200 base::WeakPtrFactory<CertLoader> update_certificates_factory_; | 201 base::WeakPtrFactory<CertLoader> update_certificates_factory_; |
| 201 | 202 |
| 202 DISALLOW_COPY_AND_ASSIGN(CertLoader); | 203 DISALLOW_COPY_AND_ASSIGN(CertLoader); |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 } // namespace chromeos | 206 } // namespace chromeos |
| 206 | 207 |
| 207 #endif // CHROMEOS_CERT_LOADER_H_ | 208 #endif // CHROMEOS_CERT_LOADER_H_ |
| OLD | NEW |