OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_STATELESS_REJECTOR_H_ | 5 #ifndef NET_QUIC_STATELESS_REJECTOR_H_ |
6 #define NET_QUIC_STATELESS_REJECTOR_H_ | 6 #define NET_QUIC_STATELESS_REJECTOR_H_ |
7 | 7 |
8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
9 #include "net/quic/core/crypto/crypto_framer.h" | 9 #include "net/quic/core/crypto/crypto_framer.h" |
10 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 10 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
11 #include "net/quic/core/quic_protocol.h" | 11 #include "net/quic/core/quic_packets.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 // The StatelessRejector receives CHLO messages and generates an SREJ | 15 // The StatelessRejector receives CHLO messages and generates an SREJ |
16 // message in response, if the CHLO can be statelessly rejected. | 16 // message in response, if the CHLO can be statelessly rejected. |
17 class StatelessRejector { | 17 class StatelessRejector { |
18 public: | 18 public: |
19 enum State { | 19 enum State { |
20 UNKNOWN, // State has not yet been determined | 20 UNKNOWN, // State has not yet been determined |
21 UNSUPPORTED, // Stateless rejects are not supported | 21 UNSUPPORTED, // Stateless rejects are not supported |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 CryptoFramer crypto_framer_; | 109 CryptoFramer crypto_framer_; |
110 scoped_refptr<QuicSignedServerConfig> signed_config_; | 110 scoped_refptr<QuicSignedServerConfig> signed_config_; |
111 scoped_refptr<QuicCryptoNegotiatedParameters> params_; | 111 scoped_refptr<QuicCryptoNegotiatedParameters> params_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(StatelessRejector); | 113 DISALLOW_COPY_AND_ASSIGN(StatelessRejector); |
114 }; | 114 }; |
115 | 115 |
116 } // namespace net | 116 } // namespace net |
117 | 117 |
118 #endif // NET_QUIC_STATELESS_REJECTOR_H_ | 118 #endif // NET_QUIC_STATELESS_REJECTOR_H_ |
OLD | NEW |