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

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

Issue 2266333002: Allow TrustStore queries to be asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 4 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/trust_store_in_memory.h ('k') | net/cert/internal/trust_store_test_helpers.h » ('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.cc
diff --git a/net/cert/internal/trust_store_in_memory.cc b/net/cert/internal/trust_store_in_memory.cc
index 86c80c9e23936b3dd9d6a618793f4377638e96dc..926d2bf851972db2f341cfd40827d2721aba2a48 100644
--- a/net/cert/internal/trust_store_in_memory.cc
+++ b/net/cert/internal/trust_store_in_memory.cc
@@ -19,12 +19,14 @@ void TrustStoreInMemory::AddTrustAnchor(scoped_refptr<TrustAnchor> anchor) {
std::move(anchor)));
}
-void TrustStoreInMemory::FindTrustAnchorsByNormalizedName(
- const der::Input& normalized_name,
- TrustAnchors* matches) const {
- auto range = anchors_.equal_range(normalized_name.AsStringPiece());
+void TrustStoreInMemory::FindTrustAnchorsForCert(
+ const ParsedCertificate* cert,
+ const TrustAnchorsCallback& callback,
+ TrustAnchors* synchronous_matches,
+ std::unique_ptr<Request>* out_req) const {
+ auto range = anchors_.equal_range(cert->normalized_issuer().AsStringPiece());
for (auto it = range.first; it != range.second; ++it)
- matches->push_back(it->second);
+ synchronous_matches->push_back(it->second);
}
} // namespace net
« no previous file with comments | « net/cert/internal/trust_store_in_memory.h ('k') | net/cert/internal/trust_store_test_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698