| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ | 5 #ifndef NET_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ |
| 6 #define NET_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ | 6 #define NET_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 #include "net/cert/internal/trust_store.h" | 10 #include "net/cert/internal/trust_store.h" |
| 11 | 11 |
| 12 namespace base { | |
| 13 class TaskRunner; | |
| 14 } | |
| 15 | |
| 16 namespace net { | 12 namespace net { |
| 17 | 13 |
| 18 // TrustStoreCollection is an implementation of TrustStore which combines the | 14 // TrustStoreCollection is an implementation of TrustStore which combines the |
| 19 // results from multiple TrustStores. | 15 // results from multiple TrustStores. |
| 20 // | 16 // |
| 21 // The synchronous matches will be in order from the primary store, and then | 17 // The synchronous matches will be in order from the primary store, and then |
| 22 // from the secondary stores in the order they were added to the | 18 // from the secondary stores in the order they were added to the |
| 23 // TrustStoreCollection. | 19 // TrustStoreCollection. |
| 24 // | 20 // |
| 25 // Currently only one "primary" store can be added that supports async queries, | 21 // Currently only one "primary" store can be added that supports async queries, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 private: | 49 private: |
| 54 TrustStore* primary_store_ = nullptr; | 50 TrustStore* primary_store_ = nullptr; |
| 55 std::vector<TrustStore*> sync_only_stores_; | 51 std::vector<TrustStore*> sync_only_stores_; |
| 56 | 52 |
| 57 DISALLOW_COPY_AND_ASSIGN(TrustStoreCollection); | 53 DISALLOW_COPY_AND_ASSIGN(TrustStoreCollection); |
| 58 }; | 54 }; |
| 59 | 55 |
| 60 } // namespace net | 56 } // namespace net |
| 61 | 57 |
| 62 #endif // NET_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ | 58 #endif // NET_CERT_INTERNAL_TRUST_STORE_COLLECTION_H_ |
| OLD | NEW |