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/crypto/quic_crypto_server_config.h" | 11 #include "net/quic/crypto/quic_crypto_server_config.h" |
12 #include "net/quic/quic_config.h" | 12 #include "net/quic/quic_config.h" |
13 #include "net/quic/quic_crypto_stream.h" | 13 #include "net/quic/quic_crypto_stream.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class CachedNetworkParameters; | 17 class CachedNetworkParameters; |
18 class CryptoHandshakeMessage; | 18 class CryptoHandshakeMessage; |
19 class QuicCryptoServerConfig; | 19 class QuicCryptoServerConfig; |
20 class QuicCryptoServerStream; | 20 class QuicCryptoServerStream; |
21 class QuicSession; | 21 class QuicSession; |
| 22 class SourceAddressTokens; |
22 | 23 |
23 namespace test { | 24 namespace test { |
24 class CryptoTestUtils; | 25 class CryptoTestUtils; |
25 } // namespace test | 26 } // namespace test |
26 | 27 |
27 // Receives a notification when the server hello (SHLO) has been ACKed by the | 28 // Receives a notification when the server hello (SHLO) has been ACKed by the |
28 // peer. At this point we disable HANDSHAKE_MODE in the sent packet manager. | 29 // peer. At this point we disable HANDSHAKE_MODE in the sent packet manager. |
29 class NET_EXPORT_PRIVATE ServerHelloNotifier : public | 30 class NET_EXPORT_PRIVATE ServerHelloNotifier : public |
30 QuicAckNotifier::DelegateInterface { | 31 QuicAckNotifier::DelegateInterface { |
31 public: | 32 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 uint8 num_handshake_messages_; | 135 uint8 num_handshake_messages_; |
135 | 136 |
136 // Number of server config update (SCUP) messages sent by this stream. | 137 // Number of server config update (SCUP) messages sent by this stream. |
137 int num_server_config_update_messages_sent_; | 138 int num_server_config_update_messages_sent_; |
138 | 139 |
139 // If the client provides CachedNetworkParameters in the STK in the CHLO, then | 140 // If the client provides CachedNetworkParameters in the STK in the CHLO, then |
140 // store here, and send back in future STKs if we have no better bandwidth | 141 // store here, and send back in future STKs if we have no better bandwidth |
141 // estimate to send. | 142 // estimate to send. |
142 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_; | 143 scoped_ptr<CachedNetworkParameters> previous_cached_network_params_; |
143 | 144 |
| 145 // Contains any source address tokens which were present in the CHLO. |
| 146 SourceAddressTokens previous_source_address_tokens_; |
| 147 |
144 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 148 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
145 }; | 149 }; |
146 | 150 |
147 } // namespace net | 151 } // namespace net |
148 | 152 |
149 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 153 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |