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

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

Issue 605733006: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert Patch Set 3 Created 6 years, 3 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 | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_config.h » ('j') | 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 64a3a12817284931f7e0d293b424b4d42b03934f..110135112d7a34f812bcb86e35be86496bed38e1 100644
--- a/net/quic/crypto/source_address_token.h
+++ b/net/quic/crypto/source_address_token.h
@@ -74,6 +74,9 @@ class NET_EXPORT_PRIVATE CachedNetworkParameters {
previous_connection_state_ = previous_connection_state;
}
+ int64 timestamp() const { return timestamp_; }
+ void set_timestamp(int64 timestamp) { timestamp_ = timestamp; }
+
private:
// serving_region_ is used to decide whether or not the bandwidth estimate and
// min RTT are reasonable and if they should be used.
@@ -94,6 +97,8 @@ class NET_EXPORT_PRIVATE CachedNetworkParameters {
int32 min_rtt_ms_;
// Encodes the PreviousConnectionState enum.
int32 previous_connection_state_;
+ // UNIX timestamp when this bandwidth estimate was created.
+ int64 timestamp_;
};
// TODO(rtenneti): sync with server more rationally.
« no previous file with comments | « net/quic/crypto/crypto_protocol.h ('k') | net/quic/quic_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698