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

Unified Diff: media/base/filters.h

Issue 6625059: Implementing preload=metadata for video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup defer strategy, fix logic bug Created 9 years, 9 months 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/filters.cc » ('j') | media/base/filters.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filters.h
diff --git a/media/base/filters.h b/media/base/filters.h
index d6b962d64bb4775857662f3bbb62059ba10326a2..ba4f422e919838216f3b29c78a666c049887c35f 100644
--- a/media/base/filters.h
+++ b/media/base/filters.h
@@ -43,6 +43,13 @@ class FilterHost;
struct PipelineStatistics;
+// Used to specify video preload states.
acolwell GONE FROM CHROMIUM 2011/03/25 04:35:28 You should add a note here that this enum must mat
vrk (LEFT CHROMIUM) 2011/03/25 21:33:32 Done.
+enum Preload {
+ PRELOAD_NONE,
+ PRELOAD_METADATA,
+ PRELOAD_AUTO,
+};
+
// Used for completing asynchronous methods.
typedef Callback0::Type FilterCallback;
@@ -127,6 +134,9 @@ class DataSource : public Filter {
// Returns true if we are performing streaming. In this case seeking is
// not possible.
virtual bool IsStreaming() = 0;
+
+ // Alert the DataSource that the video preload value has been changed.
+ virtual void SetPreload(Preload preload);
acolwell GONE FROM CHROMIUM 2011/03/25 04:35:28 Make this pure virtual like the other methods.
vrk (LEFT CHROMIUM) 2011/03/25 21:33:32 Done.
};
class DemuxerStream : public base::RefCountedThreadSafe<DemuxerStream> {
@@ -180,6 +190,9 @@ class Demuxer : public Filter {
public:
// Returns the given stream type, or NULL if that type is not present.
virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type) = 0;
+
+ // Alert the Demuxer that the video preload value has been changed.
+ virtual void SetPreload(Preload preload);
acolwell GONE FROM CHROMIUM 2011/03/25 04:35:28 Make this pure virtual like the other method so im
vrk (LEFT CHROMIUM) 2011/03/25 21:33:32 Done.
};
« no previous file with comments | « no previous file | media/base/filters.cc » ('j') | media/base/filters.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698