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 #include "chromeos/cert_loader.h" | 5 #include "chromeos/cert_loader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 certificates_update_running_ = false; | 167 certificates_update_running_ = false; |
168 if (certificates_update_required_) | 168 if (certificates_update_required_) |
169 LoadCertificates(); | 169 LoadCertificates(); |
170 } | 170 } |
171 | 171 |
172 void CertLoader::NotifyCertificatesLoaded(bool initial_load) { | 172 void CertLoader::NotifyCertificatesLoaded(bool initial_load) { |
173 FOR_EACH_OBSERVER(Observer, observers_, | 173 FOR_EACH_OBSERVER(Observer, observers_, |
174 OnCertificatesLoaded(*cert_list_, initial_load)); | 174 OnCertificatesLoaded(*cert_list_, initial_load)); |
175 } | 175 } |
176 | 176 |
177 void CertLoader::OnCACertChanged(const net::X509Certificate* cert) { | 177 void CertLoader::OnCertDBChanged(const net::X509Certificate* cert) { |
178 // This is triggered when a CA certificate is modified. | 178 VLOG(1) << "OnCertDBChanged"; |
179 VLOG(1) << "OnCACertChanged"; | |
180 LoadCertificates(); | 179 LoadCertificates(); |
181 } | 180 } |
182 | 181 |
183 void CertLoader::OnCertAdded(const net::X509Certificate* cert) { | |
184 // This is triggered when a client certificate is added. | |
185 VLOG(1) << "OnCertAdded"; | |
186 LoadCertificates(); | |
187 } | |
188 | |
189 void CertLoader::OnCertRemoved(const net::X509Certificate* cert) { | |
190 VLOG(1) << "OnCertRemoved"; | |
191 LoadCertificates(); | |
192 } | |
193 | |
194 } // namespace chromeos | 182 } // namespace chromeos |
OLD | NEW |