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

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

Issue 1435553004: Add OnConnectionMigration method to QuicSentPacketManager. Add OnConnectionMigration interface to S… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106845785
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 unified diff | Download patch
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/quic_sent_packet_manager.h » ('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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 IPEndPoint old_peer_address = peer_address_; 1356 IPEndPoint old_peer_address = peer_address_;
1357 peer_address_ = IPEndPoint( 1357 peer_address_ = IPEndPoint(
1358 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(), 1358 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(),
1359 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port()); 1359 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port());
1360 1360
1361 DVLOG(1) << ENDPOINT << "Peer's ip:port changed from " 1361 DVLOG(1) << ENDPOINT << "Peer's ip:port changed from "
1362 << old_peer_address.ToString() << " to " 1362 << old_peer_address.ToString() << " to "
1363 << peer_address_.ToString() << ", migrating connection."; 1363 << peer_address_.ToString() << ", migrating connection.";
1364 1364
1365 visitor_->OnConnectionMigration(); 1365 visitor_->OnConnectionMigration();
1366 sent_packet_manager_.OnConnectionMigration(type);
1366 } 1367 }
1367 1368
1368 time_of_last_received_packet_ = clock_->Now(); 1369 time_of_last_received_packet_ = clock_->Now();
1369 DVLOG(1) << ENDPOINT << "time of last received packet: " 1370 DVLOG(1) << ENDPOINT << "time of last received packet: "
1370 << time_of_last_received_packet_.ToDebuggingValue(); 1371 << time_of_last_received_packet_.ToDebuggingValue();
1371 1372
1372 if (last_size_ > largest_received_packet_size_) { 1373 if (last_size_ > largest_received_packet_size_) {
1373 largest_received_packet_size_ = last_size_; 1374 largest_received_packet_size_ = last_size_;
1374 } 1375 }
1375 1376
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; 2338 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1;
2338 ++mtu_probe_count_; 2339 ++mtu_probe_count_;
2339 2340
2340 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; 2341 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_;
2341 SendMtuDiscoveryPacket(mtu_discovery_target_); 2342 SendMtuDiscoveryPacket(mtu_discovery_target_);
2342 2343
2343 DCHECK(!mtu_discovery_alarm_->IsSet()); 2344 DCHECK(!mtu_discovery_alarm_->IsSet());
2344 } 2345 }
2345 2346
2346 } // namespace net 2347 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698