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

Unified Diff: media/filters/decoder_selector.h

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/filters/decoder_selector.h
diff --git a/media/filters/decoder_selector.h b/media/filters/decoder_selector.h
index d0da9245a2e55dc1fe0833a84dd8ae5652300e3e..f95ad6da173b334b7b1b451caef04501b8d22e5c 100644
--- a/media/filters/decoder_selector.h
+++ b/media/filters/decoder_selector.h
@@ -11,7 +11,6 @@
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
-#include "media/base/cdm_context.h"
#include "media/base/demuxer_stream.h"
#include "media/base/pipeline_status.h"
#include "media/filters/decoder_stream_traits.h"
@@ -22,6 +21,7 @@ class SingleThreadTaskRunner;
namespace media {
+class CdmContext;
class DecoderBuffer;
class DecryptingDemuxerStream;
class MediaLog;
@@ -68,10 +68,10 @@ class MEDIA_EXPORT DecoderSelector {
// 1. This must not be called again before |select_decoder_cb| is run.
// 2. Decoders that fail to initialize will be deleted. Future calls will
// select from the decoders following the decoder that was last returned.
- // 3. |set_cdm_ready_cb| is optional. If |set_cdm_ready_cb| is
+ // 3. |cdm_context| is optional. If |cdm_context| is
// null, no CDM will be available to perform decryption.
void SelectDecoder(DemuxerStream* stream,
- const SetCdmReadyCB& set_cdm_ready_cb,
+ CdmContext* cdm_context,
const SelectDecoderCB& select_decoder_cb,
const typename Decoder::OutputCB& output_cb,
const base::Closure& waiting_for_decryption_key_cb);
@@ -92,7 +92,7 @@ class MEDIA_EXPORT DecoderSelector {
scoped_refptr<MediaLog> media_log_;
DemuxerStream* input_stream_;
- SetCdmReadyCB set_cdm_ready_cb_;
+ CdmContext* cdm_context_;
SelectDecoderCB select_decoder_cb_;
typename Decoder::OutputCB output_cb_;
base::Closure waiting_for_decryption_key_cb_;

Powered by Google App Engine
This is Rietveld 408576698