Chromium Code Reviews| Index: net/quic/crypto/source_address_token.h |
| diff --git a/net/quic/crypto/source_address_token.h b/net/quic/crypto/source_address_token.h |
| index c719fef0412a3c4570a76f7ba163cf4153df2b45..ae9c01daa451e73d859719bcd533516e82617ced 100644 |
| --- a/net/quic/crypto/source_address_token.h |
| +++ b/net/quic/crypto/source_address_token.h |
| @@ -42,6 +42,23 @@ class CachedNetworkParameters { |
| bandwidth_estimate_bytes_per_second_ = bandwidth_estimate_bytes_per_second; |
| } |
| + int32 max_bandwidth_estimate_bytes_per_second() const { |
| + return max_bandwidth_estimate_bytes_per_second_; |
| + } |
| + void set_max_bandwidth_estimate_bytes_per_second( |
| + int32 max_bandwidth_estimate_bytes_per_second) { |
| + max_bandwidth_estimate_bytes_per_second_ = |
| + max_bandwidth_estimate_bytes_per_second; |
| + } |
| + |
| + int32 max_bandwidth_timestamp_seconds() const { |
| + return max_bandwidth_timestamp_seconds_; |
| + } |
| + void set_max_bandwidth_timestamp_seconds( |
| + int32 max_bandwidth_timestamp_seconds) { |
| + max_bandwidth_timestamp_seconds_ = max_bandwidth_timestamp_seconds; |
| + } |
| + |
| int32 min_rtt_ms() const { |
| return min_rtt_ms_; |
| } |
| @@ -66,6 +83,11 @@ class CachedNetworkParameters { |
| // The server can supply a bandwidth estimate (in bytes/s) which it may re-use |
| // on receipt of a source-address token with this field set. |
| int32 bandwidth_estimate_bytes_per_second_; |
| + // The maximum bandwidth seen by the client, not necessarily the latest. |
| + int32 max_bandwidth_estimate_bytes_per_second_; |
| + // Timestamp (seconds since UNIX epoch) that indicates when the max bandwidth |
| + // was seen by the server. |
| + int64 max_bandwidth_timestamp_seconds_; |
|
wtc
2014/08/14 22:36:26
The getter and setter methods also need to use the
ramant (doing other things)
2014/08/14 23:40:45
Changed get/set methods to use int64.
Would like
|
| // The min RTT seen on a previous connection can be used by the server to |
| // inform initial connection parameters for new connections. |
| int32 min_rtt_ms_; |