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

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: Rebase to ToT Created 8 years, 11 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') | no next file with comments »
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..a27a7b6e25f9bb2513f86efd0aeb919a571aeed1 100644
--- a/media/base/download_rate_monitor.h
+++ b/media/base/download_rate_monitor.h
@@ -126,9 +126,6 @@ class MEDIA_EXPORT DownloadRateMonitor {
Sample current_sample_;
std::deque<Sample> sample_window_;
- // True if actively downloading bytes, false otherwise.
- bool is_downloading_data_;
-
// Total number of bytes in the media file, 0 if unknown or undefined.
int64 total_bytes_;
@@ -149,6 +146,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698