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

Unified Diff: net/quic/quic_connection.h

Issue 1338423006: relnote: Add varz peer_ip_changes and successful_peer_ip_migrations (no (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_MigrateSocket_102081905
Patch Set: Created 5 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 | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 5fbcbbbae9a3861317fd59ac93b380c14546b652..d520e12e116506c0ff8583e283b61329693d9a65 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -658,6 +658,8 @@ class NET_EXPORT_PRIVATE QuicConnection
// such a version exists, false otherwise.
bool SelectMutualVersion(const QuicVersionVector& available_versions);
+ bool peer_ip_changed() const { return peer_ip_changed_; }
+
bool peer_port_changed() const { return peer_port_changed_; }
private:
@@ -791,8 +793,6 @@ class NET_EXPORT_PRIVATE QuicConnection
IPEndPoint self_address_;
IPEndPoint peer_address_;
- // TODO(fayang): Use migrating_peer_address_ instead of migrating_peer_ip_
- // and migrating_peer_port_ once FLAGS_quic_allow_ip_migration is deprecated.
// Used to store latest peer IP address for IP address migration.
IPAddressNumber migrating_peer_ip_;
// Used to store latest peer port to possibly migrate to later.
@@ -928,11 +928,9 @@ class NET_EXPORT_PRIVATE QuicConnection
bool connected_;
// Set to true if the UDP packet headers have a new IP address for the peer.
- // If true, do not perform connection migration.
bool peer_ip_changed_;
// Set to true if the UDP packet headers have a new port for the peer.
- // If true, and the IP has not changed, then we can migrate the connection.
bool peer_port_changed_;
// Set to true if the UDP packet headers are addressed to a different IP.
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698