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

Unified Diff: media/base/download_rate_monitor.h

Issue 9113023: Fire canplaythrough as soon as download defers to fix autoplay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 12 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/base/download_rate_monitor.cc » ('j') | media/base/download_rate_monitor_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/download_rate_monitor.h
diff --git a/media/base/download_rate_monitor.h b/media/base/download_rate_monitor.h
index 4fca328858e1f8c187e53728ed1aed0338b332be..6756a1bcc4da87e794b3238e44d01b52c996a6d6 100644
--- a/media/base/download_rate_monitor.h
+++ b/media/base/download_rate_monitor.h
@@ -149,6 +149,9 @@ class MEDIA_EXPORT DownloadRateMonitor {
// True if the data source is a streaming source, false otherwise.
bool streaming_;
+ // True if downloading has been deferred at least once, false otherwise.
+ bool has_deferred_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor);
};
« no previous file with comments | « no previous file | media/base/download_rate_monitor.cc » ('j') | media/base/download_rate_monitor_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698