Chromium Code Reviews| Index: net/cert/sth_distributor.h |
| diff --git a/net/cert/sth_distributor.h b/net/cert/sth_distributor.h |
| index 3d9691cc56c029a47c627f6aee0987d7e2b5c3cf..08fa332838051625048a4b125968bcbdba9f7c04 100644 |
| --- a/net/cert/sth_distributor.h |
| +++ b/net/cert/sth_distributor.h |
| @@ -5,6 +5,8 @@ |
| #ifndef NET_CERT_STH_DISTRIBUTOR_H_ |
| #define NET_CERT_STH_DISTRIBUTOR_H_ |
| +#include <vector> |
| + |
| #include "base/observer_list.h" |
| #include "net/base/net_export.h" |
| #include "net/cert/sth_observer.h" |
| @@ -28,10 +30,20 @@ class NET_EXPORT STHDistributor : public STHObserver, public STHReporter { |
| void NewSTHObserved(const SignedTreeHead& sth) override; |
| // STHReporter implementation |
|
Ryan Sleevi
2016/05/13 15:41:12
[NOT FOR THIS CL]
I'm not sure how or why I misse
Eran Messeri
2016/05/16 13:55:14
Acknowledged - it seems possible to remove the STH
|
| + // Registers |observer| for new STH notifications and invokes the |
| + // new STH notification of this |observer| with observed STHs (one |
| + // per log). |
| void RegisterObserver(STHObserver* observer) override; |
| + |
| + // Unregisters |observer|, should only be called with observers |
| + // that were previously registered via RegisterObserver; |
| void UnregisterObserver(STHObserver* observer) override; |
| private: |
| + // STHs from logs, one for each log. |
| + std::vector<SignedTreeHead> observed_sths_; |
|
Ryan Sleevi
2016/05/13 15:41:12
Why doesn't this need to be included or forward de
Eran Messeri
2016/05/16 13:55:14
Done - as you point out I relied on the STHObserve
|
| + |
| + // The observers for new STH notifications. |
| base::ObserverList<STHObserver> observer_list_; |
| }; |