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

Unified Diff: net/cert/sth_reporter.h

Issue 1853753003: Certificate Transparency: New component for obtaining fresh STHs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments by sorin & waffles 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 side-by-side diff with in-line comments
Download patch
Index: net/cert/sth_reporter.h
diff --git a/net/cert/sth_reporter.h b/net/cert/sth_reporter.h
new file mode 100644
index 0000000000000000000000000000000000000000..a62ad659bf9279ba9d4e4772ce39df61c811af19
--- /dev/null
+++ b/net/cert/sth_reporter.h
@@ -0,0 +1,31 @@
+// 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_REPORTER_H_
+#define NET_CERT_STH_REPORTER_H_
+
+#include <set>
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+namespace ct {
+
+class STHObserver;
+
+// Interface for registering/unregistering observers.
+class NET_EXPORT STHReporter {
+ public:
+ virtual ~STHReporter() {}
+
+ virtual void RegisterObserver(STHObserver* observer) = 0;
+ virtual void UnregisterObserver(STHObserver* observer) = 0;
+};
+
+} // namespace ct
+
+} // namespace net
+
+#endif // NET_CERT_STH_REPORTER_H_
« net/cert/sth_observer.h ('K') | « net/cert/sth_observer.h ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698