diff options
-rw-r--r-- | media/base/filter_host.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/media/base/filter_host.h b/media/base/filter_host.h index 87af514..d8ce26d 100644 --- a/media/base/filter_host.h +++ b/media/base/filter_host.h @@ -49,40 +49,40 @@ namespace media { class FilterHostInterface { public: // Returns the global time. - virtual int64 GetTime() const; + virtual int64 GetTime() const = 0; // Updates the global time. - virtual void SetTime(int64 time); + virtual void SetTime(int64 time) = 0; // Returns the global duration. - virtual int64 GetDuration() const; + virtual int64 GetDuration() const = 0; // Updates the global media duration. - virtual void SetDuration(int64 duration); + virtual void SetDuration(int64 duration) = 0; // Posts a task to be executed asynchronously. - virtual void PostTask(Task* task); + virtual void PostTask(Task* task) = 0; // Notifies the host that the filter has transitioned into the playing state. - virtual bool PlayComplete(); + virtual bool PlayComplete() = 0; // Notifies the host that the filter has transitioned into the paused state. - virtual bool PauseComplete(); + virtual bool PauseComplete() = 0; // Notifies the host that the filter has transitioned into the seek state. - virtual bool SeekComplete(); + virtual bool SeekComplete() = 0; // Notifies the host that the filter has transitioned into the shutdown state. - virtual bool ShutdownComplete(); + virtual bool ShutdownComplete() = 0; // Notifies the host that an error has occurred and that further processing // cannot continue. |error| identifies the type of error that occurred. // // TODO(scherkus): Add error constants as we start implementing filters. - virtual void Error(int error); + virtual void Error(int error) = 0; // Notifies the host that the end of the stream has been reached. - virtual void EndOfStream(); + virtual void EndOfStream() = 0; // Registers a callback to handle the play state transition. The filter must // call PlayComplete at some point in the future to signal completion of |