diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-31 01:41:31 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-31 01:41:31 +0000 |
commit | a15e357e681110acb2be542e5fbaabb8cfc75782 (patch) | |
tree | ee0f7a21b9a0eab5e2ef77be6ca742b9fd4abaa9 /media/base/buffers.h | |
parent | ca6f57e7137d93fb328857b16e4129288053e061 (diff) | |
download | chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.zip chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.tar.gz chromium_src-a15e357e681110acb2be542e5fbaabb8cfc75782.tar.bz2 |
Changed media::Buffer interfaces to use base::TimeDelta.
Review URL: http://codereview.chromium.org/19739
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/buffers.h')
-rw-r--r-- | media/base/buffers.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/media/base/buffers.h b/media/base/buffers.h index bdfb726..cbee337 100644 --- a/media/base/buffers.h +++ b/media/base/buffers.h @@ -27,23 +27,25 @@ #ifndef MEDIA_BASE_BUFFERS_H_ #define MEDIA_BASE_BUFFERS_H_ +#include "base/basictypes.h" #include "base/ref_counted.h" +#include "base/time.h" namespace media { class StreamSample : public base::RefCountedThreadSafe<StreamSample> { public: // Returns the timestamp of this buffer in microseconds. - virtual int64 GetTimestamp() const = 0; + virtual base::TimeDelta GetTimestamp() const = 0; // Returns the duration of this buffer in microseconds. - virtual int64 GetDuration() const = 0; + virtual base::TimeDelta GetDuration() const = 0; // Sets the timestamp of this buffer in microseconds. - virtual void SetTimestamp(int64 timestamp) = 0; + virtual void SetTimestamp(const base::TimeDelta& timestamp) = 0; // Sets the duration of this buffer in microseconds. - virtual void SetDuration(int64 duration) = 0; + virtual void SetDuration(const base::TimeDelta& duration) = 0; protected: friend class base::RefCountedThreadSafe<StreamSample>; |