| Index: media/filters/decrypting_demuxer_stream.h
|
| diff --git a/media/filters/decrypting_demuxer_stream.h b/media/filters/decrypting_demuxer_stream.h
|
| index a04709ea395d57778f521b54141f3e1da5261e8a..88f86a2aeb24bbcf5f15f4b9071e8853cf8891cb 100644
|
| --- a/media/filters/decrypting_demuxer_stream.h
|
| +++ b/media/filters/decrypting_demuxer_stream.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "media/base/audio_decoder_config.h"
|
| +#include "media/base/cdm_context.h"
|
| #include "media/base/decryptor.h"
|
| #include "media/base/demuxer_stream.h"
|
| #include "media/base/pipeline_status.h"
|
| @@ -32,14 +33,13 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream {
|
| DecryptingDemuxerStream(
|
| 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);
|
|
|
| // Cancels all pending operations immediately and fires all pending callbacks.
|
| ~DecryptingDemuxerStream() override;
|
|
|
| - void Initialize(DemuxerStream* stream,
|
| - const PipelineStatusCB& status_cb);
|
| + void Initialize(DemuxerStream* stream, const PipelineStatusCB& status_cb);
|
|
|
| // Cancels all pending operations and fires all pending callbacks. If in
|
| // kPendingDemuxerRead or kPendingDecrypt state, waits for the pending
|
| @@ -74,10 +74,9 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream {
|
| kWaitingForKey
|
| };
|
|
|
| - // 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);
|
|
|
| // Callback for DemuxerStream::Read().
|
| void DecryptBuffer(DemuxerStream::Status status,
|
| @@ -120,8 +119,8 @@ class MEDIA_EXPORT DecryptingDemuxerStream : public DemuxerStream {
|
| AudioDecoderConfig audio_config_;
|
| VideoDecoderConfig video_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_;
|
|
|
|
|