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

Side by Side Diff: net/quic/quic_connection.cc

Issue 1570443010: relnote: Change the QuicBlockedFrame in QuicFrame from a pointer to in-place. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@04_CL_111628540
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_connection_logger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 QuicStreamOffset byte_offset) { 1170 QuicStreamOffset byte_offset) {
1171 // Opportunistically bundle an ack with this outgoing packet. 1171 // Opportunistically bundle an ack with this outgoing packet.
1172 ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK); 1172 ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
1173 packet_generator_.AddControlFrame( 1173 packet_generator_.AddControlFrame(
1174 QuicFrame(new QuicWindowUpdateFrame(id, byte_offset))); 1174 QuicFrame(new QuicWindowUpdateFrame(id, byte_offset)));
1175 } 1175 }
1176 1176
1177 void QuicConnection::SendBlocked(QuicStreamId id) { 1177 void QuicConnection::SendBlocked(QuicStreamId id) {
1178 // Opportunistically bundle an ack with this outgoing packet. 1178 // Opportunistically bundle an ack with this outgoing packet.
1179 ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK); 1179 ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
1180 packet_generator_.AddControlFrame(QuicFrame(new QuicBlockedFrame(id))); 1180 packet_generator_.AddControlFrame(QuicFrame(QuicBlockedFrame(id)));
1181 } 1181 }
1182 1182
1183 const QuicConnectionStats& QuicConnection::GetStats() { 1183 const QuicConnectionStats& QuicConnection::GetStats() {
1184 const RttStats* rtt_stats = sent_packet_manager_.GetRttStats(); 1184 const RttStats* rtt_stats = sent_packet_manager_.GetRttStats();
1185 1185
1186 // Update rtt and estimated bandwidth. 1186 // Update rtt and estimated bandwidth.
1187 QuicTime::Delta min_rtt = rtt_stats->min_rtt(); 1187 QuicTime::Delta min_rtt = rtt_stats->min_rtt();
1188 if (min_rtt.IsZero()) { 1188 if (min_rtt.IsZero()) {
1189 // If min RTT has not been set, use initial RTT instead. 1189 // If min RTT has not been set, use initial RTT instead.
1190 min_rtt = QuicTime::Delta::FromMicroseconds(rtt_stats->initial_rtt_us()); 1190 min_rtt = QuicTime::Delta::FromMicroseconds(rtt_stats->initial_rtt_us());
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 SendMtuDiscoveryPacket(mtu_discovery_target_); 2400 SendMtuDiscoveryPacket(mtu_discovery_target_);
2401 2401
2402 DCHECK(!mtu_discovery_alarm_->IsSet()); 2402 DCHECK(!mtu_discovery_alarm_->IsSet());
2403 } 2403 }
2404 2404
2405 bool QuicConnection::ack_frame_updated() const { 2405 bool QuicConnection::ack_frame_updated() const {
2406 return received_packet_manager_.ack_frame_updated(); 2406 return received_packet_manager_.ack_frame_updated();
2407 } 2407 }
2408 2408
2409 } // namespace net 2409 } // namespace net
OLDNEW
« 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