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

Unified Diff: net/cert/internal/trust_store_in_memory.h

Issue 2755483008: Add initial CertVerifyProcBuiltin. (Closed)
Patch Set: type notimplemented properly Created 3 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/internal/signature_policy.cc ('k') | net/cert/internal/trust_store_in_memory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/trust_store_in_memory.h
diff --git a/net/cert/internal/trust_store_in_memory.h b/net/cert/internal/trust_store_in_memory.h
index 45b5123caf14d42026f0bbbc9d9a8588d050a81e..214d73e7a149c09bf58671bf59203e6f162f2aab 100644
--- a/net/cert/internal/trust_store_in_memory.h
+++ b/net/cert/internal/trust_store_in_memory.h
@@ -30,6 +30,11 @@ class NET_EXPORT TrustStoreInMemory : public TrustStore {
void FindTrustAnchorsForCert(const scoped_refptr<ParsedCertificate>& cert,
TrustAnchors* matches) const override;
+ // Returns true if the trust store contains the given TrustAnchor instance.
+ // Note that this considers only pointer equality and not a more
+ // broad notion of equivalence based on the object's content.
+ bool Contains(const TrustAnchor* anchor) const;
+
private:
// Multimap from normalized subject -> TrustAnchor.
std::unordered_multimap<base::StringPiece,
« no previous file with comments | « net/cert/internal/signature_policy.cc ('k') | net/cert/internal/trust_store_in_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698