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

Side by Side Diff: net/quic/congestion_control/send_algorithm_simulator.cc

Issue 968233004: Land Recent QUIC Changes until 03/02/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/congestion_control/send_algorithm_simulator.h" 5 #include "net/quic/congestion_control/send_algorithm_simulator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 ack_time = QuicTime::Max(ack_time, queue_ack_time); 380 ack_time = QuicTime::Max(ack_time, queue_ack_time);
381 sent_packets_.push_back(SentPacket( 381 sent_packets_.push_back(SentPacket(
382 sender->last_sent, clock_->Now(), ack_time, packet_lost, transfer)); 382 sender->last_sent, clock_->Now(), ack_time, packet_lost, transfer));
383 } else { 383 } else {
384 DVLOG(1) << "losing packet:" << sender->last_sent 384 DVLOG(1) << "losing packet:" << sender->last_sent
385 << " name:" << transfer->name << " because the buffer was full."; 385 << " name:" << transfer->name << " because the buffer was full.";
386 } 386 }
387 transfer->bytes_in_flight += kPacketSize; 387 transfer->bytes_in_flight += kPacketSize;
388 } 388 }
389 389
390 // Advance the time by |delta| without sending anything.
391 void SendAlgorithmSimulator::AdvanceTime(QuicTime::Delta delta) {
392 clock_->AdvanceTime(delta);
393 }
394
395 } // namespace net 390 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_simulator.h ('k') | net/quic/congestion_control/tcp_cubic_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698