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

Unified Diff: net/quic/quic_framer.h

Issue 1433703005: Pass in connection ID and supported version to QuicFramer::BuildVersionNegotiationPacket, instead … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106947577
Patch Set: Created 5 years, 1 month 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/quic_connection_test.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_framer.h
diff --git a/net/quic/quic_framer.h b/net/quic/quic_framer.h
index 0bc3299295e244cad409e33d227094ca961207e4..53ca1934380157e6540a08baf6fe4c3ded5eba26 100644
--- a/net/quic/quic_framer.h
+++ b/net/quic/quic_framer.h
@@ -304,9 +304,10 @@ class NET_EXPORT_PRIVATE QuicFramer {
static QuicEncryptedPacket* BuildPublicResetPacket(
const QuicPublicResetPacket& packet);
- QuicEncryptedPacket* BuildVersionNegotiationPacket(
- const QuicPacketPublicHeader& header,
- const QuicVersionVector& supported_versions);
+ // Returns a new version negotiation packet, owned by the caller.
+ static QuicEncryptedPacket* BuildVersionNegotiationPacket(
+ QuicConnectionId connection_id,
+ const QuicVersionVector& versions);
// SetDecrypter sets the primary decrypter, replacing any that already exists,
// and takes ownership. If an alternative decrypter is in place then the
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698