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

Unified Diff: media/base/filters.h

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix media/event-attributes.html 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/filters.h
diff --git a/media/base/filters.h b/media/base/filters.h
index e464202036a5b92a305c1dcaf585681a971cd1b1..09b32774006c45ae79d430f998daa74a9a86f1c0 100644
--- a/media/base/filters.h
+++ b/media/base/filters.h
@@ -157,6 +157,10 @@ class MEDIA_EXPORT DataSource : public Filter {
// Notify the DataSource of the bitrate of the media.
// Values of |bitrate| <= 0 are invalid and should be ignored.
virtual void SetBitrate(int bitrate) = 0;
+
+ // Returns true if the data source is from a local file or stream (such as a
+ // webcam stream), false otherwise.
+ virtual bool IsLocalSource() = 0;
acolwell GONE FROM CHROMIUM 2011/11/30 19:26:11 I wonder if adding this method is needed since the
vrk (LEFT CHROMIUM) 2011/12/01 02:11:35 Yeah, that's what I was thinking too. Done.
};
class MEDIA_EXPORT VideoDecoder : public Filter {

Powered by Google App Engine
This is Rietveld 408576698