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..e5266c8165d9e723d41cc673d9b9b6b7b4302b89 100644 |
--- a/media/base/download_rate_monitor.h |
+++ b/media/base/download_rate_monitor.h |
@@ -40,7 +40,9 @@ class MEDIA_EXPORT DownloadRateMonitor { |
void set_total_bytes(int64 total_bytes) { total_bytes_ = total_bytes; } |
- void set_loaded(bool loaded) { loaded_ = loaded; } |
+ void set_local_source(bool local_source) { local_source_ = local_source; } |
+ |
+ 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 |
@@ -137,8 +139,9 @@ class MEDIA_EXPORT DownloadRateMonitor { |
// Amount of bytes buffered. |
int64 buffered_bytes_; |
- // True if the media file is a fully loaded source, e.g. file:// protocol. |
- bool loaded_; |
+ // True if the media file is from a local source, e.g. file:// protocol or a |
+ // webcam stream. |
+ bool local_source_; |
// Bitrate of the media file, 0 if unknown. |
int bitrate_; |
@@ -147,6 +150,9 @@ class MEDIA_EXPORT DownloadRateMonitor { |
// otherwise. |
bool stopped_; |
+ // True if the data source is a streaming source, false otherwise. |
+ bool streaming_; |
+ |
DISALLOW_COPY_AND_ASSIGN(DownloadRateMonitor); |
}; |