| 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_CERT_ISSUER_SOURCE_H_ | 5 #ifndef NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_H_ |
| 6 #define NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_H_ | 6 #define NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // If an async callback will be made |*out_req| is filled with a Request | 64 // If an async callback will be made |*out_req| is filled with a Request |
| 65 // object which may be destroyed to cancel the callback. If the implementation | 65 // object which may be destroyed to cancel the callback. If the implementation |
| 66 // does not support asynchronous lookups or can determine synchronously that | 66 // does not support asynchronous lookups or can determine synchronously that |
| 67 // it would return no results, |*out_req| will be set to nullptr. | 67 // it would return no results, |*out_req| will be set to nullptr. |
| 68 // | 68 // |
| 69 // When matches are available or the request is complete, |issuers_callback| | 69 // When matches are available or the request is complete, |issuers_callback| |
| 70 // will be called with a pointer to the same Request. The Request::GetNext | 70 // will be called with a pointer to the same Request. The Request::GetNext |
| 71 // method may then be used to iterate through the retrieved issuers. Note that | 71 // method may then be used to iterate through the retrieved issuers. Note that |
| 72 // |issuers_callback| may be called multiple times. See the documentation for | 72 // |issuers_callback| may be called multiple times. See the documentation for |
| 73 // Request::GetNext for more details. | 73 // Request::GetNext for more details. |
| 74 virtual void AsyncGetIssuersOf(const ParsedCertificate* cert, | 74 virtual void AsyncGetIssuersOf(scoped_refptr<ParsedCertificate> cert, |
| 75 const IssuerCallback& issuers_callback, | 75 const IssuerCallback& issuers_callback, |
| 76 std::unique_ptr<Request>* out_req) = 0; | 76 std::unique_ptr<Request>* out_req) = 0; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace net | 79 } // namespace net |
| 80 | 80 |
| 81 #endif // NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_H_ | 81 #endif // NET_CERT_INTERNAL_CERT_ISSUER_SOURCE_H_ |
| OLD | NEW |