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

Unified Diff: net/quic/quic_connection.cc

Issue 1399893005: relnote: Inline all frames smaller than a pointer into QuicFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Avoid_redundant_recvmmsg_104327020
Patch Set: Created 5 years, 2 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_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index b9c9312e2f04d70b734f91c76a75760a5ce9c7a1..5fbe5f76ea67dff50ef65dc75f819f3d02237856 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1203,7 +1203,7 @@ void QuicConnection::SendWindowUpdate(QuicStreamId id,
void QuicConnection::SendBlocked(QuicStreamId id) {
// Opportunistically bundle an ack with this outgoing packet.
ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
- packet_generator_.AddControlFrame(QuicFrame(new QuicBlockedFrame(id)));
+ packet_generator_.AddControlFrame(QuicFrame(QuicBlockedFrame(id)));
}
const QuicConnectionStats& QuicConnection::GetStats() {
@@ -1762,7 +1762,7 @@ void QuicConnection::SendPing() {
if (retransmission_alarm_->IsSet()) {
return;
}
- packet_generator_.AddControlFrame(QuicFrame(new QuicPingFrame));
+ packet_generator_.AddControlFrame(QuicFrame(QuicPingFrame()));
}
void QuicConnection::SendAck() {
« no previous file with comments | « no previous file | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698