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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/tcp_cubic_sender.h" 8 #include "net/quic/congestion_control/tcp_cubic_sender.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 const bool kUseReno = false; 13 const bool kUseReno = false;
14 14
15 class RttStats; 15 class RttStats;
16 16
17 // Factory for send side congestion control algorithm. 17 // Factory for send side congestion control algorithm.
18 SendAlgorithmInterface* SendAlgorithmInterface::Create( 18 SendAlgorithmInterface* SendAlgorithmInterface::Create(
19 const QuicClock* clock, 19 const QuicClock* clock,
20 const RttStats* rtt_stats, 20 const RttStats* rtt_stats,
21 CongestionFeedbackType type, 21 CongestionFeedbackType type,
22 QuicConnectionStats* stats) { 22 QuicConnectionStats* stats) {
23 switch (type) { 23 switch (type) {
24 case kTCP: 24 case kTCP:
25 return new TcpCubicSender(clock, rtt_stats, kUseReno, 25 return new TcpCubicSender(
26 kMaxTcpCongestionWindow, stats); 26 clock, rtt_stats, kUseReno, kMaxTcpCongestionWindow, stats);
27 case kInterArrival: 27 case kInterArrival:
28 LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported."; 28 LOG(DFATAL) << "InterArrivalSendAlgorithm no longer supported.";
29 return NULL; 29 return NULL;
30 case kFixRate: 30 case kFixRate:
31 return new FixRateSender(rtt_stats); 31 return new FixRateSender(rtt_stats);
32 } 32 }
33 return NULL; 33 return NULL;
34 } 34 }
35 35
36 } // namespace net 36 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698