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" |
11 #include "net/quic/quic_config.h" | 11 #include "net/quic/quic_config.h" |
12 #include "net/quic/quic_crypto_stream.h" | 12 #include "net/quic/quic_crypto_stream.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 class CryptoHandshakeMessage; | 16 class CryptoHandshakeMessage; |
17 class QuicCryptoServerConfig; | 17 class QuicCryptoServerConfig; |
18 class QuicNegotiatedParameters; | |
19 class QuicSession; | 18 class QuicSession; |
20 | 19 |
21 namespace test { | 20 namespace test { |
22 class CryptoTestUtils; | 21 class CryptoTestUtils; |
23 } // namespace test | 22 } // namespace test |
24 | 23 |
25 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream { | 24 class NET_EXPORT_PRIVATE QuicCryptoServerStream : public QuicCryptoStream { |
26 public: | 25 public: |
27 QuicCryptoServerStream(const QuicConfig& config, | 26 QuicCryptoServerStream(const QuicCryptoServerConfig& crypto_config, |
28 const QuicCryptoServerConfig& crypto_config, | |
29 QuicSession* session); | 27 QuicSession* session); |
30 explicit QuicCryptoServerStream(QuicSession* session); | 28 explicit QuicCryptoServerStream(QuicSession* session); |
31 virtual ~QuicCryptoServerStream(); | 29 virtual ~QuicCryptoServerStream(); |
32 | 30 |
33 // CryptoFramerVisitorInterface implementation | 31 // CryptoFramerVisitorInterface implementation |
34 virtual void OnHandshakeMessage( | 32 virtual void OnHandshakeMessage( |
35 const CryptoHandshakeMessage& message) OVERRIDE; | 33 const CryptoHandshakeMessage& message) OVERRIDE; |
36 | 34 |
37 private: | 35 private: |
38 friend class test::CryptoTestUtils; | 36 friend class test::CryptoTestUtils; |
39 | 37 |
40 // config_ contains non-crypto parameters that are negotiated in the crypto | |
41 // handshake. | |
42 const QuicConfig& config_; | |
43 // crypto_config_ contains crypto parameters for the handshake. | 38 // crypto_config_ contains crypto parameters for the handshake. |
44 const QuicCryptoServerConfig& crypto_config_; | 39 const QuicCryptoServerConfig& crypto_config_; |
45 }; | 40 }; |
46 | 41 |
47 } // namespace net | 42 } // namespace net |
48 | 43 |
49 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 44 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |