• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "modules/remote_bitrate_estimator/include/bwe_defines.h"
16 #include "rtc_base/constructor_magic.h"
17 
18 namespace webrtc {
19 
20 class DelayIncreaseDetectorInterface {
21  public:
DelayIncreaseDetectorInterface()22   DelayIncreaseDetectorInterface() {}
~DelayIncreaseDetectorInterface()23   virtual ~DelayIncreaseDetectorInterface() {}
24 
25   // Update the detector with a new sample. The deltas should represent deltas
26   // between timestamp groups as defined by the InterArrival class.
27   virtual void Update(double recv_delta_ms,
28                       double send_delta_ms,
29                       int64_t send_time_ms,
30                       int64_t arrival_time_ms,
31                       size_t packet_size,
32                       bool calculated_deltas) = 0;
33 
34   virtual BandwidthUsage State() const = 0;
35 
36   RTC_DISALLOW_COPY_AND_ASSIGN(DelayIncreaseDetectorInterface);
37 };
38 
39 }  // namespace webrtc
40 
41 #endif  // MODULES_CONGESTION_CONTROLLER_GOOG_CC_DELAY_INCREASE_DETECTOR_INTERFACE_H_
42