Chromium Code Reviews| Index: media/filters/decrypting_audio_decoder.h |
| diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h |
| index 5d9c4da243580620650c3a5083a8d6dcc64b1eef..53400d961114d3e1dd3b1c8b24b24be21ecbe310 100644 |
| --- a/media/filters/decrypting_audio_decoder.h |
| +++ b/media/filters/decrypting_audio_decoder.h |
| @@ -43,15 +43,16 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder { |
| virtual ~DecryptingAudioDecoder(); |
| // AudioDecoder implementation. |
| - virtual void Initialize(DemuxerStream* stream, |
| - const PipelineStatusCB& status_cb, |
| - const StatisticsCB& statistics_cb) OVERRIDE; |
| - virtual void Read(const ReadCB& read_cb) OVERRIDE; |
| + virtual void Initialize(const AudioDecoderConfig& config, |
| + const PipelineStatusCB& status_cb) OVERRIDE; |
| + virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
| + const DecodeCB& decode_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; |
| + virtual bool HasQueuedData() const OVERRIDE; |
| private: |
| // For a detailed state diagram please see this link: http://goo.gl/8jAok |
| @@ -77,14 +78,6 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder { |
| // Callback for Decryptor::InitializeAudioDecoder() during initialization. |
| void FinishInitialization(bool success); |
| - // Callback for Decryptor::InitializeAudioDecoder() during config change. |
| - void FinishConfigChange(bool success); |
| - |
| - // Reads from the demuxer stream with corresponding callback method. |
| - void ReadFromDemuxerStream(); |
| - void DecryptAndDecodeBuffer(DemuxerStream::Status status, |
| - const scoped_refptr<DecoderBuffer>& buffer); |
| - |
| void DecodePendingBuffer(); |
| // Callback for Decryptor::DecryptAndDecodeAudio(). |
| @@ -114,13 +107,12 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder { |
| State state_; |
| PipelineStatusCB init_cb_; |
| - StatisticsCB statistics_cb_; |
| - ReadCB read_cb_; |
| + DecodeCB decode_cb_; |
| base::Closure reset_cb_; |
| base::Closure stop_cb_; |
| // Pointer to the demuxer stream that will feed us compressed buffers. |
|
rileya (GONE FROM CHROMIUM)
2014/02/21 23:04:02
This comment needs an update.
|
| - DemuxerStream* demuxer_stream_; |
| + AudioDecoderConfig config_; |
| // Callback to request/cancel decryptor creation notification. |
| SetDecryptorReadyCB set_decryptor_ready_cb_; |