| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_QUIC_CRYPTO_PROOF_SOURCE_H_ | 5 #ifndef NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 6 #define NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // | 102 // |
| 103 // |out_leaf_cert_sct| points to the signed timestamp (RFC6962) of the leaf | 103 // |out_leaf_cert_sct| points to the signed timestamp (RFC6962) of the leaf |
| 104 // cert. | 104 // cert. |
| 105 // | 105 // |
| 106 // This function may be called concurrently. | 106 // This function may be called concurrently. |
| 107 virtual bool GetProof(const IPAddress& server_ip, | 107 virtual bool GetProof(const IPAddress& server_ip, |
| 108 const std::string& hostname, | 108 const std::string& hostname, |
| 109 const std::string& server_config, | 109 const std::string& server_config, |
| 110 QuicVersion quic_version, | 110 QuicVersion quic_version, |
| 111 base::StringPiece chlo_hash, | 111 base::StringPiece chlo_hash, |
| 112 const QuicTagVector& connection_options, |
| 112 scoped_refptr<Chain>* out_chain, | 113 scoped_refptr<Chain>* out_chain, |
| 113 std::string* out_signature, | 114 std::string* out_signature, |
| 114 std::string* out_leaf_cert_sct) = 0; | 115 std::string* out_leaf_cert_sct) = 0; |
| 115 | 116 |
| 116 // Async version of GetProof with identical semantics, except that the results | 117 // Async version of GetProof with identical semantics, except that the results |
| 117 // are delivered to |callback|. Callers should expect that |callback| might | 118 // are delivered to |callback|. Callers should expect that |callback| might |
| 118 // be invoked synchronously. The ProofSource takes ownership of |callback| in | 119 // be invoked synchronously. The ProofSource takes ownership of |callback| in |
| 119 // any case. | 120 // any case. |
| 120 virtual void GetProof(const IPAddress& server_ip, | 121 virtual void GetProof(const IPAddress& server_ip, |
| 121 const std::string& hostname, | 122 const std::string& hostname, |
| 122 const std::string& server_config, | 123 const std::string& server_config, |
| 123 QuicVersion quic_version, | 124 QuicVersion quic_version, |
| 124 base::StringPiece chlo_hash, | 125 base::StringPiece chlo_hash, |
| 126 const QuicTagVector& connection_options, |
| 125 std::unique_ptr<Callback> callback) = 0; | 127 std::unique_ptr<Callback> callback) = 0; |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace net | 130 } // namespace net |
| 129 | 131 |
| 130 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 132 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
| OLD | NEW |