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 <string> | 8 #include <string> |
9 | 9 |
10 #include "net/quic/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 QuicCryptoServerStream(const QuicConfig& config, | 27 QuicCryptoServerStream(const QuicConfig& config, |
28 const QuicCryptoServerConfig& crypto_config, | 28 const QuicCryptoServerConfig& crypto_config, |
29 QuicSession* session); | 29 QuicSession* session); |
30 explicit QuicCryptoServerStream(QuicSession* session); | 30 explicit QuicCryptoServerStream(QuicSession* session); |
31 virtual ~QuicCryptoServerStream(); | 31 virtual ~QuicCryptoServerStream(); |
32 | 32 |
33 // CryptoFramerVisitorInterface implementation | 33 // CryptoFramerVisitorInterface implementation |
34 virtual void OnHandshakeMessage( | 34 virtual void OnHandshakeMessage( |
35 const CryptoHandshakeMessage& message) OVERRIDE; | 35 const CryptoHandshakeMessage& message) OVERRIDE; |
36 | 36 |
37 const QuicNegotiatedParameters& negotiated_params() const; | |
38 const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const; | |
39 | |
40 private: | 37 private: |
41 friend class test::CryptoTestUtils; | 38 friend class test::CryptoTestUtils; |
42 | 39 |
43 // config_ contains non-crypto parameters that are negotiated in the crypto | 40 // config_ contains non-crypto parameters that are negotiated in the crypto |
44 // handshake. | 41 // handshake. |
45 const QuicConfig& config_; | 42 const QuicConfig& config_; |
46 // crypto_config_ contains crypto parameters for the handshake. | 43 // crypto_config_ contains crypto parameters for the handshake. |
47 const QuicCryptoServerConfig& crypto_config_; | 44 const QuicCryptoServerConfig& crypto_config_; |
48 | |
49 QuicNegotiatedParameters negotiated_params_; | |
50 QuicCryptoNegotiatedParameters crypto_negotiated_params_; | |
51 }; | 45 }; |
52 | 46 |
53 } // namespace net | 47 } // namespace net |
54 | 48 |
55 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 49 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |