| 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" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/task_scheduler/post_task.h" | 14 #include "base/task_scheduler/post_task.h" |
| 15 #include "base/threading/worker_pool.h" | |
| 16 #include "crypto/nss_util.h" | 15 #include "crypto/nss_util.h" |
| 17 #include "crypto/scoped_nss_types.h" | 16 #include "crypto/scoped_nss_types.h" |
| 18 #include "net/cert/nss_cert_database.h" | 17 #include "net/cert/nss_cert_database.h" |
| 19 #include "net/cert/nss_cert_database_chromeos.h" | 18 #include "net/cert/nss_cert_database_chromeos.h" |
| 20 #include "net/cert/x509_certificate.h" | 19 #include "net/cert/x509_certificate.h" |
| 21 | 20 |
| 22 namespace chromeos { | 21 namespace chromeos { |
| 23 | 22 |
| 24 namespace { | 23 namespace { |
| 25 | 24 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 for (auto& observer : observers_) | 242 for (auto& observer : observers_) |
| 244 observer.OnCertificatesLoaded(*all_certs_, initial_load); | 243 observer.OnCertificatesLoaded(*all_certs_, initial_load); |
| 245 } | 244 } |
| 246 | 245 |
| 247 void CertLoader::OnCertDBChanged() { | 246 void CertLoader::OnCertDBChanged() { |
| 248 VLOG(1) << "OnCertDBChanged"; | 247 VLOG(1) << "OnCertDBChanged"; |
| 249 LoadCertificates(); | 248 LoadCertificates(); |
| 250 } | 249 } |
| 251 | 250 |
| 252 } // namespace chromeos | 251 } // namespace chromeos |
| OLD | NEW |