OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_COLLECTION_H_ |
| 6 #define NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_COLLECTION_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "net/cert/internal/cert_issuer_source.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 // Returns results from a collection of other CertIssuerSources. |
| 15 class NET_EXPORT CertIssuerSourceCollection : public CertIssuerSource { |
| 16 public: |
| 17 CertIssuerSourceCollection(); |
| 18 ~CertIssuerSourceCollection() override; |
| 19 |
| 20 // Adds |source| to the list of CertIssuerSources that will provide issuers. |
| 21 void AddSource(CertIssuerSource* source); |
| 22 |
| 23 // CertIssuerSource implementation: |
| 24 void SyncGetIssuersOf(const ParsedCertificate* cert, |
| 25 ParsedCertificateList* issuers) override; |
| 26 void AsyncGetIssuersOf(scoped_refptr<ParsedCertificate> cert, |
| 27 const IssuerCallback& issuers_callback, |
| 28 std::unique_ptr<Request>* out_req) override; |
| 29 |
| 30 private: |
| 31 std::vector<CertIssuerSource*> sources_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(CertIssuerSourceCollection); |
| 34 }; |
| 35 |
| 36 } // namespace net |
| 37 |
| 38 #endif // NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_COLLECTION_H_ |
OLD | NEW |