summaryrefslogtreecommitdiffstats
path: root/media/base/filter_host.h
diff options
context:
space:
mode:
authorralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 17:21:23 +0000
committerralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 17:21:23 +0000
commitb026f4aeb159244e47d3b55c5faad7bb3247fd55 (patch)
treeefda81548664ea009160ded8588904185b384ca4 /media/base/filter_host.h
parentabc659b6d95cf197c2b96a544351a667e8b96f95 (diff)
downloadchromium_src-b026f4aeb159244e47d3b55c5faad7bb3247fd55.zip
chromium_src-b026f4aeb159244e47d3b55c5faad7bb3247fd55.tar.gz
chromium_src-b026f4aeb159244e47d3b55c5faad7bb3247fd55.tar.bz2
Implementation of Pipeline and FilterHost interfaces. This is a large change, but all of the objects are interrelated.
I am also checking in a basic unit test that creates pipeline, and the data source hangs during initialization. The test sleeps one second and then stops the pipeline. Andrew has already done a first pass on this, and the code has come largely from our working experimental branch. Review URL: http://codereview.chromium.org/18546 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/filter_host.h')
-rw-r--r--media/base/filter_host.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/media/base/filter_host.h b/media/base/filter_host.h
index a3e2185..437b3f8 100644
--- a/media/base/filter_host.h
+++ b/media/base/filter_host.h
@@ -43,8 +43,8 @@ class FilterHost {
// may call this method passing NULL for the callback argument.
//
// Callback arguments:
- // int64 the new pipeline time, in microseconds
- virtual void SetTimeUpdateCallback(Callback1<int64>::Type* callback) = 0;
+ // base::TimeDelta - the new pipeline time, in microseconds.
+ virtual void SetTimeUpdateCallback(Callback1<base::TimeDelta>::Type* cb) = 0;
// Filters must call this method to indicate that their initialization is
// complete. They may call this from within their Initialize() method or may
@@ -59,15 +59,15 @@ class FilterHost {
// Sets the current time. Any filters that have registered a callback through
// the SetTimeUpdateCallback method will be notified of the change.
- virtual void SetTime(int64 time) = 0;
+ virtual void SetTime(base::TimeDelta time) = 0;
// Get the duration of the media in microseconds. If the duration has not
// been determined yet, then returns 0.
- virtual void SetDuration(int64 duration) = 0;
+ virtual void SetDuration(base::TimeDelta duration) = 0;
// Set the approximate amount of playable data buffered so far in micro-
// seconds.
- virtual void SetBufferedTime(int64 buffered_time) = 0;
+ virtual void SetBufferedTime(base::TimeDelta buffered_time) = 0;
// Set the total size of the media file.
virtual void SetTotalBytes(int64 total_bytes) = 0;
@@ -80,7 +80,7 @@ class FilterHost {
virtual void SetVideoSize(size_t width, size_t height) = 0;
protected:
- virtual ~FilterHost() = 0;
+ virtual ~FilterHost() {}
};
} // namespace media