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

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

Issue 125403006: Various QUIC cleanups to sync with internal code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 6 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 | 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/fix_rate_sender.h" 7 #include "net/quic/congestion_control/fix_rate_sender.h"
8 #include "net/quic/congestion_control/inter_arrival_sender.h"
8 #include "net/quic/congestion_control/tcp_cubic_sender.h" 9 #include "net/quic/congestion_control/tcp_cubic_sender.h"
9 #include "net/quic/quic_protocol.h" 10 #include "net/quic/quic_protocol.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 const bool kUseReno = false; 14 const bool kUseReno = false;
14 15
15 // Factory for send side congestion control algorithm. 16 // Factory for send side congestion control algorithm.
16 SendAlgorithmInterface* SendAlgorithmInterface::Create( 17 SendAlgorithmInterface* SendAlgorithmInterface::Create(
17 const QuicClock* clock, 18 const QuicClock* clock,
18 CongestionFeedbackType type) { 19 CongestionFeedbackType type) {
19 switch (type) { 20 switch (type) {
20 case kTCP: 21 case kTCP:
21 return new TcpCubicSender(clock, kUseReno, kMaxTcpCongestionWindow); 22 return new TcpCubicSender(clock, kUseReno, kMaxTcpCongestionWindow);
22 case kInterArrival: 23 case kInterArrival:
23 break; // TODO(pwestin) Implement. 24 return new InterArrivalSender(clock);
24 case kFixRate: 25 case kFixRate:
25 return new FixRateSender(clock); 26 return new FixRateSender(clock);
26 } 27 }
27 return NULL; 28 return NULL;
28 } 29 }
29 30
30 } // namespace net 31 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/receive_algorithm_interface.cc ('k') | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698