Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / net / cert / cert_trust_anchor_provider.h
blob1712b2d02115a68ebb61689203ad4e20b5736da1
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_
6 #define NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_
8 #include <vector>
10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h"
13 namespace net {
15 class X509Certificate;
16 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
18 // Interface to retrieve the current list of additional trust anchors.
19 // This is used by CertVerifier to get a list of anchors to trust in addition to
20 // the anchors known to the CertVerifier.
21 class NET_EXPORT CertTrustAnchorProvider {
22 public:
23 virtual ~CertTrustAnchorProvider() {}
25 // Returns a list of certificates to be used as trust anchors during
26 // certificate validation, in addition to (eg: the union of) any pre-existing
27 // or pre-configured trust anchors.
28 virtual const CertificateList& GetAdditionalTrustAnchors() = 0;
31 } // namespace net
33 #endif // NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_