| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void SetPeerSupportsStatelessRejects( | 114 void SetPeerSupportsStatelessRejects( |
| 115 bool peer_supports_stateless_rejects) override; | 115 bool peer_supports_stateless_rejects) override; |
| 116 void SetPreviousCachedNetworkParams( | 116 void SetPreviousCachedNetworkParams( |
| 117 CachedNetworkParameters cached_network_params) override; | 117 CachedNetworkParameters cached_network_params) override; |
| 118 | 118 |
| 119 protected: | 119 protected: |
| 120 virtual QuicErrorCode ProcessClientHello( | 120 virtual QuicErrorCode ProcessClientHello( |
| 121 const CryptoHandshakeMessage& message, | 121 const CryptoHandshakeMessage& message, |
| 122 const ValidateClientHelloResultCallback::Result& result, | 122 const ValidateClientHelloResultCallback::Result& result, |
| 123 CryptoHandshakeMessage* reply, | 123 CryptoHandshakeMessage* reply, |
| 124 DiversificationNonce* out_diversification_nonce, |
| 124 std::string* error_details); | 125 std::string* error_details); |
| 125 | 126 |
| 126 // Hook that allows the server to set QuicConfig defaults just | 127 // Hook that allows the server to set QuicConfig defaults just |
| 127 // before going through the parameter negotiation step. | 128 // before going through the parameter negotiation step. |
| 128 virtual void OverrideQuicConfigDefaults(QuicConfig* config); | 129 virtual void OverrideQuicConfigDefaults(QuicConfig* config); |
| 129 | 130 |
| 130 // Given the current connection_id, generates a new ConnectionId to | 131 // Given the current connection_id, generates a new ConnectionId to |
| 131 // be returned with a stateless reject. | 132 // be returned with a stateless reject. |
| 132 virtual QuicConnectionId GenerateConnectionIdForReject( | 133 virtual QuicConnectionId GenerateConnectionIdForReject( |
| 133 QuicConnectionId connection_id); | 134 QuicConnectionId connection_id); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // TODO(jokulik): Remove once client stateless reject support | 211 // TODO(jokulik): Remove once client stateless reject support |
| 211 // becomes the default. | 212 // becomes the default. |
| 212 bool peer_supports_stateless_rejects_; | 213 bool peer_supports_stateless_rejects_; |
| 213 | 214 |
| 214 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 215 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 } // namespace net | 218 } // namespace net |
| 218 | 219 |
| 219 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 220 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| OLD | NEW |