Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Unified Diff: net/quic/crypto/source_address_token.h

Issue 463093003: Add max_bandwidth and max_bandwidth_timestamp to QUIC source address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Dont_print_SCUP_73054570
Patch Set: fixed wtc's comments - use int64 Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a41a7265b7f795aadf4705f2988d8cfdb4b3a1e0 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;
+ }
+
+ int64 max_bandwidth_timestamp_seconds() const {
+ return max_bandwidth_timestamp_seconds_;
+ }
+ void set_max_bandwidth_timestamp_seconds(
+ int64 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_;
// 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_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698