Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / modules / bitrate_controller / send_side_bandwidth_estimation.h
index eb675d1..3361904 100644 (file)
@@ -43,7 +43,15 @@ class SendSideBandwidthEstimation {
   void SetMinBitrate(uint32_t min_bitrate);
 
  private:
-  void CapBitrateToThresholds();
+  enum UmaState { kNoUpdate, kFirstDone, kDone };
+
+  bool IsInStartPhase(int64_t now_ms) const;
+
+  void UpdateUmaStats(int64_t now_ms, int rtt, int lost_packets);
+
+  // Returns the input bitrate capped to the thresholds defined by the max,
+  // min and incoming bandwidth.
+  uint32_t CapBitrateToThresholds(uint32_t bitrate);
 
   // Updates history of min bitrates.
   // After this method returns min_bitrate_history_.front().second contains the
@@ -66,6 +74,10 @@ class SendSideBandwidthEstimation {
 
   uint32_t bwe_incoming_;
   uint32_t time_last_decrease_ms_;
+  int64_t first_report_time_ms_;
+  int initially_lost_packets_;
+  int bitrate_at_2_seconds_kbps_;
+  UmaState uma_update_state_;
 };
 }  // namespace webrtc
 #endif  // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_