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

Unified Diff: media/base/pipeline_impl.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
Index: media/base/pipeline_impl.h
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index 57f8aebda2d75c85118f2cadd3b97ffe70bc3475..0a3d25bb2ca707ea6ad80f863d360e82c43ae546 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -125,6 +125,7 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public FilterHost {
virtual int64 GetBufferedBytes() const OVERRIDE;
virtual int64 GetTotalBytes() const OVERRIDE;
virtual void GetNaturalVideoSize(gfx::Size* out_size) const OVERRIDE;
+ virtual void SetMediaStream(bool is_media_stream) OVERRIDE;
virtual bool IsStreaming() const OVERRIDE;
virtual bool IsLoaded() const OVERRIDE;
virtual PipelineStatistics GetStatistics() const OVERRIDE;
@@ -385,10 +386,14 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline, public FilterHost {
// Video's natural width and height. Set by filters.
gfx::Size natural_size_;
- // Sets by the filters to indicate whether the data source is a streaming
+ // Set by the filters to indicate whether the data source is a streaming
// source.
bool streaming_;
+ // Set by pipeline client to indicate whether the data source is a
+ // MediaStream.
+ bool media_stream_;
+
// Sets by the filters to indicate whether the data source is a fully
// loaded source.
bool loaded_;

Powered by Google App Engine
This is Rietveld 408576698