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

Unified Diff: media/filters/decoder_stream.h

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and fix compile errors Created 4 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
« no previous file with comments | « media/filters/decoder_selector.cc ('k') | media/filters/decoder_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream.h
diff --git a/media/filters/decoder_stream.h b/media/filters/decoder_stream.h
index 3f4d5803fa2789a27c45b091752bdc83b49da187..3af3d752b1b3b785e8f1e0ed9c4a6a7513fc9a87 100644
--- a/media/filters/decoder_stream.h
+++ b/media/filters/decoder_stream.h
@@ -13,7 +13,6 @@
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "media/base/audio_decoder.h"
-#include "media/base/cdm_context.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_export.h"
#include "media/base/media_log.h"
@@ -29,6 +28,7 @@ class SingleThreadTaskRunner;
namespace media {
+class CdmContext;
class DecryptingDemuxerStream;
// Wraps a DemuxerStream and a list of Decoders and provides decoded
@@ -65,9 +65,11 @@ class MEDIA_EXPORT DecoderStream {
// Initializes the DecoderStream and returns the initialization result
// through |init_cb|. Note that |init_cb| is always called asynchronously.
+ // |cdm_context| can be used to handle encrypted stream. Can be null if the
+ // stream is not encrypted.
void Initialize(DemuxerStream* stream,
const InitCB& init_cb,
- const SetCdmReadyCB& set_cdm_ready_cb,
+ CdmContext* cdm_context,
const StatisticsCB& statistics_cb,
const base::Closure& waiting_for_decryption_key_cb);
@@ -133,7 +135,7 @@ class MEDIA_EXPORT DecoderStream {
STATE_ERROR
};
- void SelectDecoder(const SetCdmReadyCB& set_cdm_ready_cb);
+ void SelectDecoder(CdmContext* cdm_context);
// Called when |decoder_selector| selected the |selected_decoder|.
// |decrypting_demuxer_stream| was also populated if a DecryptingDemuxerStream
« no previous file with comments | « media/filters/decoder_selector.cc ('k') | media/filters/decoder_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698