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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
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/tcp_receiver.h" 7 #include "net/quic/congestion_control/tcp_receiver.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 // Factory for receive side congestion control algorithm. 11 // Factory for receive side congestion control algorithm.
12 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create( 12 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create() {
13 CongestionFeedbackType type) { 13 return new TcpReceiver();
14 switch (type) {
15 case kTCP:
16 return new TcpReceiver();
17 }
18 return nullptr;
19 } 14 }
20 15
21 } // namespace net 16 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698