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

Unified Diff: media/base/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 side-by-side diff with in-line comments
Download patch
Index: media/base/audio_decoder.h
diff --git a/media/base/audio_decoder.h b/media/base/audio_decoder.h
index 44e79a4d5b31c0fd976484c2281cce60e1eeca17..90b7ac466aa37f25ef527dd7c077aed132fc0a19 100644
--- a/media/base/audio_decoder.h
+++ b/media/base/audio_decoder.h
@@ -56,9 +56,13 @@ class MEDIA_EXPORT AudioDecoder {
// callback upon completion.
// |statistics_cb| is used to update global pipeline statistics.
// |output_cb| is called for decoded audio buffers (see Decode()).
- virtual void Initialize(const AudioDecoderConfig& config,
- const PipelineStatusCB& status_cb,
- const OutputCB& output_cb) = 0;
+ // |waiting_for_encryption_key_cb| is called whenever a new key needs to be
ddorwin 2015/02/19 05:33:17 ...whenever the key needed to decrypt the stream i
jrummell 2015/02/23 22:06:31 Done.
+ // provided in order to decrypt the stream.
+ virtual void Initialize(
+ const AudioDecoderConfig& config,
+ const PipelineStatusCB& status_cb,
+ const OutputCB& output_cb,
+ const base::Closure& waiting_for_encryption_key_cb) = 0;
ddorwin 2015/02/19 05:33:17 s/encryption/decryption/
jrummell 2015/02/23 22:06:31 Done.
// Requests samples to be decoded. Only one decode may be in flight at any
// given time. Once the buffer is decoded the decoder calls |decode_cb|.

Powered by Google App Engine
This is Rietveld 408576698