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

Side by Side Diff: net/quic/congestion_control/receive_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/receive_algorithm_interface.h" 5 #include "net/quic/congestion_control/receive_algorithm_interface.h"
6 6
7 #include "net/quic/congestion_control/fix_rate_receiver.h" 7 #include "net/quic/congestion_control/fix_rate_receiver.h"
8 #include "net/quic/congestion_control/inter_arrival_receiver.h"
8 #include "net/quic/congestion_control/tcp_receiver.h" 9 #include "net/quic/congestion_control/tcp_receiver.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 // Factory for receive side congestion control algorithm. 13 // Factory for receive side congestion control algorithm.
13 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create( 14 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create(
14 CongestionFeedbackType type) { 15 CongestionFeedbackType type) {
15 switch (type) { 16 switch (type) {
16 case kTCP: 17 case kTCP:
17 return new TcpReceiver(); 18 return new TcpReceiver();
18 case kInterArrival: 19 case kInterArrival:
19 break; // TODO(pwestin) Implement. 20 return new InterArrivalReceiver();
20 case kFixRate: 21 case kFixRate:
21 return new FixRateReceiver(); 22 return new FixRateReceiver();
22 } 23 }
23 return NULL; 24 return NULL;
24 } 25 }
25 26
26 } // namespace net 27 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/send_algorithm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698