| 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_H_ | 5 #ifndef NET_CERT_INTERNAL_TRUST_STORE_H_ |
| 6 #define NET_CERT_INTERNAL_TRUST_STORE_H_ | 6 #define NET_CERT_INTERNAL_TRUST_STORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // | 133 // |
| 134 // If results are available synchronously, they will be appended to | 134 // If results are available synchronously, they will be appended to |
| 135 // |*synchronous_matches|. |*synchronous_matches| will not be modified | 135 // |*synchronous_matches|. |*synchronous_matches| will not be modified |
| 136 // asynchronously. | 136 // asynchronously. |
| 137 // | 137 // |
| 138 // If |callback| is not null and results may be available asynchronously, | 138 // If |callback| is not null and results may be available asynchronously, |
| 139 // |*out_req| will be filled with a Request, and |callback| will be called | 139 // |*out_req| will be filled with a Request, and |callback| will be called |
| 140 // when results are available. The Request may be destroyed to cancel | 140 // when results are available. The Request may be destroyed to cancel |
| 141 // the callback if it has not occurred yet. | 141 // the callback if it has not occurred yet. |
| 142 virtual void FindTrustAnchorsForCert( | 142 virtual void FindTrustAnchorsForCert( |
| 143 const ParsedCertificate* cert, | 143 const scoped_refptr<ParsedCertificate>& cert, |
| 144 const TrustAnchorsCallback& callback, | 144 const TrustAnchorsCallback& callback, |
| 145 TrustAnchors* synchronous_matches, | 145 TrustAnchors* synchronous_matches, |
| 146 std::unique_ptr<Request>* out_req) const = 0; | 146 std::unique_ptr<Request>* out_req) const = 0; |
| 147 | 147 |
| 148 private: | 148 private: |
| 149 DISALLOW_COPY_AND_ASSIGN(TrustStore); | 149 DISALLOW_COPY_AND_ASSIGN(TrustStore); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace net | 152 } // namespace net |
| 153 | 153 |
| 154 #endif // NET_CERT_INTERNAL_TRUST_STORE_H_ | 154 #endif // NET_CERT_INTERNAL_TRUST_STORE_H_ |
| OLD | NEW |