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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 STATE_INITIALIZE_SCUP, | 109 STATE_INITIALIZE_SCUP, |
110 STATE_NONE, | 110 STATE_NONE, |
111 }; | 111 }; |
112 | 112 |
113 // Handles new server config and optional source-address token provided by the | 113 // Handles new server config and optional source-address token provided by the |
114 // server during a connection. | 114 // server during a connection. |
115 void HandleServerConfigUpdateMessage( | 115 void HandleServerConfigUpdateMessage( |
116 const CryptoHandshakeMessage& server_config_update); | 116 const CryptoHandshakeMessage& server_config_update); |
117 | 117 |
118 // DoHandshakeLoop performs a step of the handshake state machine. Note that | 118 // DoHandshakeLoop performs a step of the handshake state machine. Note that |
119 // |in| may be NULL if the call did not result from a received message. | 119 // |in| may be nullptr if the call did not result from a received message. |
120 void DoHandshakeLoop(const CryptoHandshakeMessage* in); | 120 void DoHandshakeLoop(const CryptoHandshakeMessage* in); |
121 | 121 |
122 // Start the handshake process. | 122 // Start the handshake process. |
123 void DoInitialize(QuicCryptoClientConfig::CachedState* cached); | 123 void DoInitialize(QuicCryptoClientConfig::CachedState* cached); |
124 | 124 |
125 // Send either InchoateClientHello or ClientHello message to the server. | 125 // Send either InchoateClientHello or ClientHello message to the server. |
126 void DoSendCHLO(const CryptoHandshakeMessage* in, | 126 void DoSendCHLO(const CryptoHandshakeMessage* in, |
127 QuicCryptoClientConfig::CachedState* cached); | 127 QuicCryptoClientConfig::CachedState* cached); |
128 | 128 |
129 // Process REJ message from the server. | 129 // Process REJ message from the server. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool verify_ok_; | 211 bool verify_ok_; |
212 string verify_error_details_; | 212 string verify_error_details_; |
213 scoped_ptr<ProofVerifyDetails> verify_details_; | 213 scoped_ptr<ProofVerifyDetails> verify_details_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 215 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
216 }; | 216 }; |
217 | 217 |
218 } // namespace net | 218 } // namespace net |
219 | 219 |
220 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 220 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
OLD | NEW |