| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_CERT_STH_DISTRIBUTOR_H_ |
| 6 #define NET_CERT_STH_DISTRIBUTOR_H_ |
| 7 |
| 8 #include "base/observer_list.h" |
| 9 #include "net/base/net_export.h" |
| 10 #include "net/cert/sth_observer.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 namespace ct { |
| 15 |
| 16 class NET_EXPORT STHDistributor : public STHObserver, public STHReporter { |
| 17 public: |
| 18 STHDistributor(); |
| 19 ~STHDistributor() override; |
| 20 |
| 21 void NewSTHObserved(const SignedTreeHead& sth) override; |
| 22 |
| 23 void RegisterObserver(STHObserver* observer) override; |
| 24 void UnregisterObserver(STHObserver* observer) override; |
| 25 |
| 26 private: |
| 27 base::ObserverList<STHObserver> observer_list_; |
| 28 }; |
| 29 |
| 30 } // namespace ct |
| 31 |
| 32 } // namespace net |
| 33 |
| 34 #endif // NET_CERT_STH_DISTRIBUTOR_H_ |
| OLD | NEW |