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

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

Issue 25443002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix to change SendAlarm crash Created 7 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 unified diff | Download patch | Annotate | Revision Log
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/congestion_control/send_algorithm_interface.h" 5 #include "net/quic/congestion_control/send_algorithm_interface.h"
6 6
7 #include "net/quic/congestion_control/cubic.h" 7 #include "net/quic/congestion_control/cubic.h"
8 #include "net/quic/congestion_control/fix_rate_sender.h" 8 #include "net/quic/congestion_control/fix_rate_sender.h"
9 #include "net/quic/congestion_control/tcp_cubic_sender.h" 9 #include "net/quic/congestion_control/tcp_cubic_sender.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 const bool kUseReno = false; 13 const bool kUseReno = false;
14 // TODO(ianswett): Increase the max congestion window once the RTO logic is
15 // improved, particularly in cases when RTT is larger than the RTO. b/10075719
16 // Maximum number of outstanding packets for tcp. 14 // Maximum number of outstanding packets for tcp.
17 const QuicTcpCongestionWindow kMaxTcpCongestionWindow = 100; 15 const QuicTcpCongestionWindow kMaxTcpCongestionWindow = 200;
18 16
19 // Factory for send side congestion control algorithm. 17 // Factory for send side congestion control algorithm.
20 SendAlgorithmInterface* SendAlgorithmInterface::Create( 18 SendAlgorithmInterface* SendAlgorithmInterface::Create(
21 const QuicClock* clock, 19 const QuicClock* clock,
22 CongestionFeedbackType type) { 20 CongestionFeedbackType type) {
23 switch (type) { 21 switch (type) {
24 case kTCP: 22 case kTCP:
25 return new TcpCubicSender(clock, kUseReno, kMaxTcpCongestionWindow); 23 return new TcpCubicSender(clock, kUseReno, kMaxTcpCongestionWindow);
26 case kInterArrival: 24 case kInterArrival:
27 break; // TODO(pwestin) Implement. 25 break; // TODO(pwestin) Implement.
28 case kFixRate: 26 case kFixRate:
29 return new FixRateSender(clock); 27 return new FixRateSender(clock);
30 } 28 }
31 return NULL; 29 return NULL;
32 } 30 }
33 31
34 } // namespace net 32 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/inter_arrival_sender_test.cc ('k') | net/quic/quic_ack_notifier_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698