| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/base/cert_database.h" | 5 #include "net/base/cert_database.h" |
| 6 | 6 |
| 7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
| 8 #include "base/observer_list_threadsafe.h" | 8 #include "base/observer_list_threadsafe.h" |
| 9 #include "net/base/x509_certificate.h" | |
| 10 | 9 |
| 11 namespace net { | 10 namespace net { |
| 12 | 11 |
| 13 CertDatabase::ImportCertFailure::ImportCertFailure( | 12 CertDatabase::ImportCertFailure::ImportCertFailure( |
| 14 X509Certificate* cert, int err) | 13 X509Certificate* cert, int err) |
| 15 : certificate(cert), net_error(err) { | 14 : certificate(cert), net_error(err) { |
| 16 } | 15 } |
| 17 | 16 |
| 18 CertDatabase::ImportCertFailure::~ImportCertFailure() { | 17 CertDatabase::ImportCertFailure::~ImportCertFailure() { |
| 19 } | 18 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 &CertDatabase::Observer::OnUserCertRemoved, make_scoped_refptr(cert)); | 56 &CertDatabase::Observer::OnUserCertRemoved, make_scoped_refptr(cert)); |
| 58 } | 57 } |
| 59 | 58 |
| 60 void CertDatabase::NotifyObserversOfCertTrustChanged( | 59 void CertDatabase::NotifyObserversOfCertTrustChanged( |
| 61 const X509Certificate* cert) { | 60 const X509Certificate* cert) { |
| 62 CertDatabaseNotifier::GetInstance()->observer_list_->Notify( | 61 CertDatabaseNotifier::GetInstance()->observer_list_->Notify( |
| 63 &CertDatabase::Observer::OnCertTrustChanged, make_scoped_refptr(cert)); | 62 &CertDatabase::Observer::OnCertTrustChanged, make_scoped_refptr(cert)); |
| 64 } | 63 } |
| 65 | 64 |
| 66 } // namespace net | 65 } // namespace net |
| OLD | NEW |