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

Unified Diff: net/cert/sth_distributor.h

Issue 1845113003: Certificate Transparency: Start tracking logs' state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/signed_tree_head.cc ('k') | net/cert/sth_distributor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/sth_distributor.h
diff --git a/net/cert/sth_distributor.h b/net/cert/sth_distributor.h
new file mode 100644
index 0000000000000000000000000000000000000000..69298ead6eba50a7b6bae79f5881f719ec7b65cd
--- /dev/null
+++ b/net/cert/sth_distributor.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_CERT_STH_DISTRIBUTOR_H_
+#define NET_CERT_STH_DISTRIBUTOR_H_
+
+#include "base/observer_list.h"
+#include "net/base/net_export.h"
+#include "net/cert/sth_observer.h"
+
+namespace net {
+
+namespace ct {
+
+class NET_EXPORT STHDistributor : public STHObserver, public STHReporter {
+ public:
+ STHDistributor();
+ ~STHDistributor() override;
+
+ void NewSTHObserved(const SignedTreeHead& sth) override;
+
+ void RegisterObserver(STHObserver* observer) override;
+ void UnregisterObserver(STHObserver* observer) override;
+
+ private:
+ base::ObserverList<STHObserver> observer_list_;
+};
+
+} // namespace ct
+
+} // namespace net
+
+#endif // NET_CERT_STH_DISTRIBUTOR_H_
« no previous file with comments | « net/cert/signed_tree_head.cc ('k') | net/cert/sth_distributor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698