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

Unified Diff: media/base/buffers.h

Issue 19739: Changed media::Buffer interfaces to use base::TimeDelta. (Closed)
Patch Set: Created 11 years, 11 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/data_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/buffers.h
diff --git a/media/base/buffers.h b/media/base/buffers.h
index bdfb726d662358ab0c6777957d891ce6f7c5a5ef..cbee337ac282186953c4d41e78a0e5dd303ba477 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>;
« no previous file with comments | « no previous file | media/base/data_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698