Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Unified Diff: media/blink/watch_time_reporter.h

Issue 2822543006: Start reporting watch time if ABR adapts above 200p. (Closed)
Patch Set: Simplify Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/blink/watch_time_reporter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/watch_time_reporter.h
diff --git a/media/blink/watch_time_reporter.h b/media/blink/watch_time_reporter.h
index 8290bdc1b04807003620dbae5eb903040d40a69d..9b3b93bf41890581f05820c2105bd15a7e734045 100644
--- a/media/blink/watch_time_reporter.h
+++ b/media/blink/watch_time_reporter.h
@@ -103,6 +103,10 @@ class MEDIA_BLINK_EXPORT WatchTimeReporter : base::PowerObserver {
void OnShown();
void OnHidden();
+ // Returns true if the current size is large enough that watch time will be
+ // recorded for playback.
+ bool IsSizeLargeEnoughToReportWatchTime() const;
+
// Setup the reporting interval to be immediate to avoid spinning real time
// within the unit test.
void set_reporting_interval_for_testing() {
« no previous file with comments | « no previous file | media/blink/watch_time_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698