Add UMA stats to bad call detection.

Just simple "percentage of call that was bad" stats.

BUG=webrtc:6814

Review-Url: https://codereview.webrtc.org/2578213003
Cr-Commit-Position: refs/heads/master@{#16049}
diff --git a/webrtc/video/quality_threshold.h b/webrtc/video/quality_threshold.h
index 9bd0aaee..95e11d2 100644
--- a/webrtc/video/quality_threshold.h
+++ b/webrtc/video/quality_threshold.h
@@ -29,6 +29,7 @@
   void AddMeasurement(int measurement);
   rtc::Optional<bool> IsHigh() const;
   rtc::Optional<double> CalculateVariance() const;
+  rtc::Optional<double> FractionHigh(int min_required_samples) const;
 
  private:
   const std::unique_ptr<int[]> buffer_;
@@ -42,6 +43,8 @@
   int sum_;
   int count_low_;
   int count_high_;
+  int num_high_states_;
+  int num_certain_states_;
 };
 
 }  // namespace webrtc