This source file includes following definitions.
- Create
#include "net/quic/congestion_control/loss_detection_interface.h"
#include "net/quic/congestion_control/tcp_loss_algorithm.h"
#include "net/quic/congestion_control/time_loss_algorithm.h"
namespace net {
LossDetectionInterface* LossDetectionInterface::Create(
LossDetectionType loss_type) {
switch (loss_type) {
case kNack:
return new TCPLossAlgorithm();
case kTime:
return new TimeLossAlgorithm();
}
LOG(DFATAL) << "Unknown loss detection algorithm:" << loss_type;
return NULL;
}
}