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

Unified Diff: net/quic/core/quic_utils.cc

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test Created 3 years, 8 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/core/quic_utils.h ('k') | net/quic/core/quic_version_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_utils.cc
diff --git a/net/quic/core/quic_utils.cc b/net/quic/core/quic_utils.cc
index d68c55fb715d209d01910553f995a368dbdc4e38..b7f31832da024f4785cf3e053f5bf45b722d120c 100644
--- a/net/quic/core/quic_utils.cc
+++ b/net/quic/core/quic_utils.cc
@@ -208,4 +208,12 @@ PeerAddressChangeType QuicUtils::DetermineAddressChangeType(
return IPV4_TO_IPV4_CHANGE;
}
+// static
+bool QuicUtils::IsConnectionIdWireFormatBigEndian(Perspective perspective) {
+ return (perspective == Perspective::IS_CLIENT &&
+ FLAGS_quic_restart_flag_quic_big_endian_connection_id_client) ||
+ (perspective == Perspective::IS_SERVER &&
+ FLAGS_quic_restart_flag_quic_big_endian_connection_id_server);
+}
+
} // namespace net
« no previous file with comments | « net/quic/core/quic_utils.h ('k') | net/quic/core/quic_version_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698