| 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_SERVER_STREAM_H_ | 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| 7 | 7 |
| 8 #include <cstdint> | 8 #include <cstdint> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 QuicCryptoServerStream* parent_; | 174 QuicCryptoServerStream* parent_; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 // Invoked by ValidateCallback::RunImpl once initial validation of | 177 // Invoked by ValidateCallback::RunImpl once initial validation of |
| 178 // the client hello is complete. Finishes processing of the client | 178 // the client hello is complete. Finishes processing of the client |
| 179 // hello message and handles handshake success/failure. | 179 // hello message and handles handshake success/failure. |
| 180 void FinishProcessingHandshakeMessage( | 180 void FinishProcessingHandshakeMessage( |
| 181 scoped_refptr<ValidateClientHelloResultCallback::Result> result, | 181 scoped_refptr<ValidateClientHelloResultCallback::Result> result, |
| 182 std::unique_ptr<ProofSource::Details> details); | 182 std::unique_ptr<ProofSource::Details> details); |
| 183 | 183 |
| 184 class ProcessClientHelloCallback; |
| 185 friend class ProcessClientHelloCallback; |
| 186 |
| 187 // Portion of FinishProcessingHandshakeMessage which executes after |
| 188 // ProcessClientHello has been called. |
| 189 void FinishProcessingHandshakeMessageAfterProcessClientHello( |
| 190 const ValidateClientHelloResultCallback::Result& result, |
| 191 QuicErrorCode error, |
| 192 const std::string& error_details, |
| 193 std::unique_ptr<CryptoHandshakeMessage> reply, |
| 194 std::unique_ptr<DiversificationNonce> diversification_nonce); |
| 195 |
| 184 // Invoked by SendServerConfigUpdateCallback::RunImpl once the proof has been | 196 // Invoked by SendServerConfigUpdateCallback::RunImpl once the proof has been |
| 185 // received. |ok| indicates whether or not the proof was successfully | 197 // received. |ok| indicates whether or not the proof was successfully |
| 186 // acquired, and |message| holds the partially-constructed message from | 198 // acquired, and |message| holds the partially-constructed message from |
| 187 // SendServerConfigUpdate. | 199 // SendServerConfigUpdate. |
| 188 void FinishSendServerConfigUpdate(bool ok, | 200 void FinishSendServerConfigUpdate(bool ok, |
| 189 const CryptoHandshakeMessage& message); | 201 const CryptoHandshakeMessage& message); |
| 190 | 202 |
| 191 // Returns a new ConnectionId to be used for statelessly rejected connections | 203 // Returns a new ConnectionId to be used for statelessly rejected connections |
| 192 // if |use_stateless_rejects| is true. Returns 0 otherwise. | 204 // if |use_stateless_rejects| is true. Returns 0 otherwise. |
| 193 QuicConnectionId GenerateConnectionIdForReject(bool use_stateless_rejects); | 205 QuicConnectionId GenerateConnectionIdForReject(bool use_stateless_rejects); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 266 |
| 255 // Size of the packet containing the most recently received CHLO. | 267 // Size of the packet containing the most recently received CHLO. |
| 256 QuicByteCount chlo_packet_size_; | 268 QuicByteCount chlo_packet_size_; |
| 257 | 269 |
| 258 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 270 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
| 259 }; | 271 }; |
| 260 | 272 |
| 261 } // namespace net | 273 } // namespace net |
| 262 | 274 |
| 263 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 275 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| OLD | NEW |