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