#include "media/filters/decrypting_media_resource.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "media/base/cdm_context.h"
#include "media/base/demuxer_stream.h"
#include "media/base/media_log.h"
#include "media/base/pipeline_status.h"
#include "media/filters/decrypting_demuxer_stream.h"
namespace media {
DecryptingMediaResource::DecryptingMediaResource(
MediaResource* media_resource,
CdmContext* cdm_context,
MediaLog* media_log,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
DecryptingMediaResource::~DecryptingMediaResource() = default;
MediaResource::Type DecryptingMediaResource::GetType() const { … }
std::vector<DemuxerStream*> DecryptingMediaResource::GetAllStreams() { … }
void DecryptingMediaResource::Initialize(InitCB init_cb, WaitingCB waiting_cb) { … }
int DecryptingMediaResource::DecryptingDemuxerStreamCountForTesting() const { … }
void DecryptingMediaResource::OnDecryptingDemuxerInitialized(
PipelineStatus status) { … }
}