1 /* 2 * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 #ifndef MODULES_CONGESTION_CONTROLLER_GOOG_CC_DELAY_INCREASE_DETECTOR_INTERFACE_H_ 11 #define MODULES_CONGESTION_CONTROLLER_GOOG_CC_DELAY_INCREASE_DETECTOR_INTERFACE_H_ 12 13 #include <stdint.h> 14 15 #include "api/network_state_predictor.h" 16 17 namespace webrtc { 18 19 class DelayIncreaseDetectorInterface { 20 public: DelayIncreaseDetectorInterface()21 DelayIncreaseDetectorInterface() {} ~DelayIncreaseDetectorInterface()22 virtual ~DelayIncreaseDetectorInterface() {} 23 24 DelayIncreaseDetectorInterface(const DelayIncreaseDetectorInterface&) = 25 delete; 26 DelayIncreaseDetectorInterface& operator=( 27 const DelayIncreaseDetectorInterface&) = delete; 28 29 // Update the detector with a new sample. The deltas should represent deltas 30 // between timestamp groups as defined by the InterArrival class. 31 virtual void Update(double recv_delta_ms, 32 double send_delta_ms, 33 int64_t send_time_ms, 34 int64_t arrival_time_ms, 35 size_t packet_size, 36 bool calculated_deltas) = 0; 37 38 virtual BandwidthUsage State() const = 0; 39 }; 40 41 } // namespace webrtc 42 43 #endif // MODULES_CONGESTION_CONTROLLER_GOOG_CC_DELAY_INCREASE_DETECTOR_INTERFACE_H_ 44