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

Unified Diff: media/filters/decrypting_audio_decoder.h

Issue 140823012: Reland: Add Stop() to AudioDecoder. (https://codereview.chromium.org/126793002/) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove extra scope Created 6 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 | « media/filters/audio_renderer_impl_unittest.cc ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decrypting_audio_decoder.h
diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h
index 968d4c4e115b7b9efb606d0503cd9bf88ad812d3..5d9c4da243580620650c3a5083a8d6dcc64b1eef 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -48,6 +48,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
const StatisticsCB& statistics_cb) OVERRIDE;
virtual void Read(const ReadCB& read_cb) OVERRIDE;
virtual void Reset(const base::Closure& closure) OVERRIDE;
+ virtual void Stop(const base::Closure& closure) OVERRIDE;
virtual int bits_per_channel() OVERRIDE;
virtual ChannelLayout channel_layout() OVERRIDE;
virtual int samples_per_second() OVERRIDE;
@@ -67,6 +68,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
kPendingDecode,
kWaitingForKey,
kDecodeFinished,
+ kStopped,
};
// Callback for DecryptorHost::RequestDecryptor().
@@ -115,6 +117,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
StatisticsCB statistics_cb_;
ReadCB read_cb_;
base::Closure reset_cb_;
+ base::Closure stop_cb_;
// Pointer to the demuxer stream that will feed us compressed buffers.
DemuxerStream* demuxer_stream_;
« no previous file with comments | « media/filters/audio_renderer_impl_unittest.cc ('k') | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698