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/cert/cert_database.h" | 5 #include "net/cert/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 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 void CertDatabase::NotifyObserversOfCertAdded(const X509Certificate* cert) { | 27 void CertDatabase::NotifyObserversOfCertAdded(const X509Certificate* cert) { |
28 observer_list_->Notify(&Observer::OnCertAdded, make_scoped_refptr(cert)); | 28 observer_list_->Notify(&Observer::OnCertAdded, make_scoped_refptr(cert)); |
29 } | 29 } |
30 | 30 |
31 void CertDatabase::NotifyObserversOfCertRemoved(const X509Certificate* cert) { | 31 void CertDatabase::NotifyObserversOfCertRemoved(const X509Certificate* cert) { |
32 observer_list_->Notify(&Observer::OnCertRemoved, make_scoped_refptr(cert)); | 32 observer_list_->Notify(&Observer::OnCertRemoved, make_scoped_refptr(cert)); |
33 } | 33 } |
34 | 34 |
35 void CertDatabase::NotifyObserversOfCACertChanged( | 35 void CertDatabase::NotifyObserversOfCACertChanged(const X509Certificate* cert) { |
36 const X509Certificate* cert) { | 36 observer_list_->Notify(&Observer::OnCACertChanged, make_scoped_refptr(cert)); |
37 observer_list_->Notify( | |
38 &Observer::OnCACertChanged, make_scoped_refptr(cert)); | |
39 } | 37 } |
40 | 38 |
41 } // namespace net | 39 } // namespace net |
OLD | NEW |