| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NET_CERT_STH_DISTRIBUTOR_H_ | 5 #ifndef NET_CERT_STH_DISTRIBUTOR_H_ |
| 6 #define NET_CERT_STH_DISTRIBUTOR_H_ | 6 #define NET_CERT_STH_DISTRIBUTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Unregisters |observer|, which must have been previously | 40 // Unregisters |observer|, which must have been previously |
| 41 // registered via RegisterObserver() | 41 // registered via RegisterObserver() |
| 42 void UnregisterObserver(STHObserver* observer) override; | 42 void UnregisterObserver(STHObserver* observer) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // STHs from logs, one for each log. | 45 // STHs from logs, one for each log. |
| 46 std::vector<SignedTreeHead> observed_sths_; | 46 std::vector<SignedTreeHead> observed_sths_; |
| 47 | 47 |
| 48 // The observers for new STH notifications. | 48 // The observers for new STH notifications. |
| 49 base::ObserverList<STHObserver> observer_list_; | 49 base::ObserverList<STHObserver, true> observer_list_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace ct | 52 } // namespace ct |
| 53 | 53 |
| 54 } // namespace net | 54 } // namespace net |
| 55 | 55 |
| 56 #endif // NET_CERT_STH_DISTRIBUTOR_H_ | 56 #endif // NET_CERT_STH_DISTRIBUTOR_H_ |
| OLD | NEW |