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

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

Issue 396533003: Populate FasterExtraStats for QUIC requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/test_tools/quic_test_utils.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 } 791 }
792 792
793 bool QuicSentPacketManager::HasReliableBandwidthEstimate() const { 793 bool QuicSentPacketManager::HasReliableBandwidthEstimate() const {
794 return send_algorithm_->HasReliableBandwidthEstimate(); 794 return send_algorithm_->HasReliableBandwidthEstimate();
795 } 795 }
796 796
797 QuicByteCount QuicSentPacketManager::GetCongestionWindow() const { 797 QuicByteCount QuicSentPacketManager::GetCongestionWindow() const {
798 return send_algorithm_->GetCongestionWindow(); 798 return send_algorithm_->GetCongestionWindow();
799 } 799 }
800 800
801 QuicByteCount QuicSentPacketManager::GetSlowStartThreshold() const {
802 return send_algorithm_->GetSlowStartThreshold();
803 }
804
801 void QuicSentPacketManager::MaybeEnablePacing() { 805 void QuicSentPacketManager::MaybeEnablePacing() {
802 if (!FLAGS_enable_quic_pacing) { 806 if (!FLAGS_enable_quic_pacing) {
803 return; 807 return;
804 } 808 }
805 809
806 if (using_pacing_) { 810 if (using_pacing_) {
807 return; 811 return;
808 } 812 }
809 813
810 // Set up a pacing sender with a 5 millisecond alarm granularity. 814 // Set up a pacing sender with a 5 millisecond alarm granularity.
811 using_pacing_ = true; 815 using_pacing_ = true;
812 send_algorithm_.reset( 816 send_algorithm_.reset(
813 new PacingSender(send_algorithm_.release(), 817 new PacingSender(send_algorithm_.release(),
814 QuicTime::Delta::FromMilliseconds(5), 818 QuicTime::Delta::FromMilliseconds(5),
815 kInitialUnpacedBurst)); 819 kInitialUnpacedBurst));
816 } 820 }
817 821
818 } // namespace net 822 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698