#include "media/filters/decrypting_video_decoder.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "media/base/cdm_context.h"
#include "media/base/decoder_buffer.h"
#include "media/base/media_log.h"
#include "media/base/video_frame.h"
namespace media {
const char DecryptingVideoDecoder::kDecoderName[] = …;
DecryptingVideoDecoder::DecryptingVideoDecoder(
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
MediaLog* media_log)
: … { … }
VideoDecoderType DecryptingVideoDecoder::GetDecoderType() const { … }
void DecryptingVideoDecoder::Initialize(const VideoDecoderConfig& config,
bool ,
CdmContext* cdm_context,
InitCB init_cb,
const OutputCB& output_cb,
const WaitingCB& waiting_cb) { … }
bool DecryptingVideoDecoder::SupportsDecryption() const { … }
void DecryptingVideoDecoder::Decode(scoped_refptr<DecoderBuffer> buffer,
DecodeCB decode_cb) { … }
void DecryptingVideoDecoder::Reset(base::OnceClosure closure) { … }
DecryptingVideoDecoder::~DecryptingVideoDecoder() { … }
void DecryptingVideoDecoder::FinishInitialization(bool success) { … }
void DecryptingVideoDecoder::DecodePendingBuffer() { … }
void DecryptingVideoDecoder::DeliverFrame(Decryptor::Status status,
scoped_refptr<VideoFrame> frame) { … }
void DecryptingVideoDecoder::OnCdmContextEvent(CdmContext::Event event) { … }
void DecryptingVideoDecoder::DoReset() { … }
void DecryptingVideoDecoder::CompletePendingDecode(Decryptor::Status status) { … }
void DecryptingVideoDecoder::CompleteWaitingForDecryptionKey() { … }
}