Chromium Code Reviews| Index: net/cert/internal/cert_issuer_source_nss.h |
| diff --git a/net/cert/internal/cert_issuer_source_nss.h b/net/cert/internal/cert_issuer_source_nss.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b50d6e633637dd00f0ba5e2775fa70e24d9c4b9f |
| --- /dev/null |
| +++ b/net/cert/internal/cert_issuer_source_nss.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_ |
| +#define NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_ |
| + |
| +#include "net/base/net_export.h" |
| +#include "net/cert/internal/cert_issuer_source.h" |
| + |
| +namespace net { |
| + |
| +// Returns issuers from NSS. Always returns results syncronously. |
|
eroman
2016/11/29 20:18:27
spelling: synchronously
Can you also add a littl
mattm
2016/11/30 03:07:19
Done.
|
| +class NET_EXPORT CertIssuerSourceNSS : public CertIssuerSource { |
| + public: |
| + CertIssuerSourceNSS(); |
| + ~CertIssuerSourceNSS() override; |
| + |
| + // CertIssuerSource implementation: |
| + void SyncGetIssuersOf(const ParsedCertificate* cert, |
| + ParsedCertificateList* issuers) override; |
| + void AsyncGetIssuersOf(const ParsedCertificate* cert, |
|
eroman
2016/11/29 20:18:27
Side-note, and thinking out loud here (not related
mattm
2016/11/30 03:07:19
Possibly, if we find there aren't any other use ca
|
| + std::unique_ptr<Request>* out_req) override; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(CertIssuerSourceNSS); |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_NSS_H_ |