OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_QUIC_CRYPTO_CLIENT_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/quic/crypto/channel_id.h" | 10 #include "net/quic/crypto/channel_id.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const CryptoHandshakeMessage& server_config_update); | 132 const CryptoHandshakeMessage& server_config_update); |
133 | 133 |
134 // DoHandshakeLoop performs a step of the handshake state machine. Note that | 134 // DoHandshakeLoop performs a step of the handshake state machine. Note that |
135 // |in| may be nullptr if the call did not result from a received message. | 135 // |in| may be nullptr if the call did not result from a received message. |
136 void DoHandshakeLoop(const CryptoHandshakeMessage* in); | 136 void DoHandshakeLoop(const CryptoHandshakeMessage* in); |
137 | 137 |
138 // Start the handshake process. | 138 // Start the handshake process. |
139 void DoInitialize(QuicCryptoClientConfig::CachedState* cached); | 139 void DoInitialize(QuicCryptoClientConfig::CachedState* cached); |
140 | 140 |
141 // Send either InchoateClientHello or ClientHello message to the server. | 141 // Send either InchoateClientHello or ClientHello message to the server. |
142 void DoSendCHLO(const CryptoHandshakeMessage* in, | 142 void DoSendCHLO(QuicCryptoClientConfig::CachedState* cached); |
143 QuicCryptoClientConfig::CachedState* cached); | |
144 | 143 |
145 // Process REJ message from the server. | 144 // Process REJ message from the server. |
146 void DoReceiveREJ(const CryptoHandshakeMessage* in, | 145 void DoReceiveREJ(const CryptoHandshakeMessage* in, |
147 QuicCryptoClientConfig::CachedState* cached); | 146 QuicCryptoClientConfig::CachedState* cached); |
148 | 147 |
149 // Start the proof verification process. Returns the QuicAsyncStatus returned | 148 // Start the proof verification process. Returns the QuicAsyncStatus returned |
150 // by the ProofVerifier's VerifyProof. | 149 // by the ProofVerifier's VerifyProof. |
151 QuicAsyncStatus DoVerifyProof(QuicCryptoClientConfig::CachedState* cached); | 150 QuicAsyncStatus DoVerifyProof(QuicCryptoClientConfig::CachedState* cached); |
152 | 151 |
153 // If proof is valid then it sets the proof as valid (which persists the | 152 // If proof is valid then it sets the proof as valid (which persists the |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // reject. Used for book-keeping between the STATE_RECV_REJ, | 231 // reject. Used for book-keeping between the STATE_RECV_REJ, |
233 // STATE_VERIFY_PROOF*, and subsequent STATE_SEND_CHLO state. | 232 // STATE_VERIFY_PROOF*, and subsequent STATE_SEND_CHLO state. |
234 bool stateless_reject_received_; | 233 bool stateless_reject_received_; |
235 | 234 |
236 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 235 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
237 }; | 236 }; |
238 | 237 |
239 } // namespace net | 238 } // namespace net |
240 | 239 |
241 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 240 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |