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

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: Addressing review comments 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 #include "net/cert/sth_reporter.h"
12
13 namespace net {
14
15 namespace ct {
16
17 // A proxy for delegating new STH notifications to all registered
18 // observers.
19 // For each |observer| registered with RegisterObserver, the
20 // NewSTHObserved method will be called whenever the STHDistributor's
21 // NewSTHObserved method is invoked.
22 class NET_EXPORT STHDistributor : public STHObserver, public STHReporter {
23 public:
24 STHDistributor();
25 ~STHDistributor() override;
26
27 // STHObserver implementation.
28 void NewSTHObserved(const SignedTreeHead& sth) override;
29
30 // STHReporter implementation
31 void RegisterObserver(STHObserver* observer) override;
32 void UnregisterObserver(STHObserver* observer) override;
33
34 private:
35 base::ObserverList<STHObserver> observer_list_;
36 };
37
38 } // namespace ct
39
40 } // namespace net
41
42 #endif // NET_CERT_STH_DISTRIBUTOR_H_
OLDNEW
« no previous file with comments | « components/component_updater/default_component_installer.cc ('k') | net/cert/sth_distributor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698