| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 int NumServerConfigUpdateMessagesSent() const override; | 118 int NumServerConfigUpdateMessagesSent() const override; |
| 119 const CachedNetworkParameters* PreviousCachedNetworkParams() const override; | 119 const CachedNetworkParameters* PreviousCachedNetworkParams() const override; |
| 120 bool UseStatelessRejectsIfPeerSupported() const override; | 120 bool UseStatelessRejectsIfPeerSupported() const override; |
| 121 bool PeerSupportsStatelessRejects() const override; | 121 bool PeerSupportsStatelessRejects() const override; |
| 122 void SetPeerSupportsStatelessRejects( | 122 void SetPeerSupportsStatelessRejects( |
| 123 bool peer_supports_stateless_rejects) override; | 123 bool peer_supports_stateless_rejects) override; |
| 124 void SetPreviousCachedNetworkParams( | 124 void SetPreviousCachedNetworkParams( |
| 125 CachedNetworkParameters cached_network_params) override; | 125 CachedNetworkParameters cached_network_params) override; |
| 126 | 126 |
| 127 protected: | 127 protected: |
| 128 virtual QuicErrorCode ProcessClientHello( | 128 virtual void ProcessClientHello( |
| 129 scoped_refptr<ValidateClientHelloResultCallback::Result> result, | 129 scoped_refptr<ValidateClientHelloResultCallback::Result> result, |
| 130 std::unique_ptr<ProofSource::Details> proof_source_details, | 130 std::unique_ptr<ProofSource::Details> proof_source_details, |
| 131 CryptoHandshakeMessage* reply, | 131 std::unique_ptr<ProcessClientHelloResultCallback> done_cb); |
| 132 DiversificationNonce* out_diversification_nonce, | |
| 133 std::string* error_details); | |
| 134 | 132 |
| 135 // Hook that allows the server to set QuicConfig defaults just | 133 // Hook that allows the server to set QuicConfig defaults just |
| 136 // before going through the parameter negotiation step. | 134 // before going through the parameter negotiation step. |
| 137 virtual void OverrideQuicConfigDefaults(QuicConfig* config); | 135 virtual void OverrideQuicConfigDefaults(QuicConfig* config); |
| 138 | 136 |
| 139 private: | 137 private: |
| 140 friend class test::CryptoTestUtils; | 138 friend class test::CryptoTestUtils; |
| 141 friend class test::QuicCryptoServerStreamPeer; | 139 friend class test::QuicCryptoServerStreamPeer; |
| 142 | 140 |
| 143 class ValidateCallback : public ValidateClientHelloResultCallback { | 141 class ValidateCallback : public ValidateClientHelloResultCallback { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 264 |
| 267 // Size of the packet containing the most recently received CHLO. | 265 // Size of the packet containing the most recently received CHLO. |
| 268 QuicByteCount chlo_packet_size_; | 266 QuicByteCount chlo_packet_size_; |
| 269 | 267 |
| 270 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 268 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
| 271 }; | 269 }; |
| 272 | 270 |
| 273 } // namespace net | 271 } // namespace net |
| 274 | 272 |
| 275 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 273 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
| OLD | NEW |