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

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

Issue 449693002: Bring back InterArrivalReceiver and rename it to TimestampeReceiver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Move_Quic_AppendTimestampFrame_72148809
Patch Set: minor comment fix Created 6 years, 4 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
« no previous file with comments | « net/net.gypi ('k') | net/quic/congestion_control/timestamp_receiver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/quic/congestion_control/timestamp_receiver.h"
8 9
9 namespace net { 10 namespace net {
10 11
11 // Factory for receive side congestion control algorithm. 12 // Factory for receive side congestion control algorithm.
12 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create( 13 ReceiveAlgorithmInterface* ReceiveAlgorithmInterface::Create(
13 CongestionFeedbackType type) { 14 CongestionFeedbackType type) {
14 switch (type) { 15 switch (type) {
15 case kTCP: 16 case kTCP:
16 return new TcpReceiver(); 17 return new TcpReceiver();
17 case kTimestamp: 18 case kTimestamp:
18 // TODO(cyr): Support this by returning the TcpReceiver. 19 return new TimestampReceiver();
19 LOG(DFATAL) << "TimestampCongestionFeedback is not supported.";
20 return NULL;
21 } 20 }
22 return NULL; 21 return NULL;
23 } 22 }
24 23
25 } // namespace net 24 } // namespace net
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/congestion_control/timestamp_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698