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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 const QuicTagVector& connection_options, |
113 scoped_refptr<Chain>* out_chain, | 113 scoped_refptr<Chain>* out_chain, |
114 QuicCryptoProof* proof) = 0; | 114 QuicCryptoProof* out_proof) = 0; |
115 | 115 |
116 // Async version of GetProof with identical semantics, except that the results | 116 // Async version of GetProof with identical semantics, except that the results |
117 // are delivered to |callback|. Callers should expect that |callback| might | 117 // are delivered to |callback|. Callers should expect that |callback| might |
118 // be invoked synchronously. The ProofSource takes ownership of |callback| in | 118 // be invoked synchronously. The ProofSource takes ownership of |callback| in |
119 // any case. | 119 // any case. |
120 virtual void GetProof(const IPAddress& server_ip, | 120 virtual void GetProof(const IPAddress& server_ip, |
121 const std::string& hostname, | 121 const std::string& hostname, |
122 const std::string& server_config, | 122 const std::string& server_config, |
123 QuicVersion quic_version, | 123 QuicVersion quic_version, |
124 base::StringPiece chlo_hash, | 124 base::StringPiece chlo_hash, |
125 const QuicTagVector& connection_options, | 125 const QuicTagVector& connection_options, |
126 std::unique_ptr<Callback> callback) = 0; | 126 std::unique_ptr<Callback> callback) = 0; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace net | 129 } // namespace net |
130 | 130 |
131 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ | 131 #endif // NET_QUIC_CRYPTO_PROOF_SOURCE_H_ |
OLD | NEW |