| 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" |
| 11 #include "net/quic/crypto/crypto_handshake.h" | |
| 12 #include "net/quic/quic_protocol.h" | 11 #include "net/quic/quic_protocol.h" |
| 13 #include "net/quic/quic_time.h" | 12 #include "net/quic/quic_time.h" |
| 14 #include "net/quic/quic_utils.h" | |
| 15 | 13 |
| 16 namespace net { | 14 namespace net { |
| 17 | 15 |
| 16 class CryptoHandshakeMessage; |
| 17 |
| 18 class NET_EXPORT_PRIVATE QuicNegotiableValue { | 18 class NET_EXPORT_PRIVATE QuicNegotiableValue { |
| 19 public: | 19 public: |
| 20 enum Presence { | 20 enum Presence { |
| 21 // This negotiable value can be absent from the handshake message. Default | 21 // This negotiable value can be absent from the handshake message. Default |
| 22 // value is selected as the negotiated value in such a case. | 22 // value is selected as the negotiated value in such a case. |
| 23 PRESENCE_OPTIONAL, | 23 PRESENCE_OPTIONAL, |
| 24 // This negotiable value is required in the handshake message otherwise the | 24 // This negotiable value is required in the handshake message otherwise the |
| 25 // Process*Hello function returns an error. | 25 // Process*Hello function returns an error. |
| 26 PRESENCE_REQUIRED, | 26 PRESENCE_REQUIRED, |
| 27 }; | 27 }; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 QuicTime::Delta max_time_before_crypto_handshake_; | 204 QuicTime::Delta max_time_before_crypto_handshake_; |
| 205 // Initial congestion window in packets. | 205 // Initial congestion window in packets. |
| 206 QuicNegotiableUint32 server_initial_congestion_window_; | 206 QuicNegotiableUint32 server_initial_congestion_window_; |
| 207 // Initial round trip time estimate in microseconds. | 207 // Initial round trip time estimate in microseconds. |
| 208 QuicNegotiableUint32 initial_round_trip_time_us_; | 208 QuicNegotiableUint32 initial_round_trip_time_us_; |
| 209 }; | 209 }; |
| 210 | 210 |
| 211 } // namespace net | 211 } // namespace net |
| 212 | 212 |
| 213 #endif // NET_QUIC_QUIC_CONFIG_H_ | 213 #endif // NET_QUIC_QUIC_CONFIG_H_ |
| OLD | NEW |