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

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

Issue 2759203003: Landing Recent QUIC changes until Thu Mar 16 17:24:53 2017 +0000 (Closed)
Patch Set: float Created 3 years, 9 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_flags_list.h ('k') | net/quic/core/quic_framer_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_framer.cc
diff --git a/net/quic/core/quic_framer.cc b/net/quic/core/quic_framer.cc
index bacec506b4d1305b2157296e723494bd1c606b0e..df4c8498b1a01b04d16da6cc45bd9900f0ce7193 100644
--- a/net/quic/core/quic_framer.cc
+++ b/net/quic/core/quic_framer.cc
@@ -442,7 +442,7 @@ std::unique_ptr<QuicEncryptedPacket> QuicFramer::BuildPublicResetPacket(
return nullptr;
}
- if (!writer.WriteUInt64(packet.public_header.connection_id)) {
+ if (!writer.WriteConnectionId(packet.public_header.connection_id)) {
return nullptr;
}
@@ -470,7 +470,7 @@ std::unique_ptr<QuicEncryptedPacket> QuicFramer::BuildVersionNegotiationPacket(
return nullptr;
}
- if (!writer.WriteUInt64(connection_id)) {
+ if (!writer.WriteConnectionId(connection_id)) {
return nullptr;
}
@@ -674,7 +674,7 @@ bool QuicFramer::AppendPacketHeader(const QuicPacketHeader& header,
public_flags |= PACKET_PUBLIC_FLAGS_8BYTE_CONNECTION_ID_OLD;
}
if (!writer->WriteUInt8(public_flags) ||
- !writer->WriteUInt64(header.public_header.connection_id)) {
+ !writer->WriteConnectionId(header.public_header.connection_id)) {
return false;
}
break;
@@ -787,7 +787,7 @@ bool QuicFramer::ProcessPublicHeader(QuicDataReader* reader,
switch (public_flags & PACKET_PUBLIC_FLAGS_8BYTE_CONNECTION_ID) {
case PACKET_PUBLIC_FLAGS_8BYTE_CONNECTION_ID:
- if (!reader->ReadUInt64(&public_header->connection_id)) {
+ if (!reader->ReadConnectionId(&public_header->connection_id)) {
set_detailed_error("Unable to read ConnectionId.");
return false;
}
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698