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

Unified Diff: net/cert/crl_set.h

Issue 302643003: Remove unnecessary copies in CRLSet parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Egor's comments Created 6 years, 7 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: net/cert/crl_set.h
diff --git a/net/cert/crl_set.h b/net/cert/crl_set.h
index 348005f097b75483aa5cd2819f8471c4b77e32b0..6ef4bb740b23460dced018ccf61a620ebea35ed1 100644
--- a/net/cert/crl_set.h
+++ b/net/cert/crl_set.h
@@ -5,11 +5,11 @@
#ifndef NET_CERT_CRL_SET_H_
#define NET_CERT_CRL_SET_H_
-#include <map>
#include <string>
#include <utility>
#include <vector>
+#include "base/containers/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
@@ -117,7 +117,7 @@ class NET_EXPORT CRLSet : public base::RefCountedThreadSafe<CRLSet> {
// where the information for that issuer can be found. We have both |crls_|
// and |crls_index_by_issuer_| because, when applying a delta update, we need
// to identify a CRL by index.
- std::map<std::string, size_t> crls_index_by_issuer_;
+ base::hash_map<std::string, size_t> crls_index_by_issuer_;
// blocked_spkis_ contains the SHA256 hashes of SPKIs which are to be blocked
// no matter where in a certificate chain they might appear.
std::vector<std::string> blocked_spkis_;
« no previous file with comments | « chrome/browser/net/crl_set_fetcher.cc ('k') | net/cert/crl_set.cc » ('j') | net/cert/crl_set.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698