Index: content/browser/renderer_host/media/web_contents_video_capture_device.h |
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device.h b/content/browser/renderer_host/media/web_contents_video_capture_device.h |
index 05d8e4c0a91c3c7b4cc99fdb82c56f83ea05a670..f7f2014f589cf3a81eccdea4aa22158324c25188 100644 |
--- a/content/browser/renderer_host/media/web_contents_video_capture_device.h |
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device.h |
@@ -74,7 +74,8 @@ class CONTENT_EXPORT WebContentsVideoCaptureDevice |
class CONTENT_EXPORT SmoothEventSampler { |
public: |
explicit SmoothEventSampler(base::TimeDelta capture_period, |
- bool events_are_reliable); |
+ bool events_are_reliable, |
+ int redundant_capture_goal); |
// Add a new event to the event history, and return whether it ought to be |
// sampled per to the sampling frequency limit. Even if this method returns |
@@ -95,8 +96,10 @@ class CONTENT_EXPORT SmoothEventSampler { |
private: |
const bool events_are_reliable_; |
const base::TimeDelta capture_period_; |
+ const int redundant_capture_goal_; |
base::Time current_event_; |
base::Time last_sample_; |
+ int last_sample_count_; |
DISALLOW_COPY_AND_ASSIGN(SmoothEventSampler); |
}; |