chromium/media/renderers/decrypting_renderer.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/renderers/decrypting_renderer.h"

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.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/media_resource.h"
#include "media/base/renderer_client.h"
#include "media/filters/decrypting_demuxer_stream.h"
#include "media/filters/decrypting_media_resource.h"

namespace media {

DecryptingRenderer::DecryptingRenderer(
    std::unique_ptr<Renderer> renderer,
    MediaLog* media_log,
    const scoped_refptr<base::SequencedTaskRunner> media_task_runner)
    :{}

DecryptingRenderer::~DecryptingRenderer() {}

// The behavior of Initialize():
//
// Streams    CdmContext    Action
// ---------------------------------------------------------------------
// Clear      nullptr       InitializeRenderer()
// Clear      AesDecryptor  CreateAndInitializeDecryptingMediaResource()
// Clear      Other         InitializeRenderer()
// Encrypted  nullptr       Wait
// Encrypted  AesDecryptor  CreateAndInitializeDecryptingMediaResource()
// Encrypted  Other         InitializeRenderer()
void DecryptingRenderer::Initialize(MediaResource* media_resource,
                                    RendererClient* client,
                                    PipelineStatusCallback init_cb) {}

void DecryptingRenderer::SetCdm(CdmContext* cdm_context,
                                CdmAttachedCB cdm_attached_cb) {}

void DecryptingRenderer::SetLatencyHint(
    std::optional<base::TimeDelta> latency_hint) {}

void DecryptingRenderer::SetPreservesPitch(bool preserves_pitch) {}

void DecryptingRenderer::SetWasPlayedWithUserActivation(
    bool was_played_with_user_activation) {}

void DecryptingRenderer::Flush(base::OnceClosure flush_cb) {}

void DecryptingRenderer::StartPlayingFrom(base::TimeDelta time) {}

void DecryptingRenderer::SetPlaybackRate(double playback_rate) {}

void DecryptingRenderer::SetVolume(float volume) {}

base::TimeDelta DecryptingRenderer::GetMediaTime() {}

void DecryptingRenderer::OnSelectedVideoTracksChanged(
    const std::vector<DemuxerStream*>& enabled_tracks,
    base::OnceClosure change_completed_cb) {}

void DecryptingRenderer::OnEnabledAudioTracksChanged(
    const std::vector<DemuxerStream*>& enabled_tracks,
    base::OnceClosure change_completed_cb) {}

RendererType DecryptingRenderer::GetRendererType() {}

void DecryptingRenderer::CreateAndInitializeDecryptingMediaResource() {}

void DecryptingRenderer::InitializeRenderer(bool success) {}

bool DecryptingRenderer::HasEncryptedStream() {}

bool DecryptingRenderer::HasDecryptingMediaResourceForTesting() const {}

void DecryptingRenderer::OnWaiting(WaitingReason reason) {}

}  // namespace media