OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CONFIG_H_ | 5 #ifndef NET_QUIC_QUIC_CONFIG_H_ |
6 #define NET_QUIC_QUIC_CONFIG_H_ | 6 #define NET_QUIC_QUIC_CONFIG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // This value can be absent from the handshake message. Default value is | 21 // This value can be absent from the handshake message. Default value is |
22 // selected as the negotiated value in such a case. | 22 // selected as the negotiated value in such a case. |
23 PRESENCE_OPTIONAL, | 23 PRESENCE_OPTIONAL, |
24 // This value is required in the handshake message otherwise the Process*Hello | 24 // This value is required in the handshake message otherwise the Process*Hello |
25 // function returns an error. | 25 // function returns an error. |
26 PRESENCE_REQUIRED, | 26 PRESENCE_REQUIRED, |
27 }; | 27 }; |
28 | 28 |
29 // An abstract base class that stores a value that can be sent in CHLO/SHLO | 29 // An abstract base class that stores a value that can be sent in CHLO/SHLO |
30 // message. These values can be OPTIONAL or REQUIRED, depending on |presence_|. | 30 // message. These values can be OPTIONAL or REQUIRED, depending on |presence_|. |
31 class NET_EXPORT_PRIVATE QuicConfigValue { | 31 class NET_EXPORT_PRIVATE QuicConfigValue { |
32 public: | 32 public: |
33 QuicConfigValue(QuicTag tag, QuicConfigPresence presence); | 33 QuicConfigValue(QuicTag tag, QuicConfigPresence presence); |
34 virtual ~QuicConfigValue(); | 34 virtual ~QuicConfigValue(); |
35 | 35 |
36 // Serialises tag name and value(s) to |out|. | 36 // Serialises tag name and value(s) to |out|. |
37 virtual void ToHandshakeMessage(CryptoHandshakeMessage* out) const = 0; | 37 virtual void ToHandshakeMessage(CryptoHandshakeMessage* out) const = 0; |
38 | 38 |
39 // Selects a mutually acceptable value from those offered in |client_hello| | 39 // Selects a mutually acceptable value from those offered in |client_hello| |
40 // and those defined in the subclass. | 40 // and those defined in the subclass. |
41 virtual QuicErrorCode ProcessClientHello( | 41 virtual QuicErrorCode ProcessClientHello( |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 QuicNegotiableUint32 server_initial_congestion_window_; | 269 QuicNegotiableUint32 server_initial_congestion_window_; |
270 // Initial round trip time estimate in microseconds. | 270 // Initial round trip time estimate in microseconds. |
271 QuicNegotiableUint32 initial_round_trip_time_us_; | 271 QuicNegotiableUint32 initial_round_trip_time_us_; |
272 // Peer's initial flow control receive window in bytes. | 272 // Peer's initial flow control receive window in bytes. |
273 QuicFixedUint32 peer_initial_flow_control_window_bytes_; | 273 QuicFixedUint32 peer_initial_flow_control_window_bytes_; |
274 }; | 274 }; |
275 | 275 |
276 } // namespace net | 276 } // namespace net |
277 | 277 |
278 #endif // NET_QUIC_QUIC_CONFIG_H_ | 278 #endif // NET_QUIC_QUIC_CONFIG_H_ |
OLD | NEW |