| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 STATE_RECV_REJ, | 99 STATE_RECV_REJ, |
| 100 STATE_VERIFY_PROOF, | 100 STATE_VERIFY_PROOF, |
| 101 STATE_VERIFY_PROOF_COMPLETE, | 101 STATE_VERIFY_PROOF_COMPLETE, |
| 102 STATE_GET_CHANNEL_ID, | 102 STATE_GET_CHANNEL_ID, |
| 103 STATE_GET_CHANNEL_ID_COMPLETE, | 103 STATE_GET_CHANNEL_ID_COMPLETE, |
| 104 STATE_RECV_SHLO, | 104 STATE_RECV_SHLO, |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 // Handles new server config and optional source-address token provided by the | 107 // Handles new server config and optional source-address token provided by the |
| 108 // server during a connection. | 108 // server during a connection. |
| 109 void HandleServerConfigUpdateMessage(const CryptoHandshakeMessage* in); | 109 void HandleServerConfigUpdateMessage( |
| 110 const CryptoHandshakeMessage& server_config_update); |
| 110 | 111 |
| 111 // DoHandshakeLoop performs a step of the handshake state machine. Note that | 112 // DoHandshakeLoop performs a step of the handshake state machine. Note that |
| 112 // |in| may be NULL if the call did not result from a received message. | 113 // |in| may be NULL if the call did not result from a received message. |
| 113 void DoHandshakeLoop(const CryptoHandshakeMessage* in); | 114 void DoHandshakeLoop(const CryptoHandshakeMessage* in); |
| 114 | 115 |
| 115 // Called to set the proof of |cached| valid. Also invokes the session's | 116 // Called to set the proof of |cached| valid. Also invokes the session's |
| 116 // OnProofValid() method. | 117 // OnProofValid() method. |
| 117 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); | 118 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); |
| 118 | 119 |
| 119 // Returns true if the server crypto config in |cached| requires a ChannelID | 120 // Returns true if the server crypto config in |cached| requires a ChannelID |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 bool verify_ok_; | 165 bool verify_ok_; |
| 165 string verify_error_details_; | 166 string verify_error_details_; |
| 166 scoped_ptr<ProofVerifyDetails> verify_details_; | 167 scoped_ptr<ProofVerifyDetails> verify_details_; |
| 167 | 168 |
| 168 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 169 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace net | 172 } // namespace net |
| 172 | 173 |
| 173 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 174 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |