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

Unified Diff: components/certificate_transparency/single_tree_tracker.h

Issue 2650803004: Wire NetLog into the TreeStateTracker (Closed)
Patch Set: Looking for entry first 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/single_tree_tracker.h
diff --git a/components/certificate_transparency/single_tree_tracker.h b/components/certificate_transparency/single_tree_tracker.h
index eb9cd7f8ca0f178e894cc1a90444e7c84335070b..16342e1b1ee8cbaae375cec55b361ec28160997a 100644
--- a/components/certificate_transparency/single_tree_tracker.h
+++ b/components/certificate_transparency/single_tree_tracker.h
@@ -17,6 +17,7 @@
#include "net/cert/ct_verifier.h"
#include "net/cert/signed_tree_head.h"
#include "net/cert/sth_observer.h"
+#include "net/log/net_log_with_source.h"
namespace net {
@@ -78,7 +79,8 @@ class SingleTreeTracker : public net::CTVerifier::Observer,
};
SingleTreeTracker(scoped_refptr<const net::CTLogVerifier> ct_log,
- LogDnsClient* dns_client);
+ LogDnsClient* dns_client,
+ net::NetLog* net_log);
~SingleTreeTracker() override;
// net::ct::CTVerifier::Observer implementation.
@@ -142,6 +144,8 @@ class SingleTreeTracker : public net::CTVerifier::Observer,
void OnMemoryPressure(
base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level);
+ void LogAuditResultToNetLog(const EntryToAudit& entry, bool success);
+
// Holds the latest STH fetched and verified for this log.
net::ct::SignedTreeHead verified_sth_;
@@ -167,6 +171,8 @@ class SingleTreeTracker : public net::CTVerifier::Observer,
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
+ net::NetLogWithSource net_log_;
+
base::WeakPtrFactory<SingleTreeTracker> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SingleTreeTracker);
« no previous file with comments | « components/certificate_transparency/BUILD.gn ('k') | components/certificate_transparency/single_tree_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698