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); |
}; |