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

Side by Side Diff: media/filters/ffmpeg_audio_decoder.h

Issue 935243002: Decryptors can report kNoKey to WebMediaPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 5 #ifndef MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 6 #define MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 21 matching lines...) Expand all
32 public: 32 public:
33 FFmpegAudioDecoder( 33 FFmpegAudioDecoder(
34 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 34 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
35 const LogCB& log_cb); 35 const LogCB& log_cb);
36 ~FFmpegAudioDecoder() override; 36 ~FFmpegAudioDecoder() override;
37 37
38 // AudioDecoder implementation. 38 // AudioDecoder implementation.
39 std::string GetDisplayName() const override; 39 std::string GetDisplayName() const override;
40 void Initialize(const AudioDecoderConfig& config, 40 void Initialize(const AudioDecoderConfig& config,
41 const PipelineStatusCB& status_cb, 41 const PipelineStatusCB& status_cb,
42 const OutputCB& output_cb) override; 42 const OutputCB& output_cb,
43 const base::Closure& waiting_for_encryption_key_cb) override;
43 void Decode(const scoped_refptr<DecoderBuffer>& buffer, 44 void Decode(const scoped_refptr<DecoderBuffer>& buffer,
44 const DecodeCB& decode_cb) override; 45 const DecodeCB& decode_cb) override;
45 void Reset(const base::Closure& closure) override; 46 void Reset(const base::Closure& closure) override;
46 47
47 private: 48 private:
48 // There are four states the decoder can be in: 49 // There are four states the decoder can be in:
49 // 50 //
50 // - kUninitialized: The decoder is not initialized. 51 // - kUninitialized: The decoder is not initialized.
51 // - kNormal: This is the normal state. The decoder is idle and ready to 52 // - kNormal: This is the normal state. The decoder is idle and ready to
52 // decode input buffers, or is decoding an input buffer. 53 // decode input buffers, or is decoding an input buffer.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<AudioDiscardHelper> discard_helper_; 109 scoped_ptr<AudioDiscardHelper> discard_helper_;
109 110
110 LogCB log_cb_; 111 LogCB log_cb_;
111 112
112 DISALLOW_IMPLICIT_CONSTRUCTORS(FFmpegAudioDecoder); 113 DISALLOW_IMPLICIT_CONSTRUCTORS(FFmpegAudioDecoder);
113 }; 114 };
114 115
115 } // namespace media 116 } // namespace media
116 117
117 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_ 118 #endif // MEDIA_FILTERS_FFMPEG_AUDIO_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698