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

Unified Diff: components/certificate_transparency/tree_state_tracker.h

Issue 2017563002: Add Certificate Transparency logs auditing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Ryan's two final comments Created 3 years, 11 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: components/certificate_transparency/tree_state_tracker.h
diff --git a/components/certificate_transparency/tree_state_tracker.h b/components/certificate_transparency/tree_state_tracker.h
index 978a909bfddab9105ef80a28bee6abf2c0fb95b4..7523978f34e86b73996ba91ae88d1a70a29b4119 100644
--- a/components/certificate_transparency/tree_state_tracker.h
+++ b/components/certificate_transparency/tree_state_tracker.h
@@ -26,6 +26,7 @@ struct SignedTreeHead;
} // namespace net
namespace certificate_transparency {
+class LogDnsClient;
class SingleTreeTracker;
// This class receives notifications of new Signed Tree Heads (STHs) and
@@ -56,6 +57,12 @@ class TreeStateTracker : public net::CTVerifier::Observer,
void NewSTHObserved(const net::ct::SignedTreeHead& sth) override;
private:
+ // A Log DNS client for fetching inclusion proof and leaf indices from
+ // DNS front-end of CT logs.
+ // Shared between all SingleTreeTrackers, for rate-limiting across all
+ // trackers. Must be deleted after the tree trackers.
+ std::unique_ptr<LogDnsClient> dns_client_;
+
// Holds the SingleTreeTracker for each log
std::map<std::string, std::unique_ptr<SingleTreeTracker>> tree_trackers_;

Powered by Google App Engine
This is Rietveld 408576698