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

Unified Diff: media/filters/decrypting_audio_decoder.h

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 5 years, 1 month 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/filters/decrypting_audio_decoder.h
diff --git a/media/filters/decrypting_audio_decoder.h b/media/filters/decrypting_audio_decoder.h
index 79191723e9d060128808cf8f4fd6d68e487721eb..b566fdd7f35c2b83214fa58751a818686092defa 100644
--- a/media/filters/decrypting_audio_decoder.h
+++ b/media/filters/decrypting_audio_decoder.h
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "media/base/audio_decoder.h"
+#include "media/base/cdm_context.h"
#include "media/base/decryptor.h"
#include "media/base/demuxer_stream.h"
@@ -34,7 +35,7 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
DecryptingAudioDecoder(
const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
const scoped_refptr<MediaLog>& media_log,
- const SetDecryptorReadyCB& set_decryptor_ready_cb,
+ const SetCdmReadyCB& set_cdm_ready_cb,
const base::Closure& waiting_for_decryption_key_cb);
~DecryptingAudioDecoder() override;
@@ -63,10 +64,9 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
kError
};
- // Callback for DecryptorHost::RequestDecryptor(). |decryptor_attached_cb| is
- // called when the decryptor has been completely attached to the pipeline.
- void SetDecryptor(Decryptor* decryptor,
- const DecryptorAttachedCB& decryptor_attached_cb);
+ // Callback to set CDM. |cdm_attached_cb| is called when the decryptor in the
+ // CDM has been completely attached to the pipeline.
+ void SetCdm(CdmContext* cdm_context, const CdmAttachedCB& cdm_attached_cb);
// Initializes the audio decoder on the |decryptor_| with |config_|.
void InitializeDecoder();
@@ -106,8 +106,8 @@ class MEDIA_EXPORT DecryptingAudioDecoder : public AudioDecoder {
// The current decoder configuration.
AudioDecoderConfig config_;
- // Callback to request/cancel decryptor creation notification.
- SetDecryptorReadyCB set_decryptor_ready_cb_;
+ // Callback to request/cancel CDM ready notification.
+ SetCdmReadyCB set_cdm_ready_cb_;
Decryptor* decryptor_;

Powered by Google App Engine
This is Rietveld 408576698