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

Unified Diff: net/base/ev_root_ca_metadata.h

Issue 10857020: Do not perform online revocation checking when the user has explicitly disabled it, except for when… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: net/base/ev_root_ca_metadata.h
diff --git a/net/base/ev_root_ca_metadata.h b/net/base/ev_root_ca_metadata.h
index ab76c493de62d0069bd828e8dcdd7005cbd60f12..4e7af4035c61fc0259b362a7bca370ba10b734c6 100644
--- a/net/base/ev_root_ca_metadata.h
+++ b/net/base/ev_root_ca_metadata.h
@@ -12,6 +12,7 @@
#endif
#include <map>
+#include <set>
#include <vector>
#include "net/base/net_export.h"
@@ -36,14 +37,7 @@ class NET_EXPORT_PRIVATE EVRootCAMetadata {
static EVRootCAMetadata* GetInstance();
-#if defined(USE_NSS)
- // If the root CA cert has an EV policy OID, returns true and appends the
- // policy OIDs to |*policy_oids|. Otherwise, returns false.
- bool GetPolicyOIDsForCA(const SHA1Fingerprint& fingerprint,
- std::vector<PolicyOID>* policy_oids) const;
- const PolicyOID* GetPolicyOIDs() const;
- int NumPolicyOIDs() const;
-#elif defined(OS_WIN)
+#if defined(USE_NSS) || defined(OS_WIN)
// Returns true if policy_oid is an EV policy OID of some root CA.
bool IsEVPolicyOID(PolicyOID policy_oid) const;
@@ -77,7 +71,7 @@ class NET_EXPORT_PRIVATE EVRootCAMetadata {
static bool RegisterOID(const char* policy, PolicyOID* out);
PolicyOIDMap ev_policy_;
- std::vector<PolicyOID> policy_oids_;
+ std::set<PolicyOID> policy_oids_;
#elif defined(OS_WIN)
typedef std::map<SHA1Fingerprint, std::string,
SHA1FingerprintLessThan> ExtraEVCAMap;

Powered by Google App Engine
This is Rietveld 408576698