| Index: media/base/filters.h
|
| diff --git a/media/base/filters.h b/media/base/filters.h
|
| index 3029cbcf93ad5aa3f759e6f6c1ecad22447291ff..8fdfe011aad6413722c51104aa745c9c3c3c184e 100644
|
| --- a/media/base/filters.h
|
| +++ b/media/base/filters.h
|
| @@ -88,6 +88,25 @@ class MediaFilter : public base::RefCountedThreadSafe<MediaFilter> {
|
| return message_loop_;
|
| }
|
|
|
| + // The pipeline has resumed playback. Filters can continue requesting reads.
|
| + // Filters may implement this method if they need to respond to this call.
|
| + virtual void Play(FilterCallback* callback) {
|
| + if (callback) {
|
| + callback->Run();
|
| + delete callback;
|
| + }
|
| + }
|
| +
|
| + // The pipeline has paused playback. Filters should fulfill any existing read
|
| + // requests and then idle. Filters may implement this method if they need to
|
| + // respond to this call.
|
| + virtual void Pause(FilterCallback* callback) {
|
| + if (callback) {
|
| + callback->Run();
|
| + delete callback;
|
| + }
|
| + }
|
| +
|
| // The pipeline is being stopped either as a result of an error or because
|
| // the client called Stop().
|
| virtual void Stop() = 0;
|
|
|