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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 protected: | 56 protected: |
57 const QuicTag tag_; | 57 const QuicTag tag_; |
58 const QuicConfigPresence presence_; | 58 const QuicConfigPresence presence_; |
59 }; | 59 }; |
60 | 60 |
61 class NET_EXPORT_PRIVATE QuicNegotiableValue : public QuicConfigValue { | 61 class NET_EXPORT_PRIVATE QuicNegotiableValue : public QuicConfigValue { |
62 public: | 62 public: |
63 QuicNegotiableValue(QuicTag tag, QuicConfigPresence presence); | 63 QuicNegotiableValue(QuicTag tag, QuicConfigPresence presence); |
64 virtual ~QuicNegotiableValue(); | 64 virtual ~QuicNegotiableValue(); |
65 | 65 |
66 bool negotiated() const { | 66 bool negotiated() const { return negotiated_; } |
67 return negotiated_; | |
68 } | |
69 | 67 |
70 protected: | 68 protected: |
71 bool negotiated_; | 69 bool negotiated_; |
72 }; | 70 }; |
73 | 71 |
74 class NET_EXPORT_PRIVATE QuicNegotiableUint32 : public QuicNegotiableValue { | 72 class NET_EXPORT_PRIVATE QuicNegotiableUint32 : public QuicNegotiableValue { |
75 public: | 73 public: |
76 // Default and max values default to 0. | 74 // Default and max values default to 0. |
77 QuicNegotiableUint32(QuicTag name, QuicConfigPresence presence); | 75 QuicNegotiableUint32(QuicTag name, QuicConfigPresence presence); |
78 virtual ~QuicNegotiableUint32(); | 76 virtual ~QuicNegotiableUint32(); |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 QuicFixedUint32 initial_congestion_window_; | 308 QuicFixedUint32 initial_congestion_window_; |
311 // Initial round trip time estimate in microseconds. | 309 // Initial round trip time estimate in microseconds. |
312 QuicFixedUint32 initial_round_trip_time_us_; | 310 QuicFixedUint32 initial_round_trip_time_us_; |
313 // Initial flow control receive window in bytes. | 311 // Initial flow control receive window in bytes. |
314 QuicFixedUint32 initial_flow_control_window_bytes_; | 312 QuicFixedUint32 initial_flow_control_window_bytes_; |
315 }; | 313 }; |
316 | 314 |
317 } // namespace net | 315 } // namespace net |
318 | 316 |
319 #endif // NET_QUIC_QUIC_CONFIG_H_ | 317 #endif // NET_QUIC_QUIC_CONFIG_H_ |
OLD | NEW |