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

Side by Side Diff: net/cert/cert_trust_anchor_provider.h

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/cert/cert_status_flags.cc ('k') | net/cert/cert_type.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_CERT_TRUST_ANCHOR_PROVIDER_H_ 5 #ifndef NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_
6 #define NET_BASE_CERT_TRUST_ANCHOR_PROVIDER_H_ 6 #define NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class X509Certificate; 15 class X509Certificate;
16 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 16 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
17 17
18 // Interface to retrieve the current list of additional trust anchors. 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 19 // This is used by CertVerifier to get a list of anchors to trust in addition to
20 // the anchors known to the CertVerifier. 20 // the anchors known to the CertVerifier.
21 class NET_EXPORT CertTrustAnchorProvider { 21 class NET_EXPORT CertTrustAnchorProvider {
22 public: 22 public:
23 virtual ~CertTrustAnchorProvider() {} 23 virtual ~CertTrustAnchorProvider() {}
24 24
25 // Returns a list of certificates to be used as trust anchors during 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 26 // certificate validation, in addition to (eg: the union of) any pre-existing
27 // or pre-configured trust anchors. 27 // or pre-configured trust anchors.
28 virtual const CertificateList& GetAdditionalTrustAnchors() = 0; 28 virtual const CertificateList& GetAdditionalTrustAnchors() = 0;
29 }; 29 };
30 30
31 } // namespace net 31 } // namespace net
32 32
33 #endif // NET_BASE_CERT_TRUST_ANCHOR_PROVIDER_H_ 33 #endif // NET_CERT_CERT_TRUST_ANCHOR_PROVIDER_H_
OLDNEW
« no previous file with comments | « net/cert/cert_status_flags.cc ('k') | net/cert/cert_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698