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

Unified Diff: chrome/browser/net/packed_ct_ev_whitelist.h

Issue 782333002: Certificate Transparency: Adding finch and NetLog logging for EV certs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in log_view_painter, update params description in netlog Created 6 years 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: chrome/browser/net/packed_ct_ev_whitelist.h
diff --git a/chrome/browser/net/packed_ct_ev_whitelist.h b/chrome/browser/net/packed_ct_ev_whitelist.h
index 6cbc545053861c3f3652acac78dffd3a61308ec3..f2b2f192f6b62431f79ab23faa29e3e84e4c2346 100644
--- a/chrome/browser/net/packed_ct_ev_whitelist.h
+++ b/chrome/browser/net/packed_ct_ev_whitelist.h
@@ -30,7 +30,8 @@ class PackedEVCertsWhitelist : public net::ct::EVCertsWhitelist {
public:
// Unpacks the given |compressed_whitelist|. See the class documentation
// for description of the |compressed_whitelist| format.
- explicit PackedEVCertsWhitelist(const std::string& compressed_whitelist);
+ PackedEVCertsWhitelist(const std::string& compressed_whitelist,
+ const base::Version& version);
// Returns true if the |certificate_hash| appears in the EV certificate hashes
// whitelist. Must not be called if IsValid for this instance returned false.
@@ -41,6 +42,9 @@ class PackedEVCertsWhitelist : public net::ct::EVCertsWhitelist {
// was valid, false otherwise.
bool IsValid() const override;
+ // Returns the version of the whitelist in use, if available.
+ base::Version Version() const override;
+
protected:
~PackedEVCertsWhitelist() override;
@@ -67,6 +71,7 @@ class PackedEVCertsWhitelist : public net::ct::EVCertsWhitelist {
// shows that bsearch is about twice as fast as std::set lookups (and std::set
// has additional memory overhead).
std::vector<uint64_t> whitelist_;
+ base::Version version_;
DISALLOW_COPY_AND_ASSIGN(PackedEVCertsWhitelist);
};

Powered by Google App Engine
This is Rietveld 408576698