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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 void set_previous_cached_network_params( | 86 void set_previous_cached_network_params( |
87 CachedNetworkParameters cached_network_params); | 87 CachedNetworkParameters cached_network_params); |
88 | 88 |
89 const CachedNetworkParameters* previous_cached_network_params() const; | 89 const CachedNetworkParameters* previous_cached_network_params() const; |
90 | 90 |
91 bool use_stateless_rejects_if_peer_supported() const { | 91 bool use_stateless_rejects_if_peer_supported() const { |
92 return use_stateless_rejects_if_peer_supported_; | 92 return use_stateless_rejects_if_peer_supported_; |
93 } | 93 } |
94 | 94 |
95 // Used by the quic dispatcher to indicate that this crypto server | |
96 // stream should use stateless rejects, so long as stateless rejects | |
97 // are supported by the client. | |
98 void set_use_stateless_rejects_if_peer_supported( | |
99 bool use_stateless_rejects_if_peer_supported) { | |
100 use_stateless_rejects_if_peer_supported_ = | |
101 use_stateless_rejects_if_peer_supported; | |
102 } | |
103 | |
104 bool peer_supports_stateless_rejects() const { | 95 bool peer_supports_stateless_rejects() const { |
105 return peer_supports_stateless_rejects_; | 96 return peer_supports_stateless_rejects_; |
106 } | 97 } |
107 | 98 |
108 void set_peer_supports_stateless_rejects( | 99 void set_peer_supports_stateless_rejects( |
109 bool peer_supports_stateless_rejects) { | 100 bool peer_supports_stateless_rejects) { |
110 peer_supports_stateless_rejects_ = peer_supports_stateless_rejects; | 101 peer_supports_stateless_rejects_ = peer_supports_stateless_rejects; |
111 } | 102 } |
112 | 103 |
113 protected: | 104 protected: |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // TODO(jokulik): Remove once client stateless reject support | 191 // TODO(jokulik): Remove once client stateless reject support |
201 // becomes the default. | 192 // becomes the default. |
202 bool peer_supports_stateless_rejects_; | 193 bool peer_supports_stateless_rejects_; |
203 | 194 |
204 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); | 195 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); |
205 }; | 196 }; |
206 | 197 |
207 } // namespace net | 198 } // namespace net |
208 | 199 |
209 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ | 200 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ |
OLD | NEW |