Chromium Code Reviews| 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(const CryptoHandshakeMessage& in); |
|
wtc
2014/07/16 20:42:47
Nit: please name the input "server_config_update".
ramant (doing other things)
2014/07/16 22:31:40
Done.
| |
| 110 | 110 |
| 111 // DoHandshakeLoop performs a step of the handshake state machine. Note that | 111 // 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. | 112 // |in| may be NULL if the call did not result from a received message. |
| 113 void DoHandshakeLoop(const CryptoHandshakeMessage* in); | 113 void DoHandshakeLoop(const CryptoHandshakeMessage* in); |
| 114 | 114 |
| 115 // Called to set the proof of |cached| valid. Also invokes the session's | 115 // Called to set the proof of |cached| valid. Also invokes the session's |
| 116 // OnProofValid() method. | 116 // OnProofValid() method. |
| 117 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); | 117 void SetCachedProofValid(QuicCryptoClientConfig::CachedState* cached); |
| 118 | 118 |
| 119 // Returns true if the server crypto config in |cached| requires a ChannelID | 119 // Returns true if the server crypto config in |cached| requires a ChannelID |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 bool verify_ok_; | 161 bool verify_ok_; |
| 162 string verify_error_details_; | 162 string verify_error_details_; |
| 163 scoped_ptr<ProofVerifyDetails> verify_details_; | 163 scoped_ptr<ProofVerifyDetails> verify_details_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); | 165 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace net | 168 } // namespace net |
| 169 | 169 |
| 170 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ | 170 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ |
| OLD | NEW |