Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: net/cert/sth_distributor.h

Issue 1853753003: Certificate Transparency: New component for obtaining fresh STHs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing compilation errors on ChromeOS Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // A proxy for delegating new STH notifications to all registered
17 // observers.
18 // For each |observer| registered with RegisterObserver, the
19 // NewSTHObserved method will be called whenever the STHDistributor's
20 // NewSTHObserved method is invoked.
21 class NET_EXPORT STHDistributor : public STHObserver, public STHReporter {
22 public:
23 STHDistributor();
24 ~STHDistributor() override;
25
26 // STHObserver implementation.
27 void NewSTHObserved(const SignedTreeHead& sth) override;
28
29 // STHReporter implementation
30 void RegisterObserver(STHObserver* observer) override;
31 void UnregisterObserver(STHObserver* observer) override;
32
33 private:
34 base::ObserverList<STHObserver> observer_list_;
35 };
36
37 } // namespace ct
38
39 } // namespace net
40
41 #endif // NET_CERT_STH_DISTRIBUTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698