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

Unified Diff: media/base/download_rate_monitor.h

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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.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 ac88f7ffbed5b58a967cf04df407f4d64f44559c..775c3ce28355b7b2a4542f3aad1ec5cc54eb4d60 100644
--- a/media/base/download_rate_monitor.h
+++ b/media/base/download_rate_monitor.h
@@ -42,6 +42,10 @@ class MEDIA_EXPORT DownloadRateMonitor {
void set_loaded(bool loaded) { loaded_ = loaded; }
+ void set_media_stream(bool media_stream) { media_stream_ = media_stream; }
+
+ void set_streaming(bool streaming) { streaming_ = streaming; }
+
// Stop monitoring download rate. This does not discard previously learned
// information, but it will no longer factor incoming information into its
// canplaythrough estimation.
@@ -147,6 +151,13 @@ class MEDIA_EXPORT DownloadRateMonitor {
// otherwise.
bool stopped_;
+ // True if the data source is a media stream, e.g. video input from a local
+ // capture device, false otherwise.
+ bool media_stream_;
+
+ // True if the data source is a streaming source, false otherwise.
+ bool streaming_;
scherkus (not reviewing) 2011/11/23 01:59:44 wouldn't setting streaming=true for web cams also
vrk (LEFT CHROMIUM) 2011/11/23 21:29:45 There were 2 reasons why I introduced media stream
+
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.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698