summaryrefslogtreecommitdiffstats
path: root/media/base/demuxer.h
diff options
context:
space:
mode:
authorrileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-10 20:00:45 +0000
committerrileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-10 20:00:45 +0000
commit7c63c2ee2f35556e3b5d8c5f4195998994baf7cc (patch)
treed0dfee05ee508d2a38bcee7b009283f1da396d18 /media/base/demuxer.h
parent5c159171b8cf439b43c42908ec158cef83889eca (diff)
downloadchromium_src-7c63c2ee2f35556e3b5d8c5f4195998994baf7cc.zip
chromium_src-7c63c2ee2f35556e3b5d8c5f4195998994baf7cc.tar.gz
chromium_src-7c63c2ee2f35556e3b5d8c5f4195998994baf7cc.tar.bz2
Remove default implementations from Demuxer.
Seek(), Stop(), and OnAudioRendererDisabled() are now pure virtual. SetPlaybackRate() is removed entirely, and moved down to BufferedDataSource. BUG=304990 Review URL: https://codereview.chromium.org/26492004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/demuxer.h')
-rw-r--r--media/base/demuxer.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 853a21a..a2dad22 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -47,19 +47,16 @@ class MEDIA_EXPORT Demuxer {
virtual void Initialize(DemuxerHost* host,
const PipelineStatusCB& status_cb) = 0;
- // The pipeline playback rate has been changed. Demuxers may implement this
- // method if they need to respond to this call.
- virtual void SetPlaybackRate(float playback_rate);
-
// Carry out any actions required to seek to the given time, executing the
// callback upon completion.
- virtual void Seek(base::TimeDelta time, const PipelineStatusCB& status_cb);
+ virtual void Seek(base::TimeDelta time,
+ const PipelineStatusCB& status_cb) = 0;
// Starts stopping this demuxer, executing the callback upon completion.
//
// After the callback completes the demuxer may be destroyed. It is illegal to
// call any method (including Stop()) after a demuxer has stopped.
- virtual void Stop(const base::Closure& callback);
+ virtual void Stop(const base::Closure& callback) = 0;
// This method is called from the pipeline when the audio renderer
// is disabled. Demuxers can ignore the notification if they do not
@@ -67,7 +64,7 @@ class MEDIA_EXPORT Demuxer {
//
// TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type).
// TODO(scherkus): this might not be needed http://crbug.com/234708
- virtual void OnAudioRendererDisabled();
+ virtual void OnAudioRendererDisabled() = 0;
// Returns the given stream type, or NULL if that type is not present.
virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;