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

Unified Diff: media/filters/decrypting_audio_decoder.h

Issue 11787012: Encrypted Media: Add config change support in DecryptingAudioDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments resolved Created 7 years, 12 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 | « no previous file | 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 6092d4744ad81d778d46fcaf5f4165107724f403..7890d222a0fd03a4b745ea0651e6ee5c315ebda4 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -24,11 +24,6 @@ class Decryptor;
// encrypted audio buffers and return decrypted and decompressed audio frames.
// All public APIs and callbacks are trampolined to the |message_loop_| so
// that no locks are required for thread safety.
-//
-// TODO(xhwang): For now, DecryptingAudioDecoder relies on the decryptor to do
-// both decryption and audio decoding. Add the path to use the decryptor for
-// decryption only and use other AudioDecoder implementations within
-// DecryptingAudioDecoder for audio decoding.
class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
public:
DecryptingAudioDecoder(
@@ -58,6 +53,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
kDecryptorRequested,
kPendingDecoderInit,
kIdle,
+ kPendingConfigChange,
kPendingDemuxerRead,
kPendingDecode,
kWaitingForKey,
@@ -72,9 +68,12 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// Callback for DecryptorHost::RequestDecryptor().
void SetDecryptor(Decryptor* decryptor);
- // Callback for Decryptor::InitializeAudioDecoder().
+ // Callback for Decryptor::InitializeAudioDecoder() during initialization.
void FinishInitialization(bool success);
+ // Callback for Decryptor::InitializeAudioDecoder() during config change.
+ void FinishConfigChange(bool success);
+
// Carries out the buffer reading operation scheduled by Read().
void DoRead(const ReadCB& read_cb);
« no previous file with comments | « no previous file | media/filters/decrypting_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698