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

Unified Diff: media/base/pipeline.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
Index: media/base/pipeline.h
diff --git a/media/base/pipeline.h b/media/base/pipeline.h
index 0df1bd3e7fccea2c96f6398d45c1eb31ccfc673f..ca7727ad3af315459d347c6afa7437150d32c81a 100644
--- a/media/base/pipeline.h
+++ b/media/base/pipeline.h
@@ -12,6 +12,7 @@
#include <string>
#include "base/callback.h"
+#include "media/base/filters.h"
acolwell GONE FROM CHROMIUM 2011/03/25 04:35:28 It is unfortunate that we have to expose filters.h
vrk (LEFT CHROMIUM) 2011/03/25 21:33:32 OK! For now I've kept it in the same place, but ye
#include "media/base/pipeline_status.h"
namespace base {
@@ -124,6 +125,9 @@ class Pipeline : public base::RefCountedThreadSafe<Pipeline> {
// channels proportionately for multi-channel audio streams.
virtual void SetVolume(float volume) = 0;
+ // Set the preload value for the pipeline.
+ virtual void SetPreload(Preload preload) = 0;
+
// Gets the current pipeline time. For a pipeline "time" progresses from 0 to
// the end of the media.
virtual base::TimeDelta GetCurrentTime() const = 0;

Powered by Google App Engine
This is Rietveld 408576698