#include "components/cast_streaming/renderer/resource_provider_impl.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "components/cast_streaming/common/public/cast_streaming_url.h"
#include "components/cast_streaming/common/public/features.h"
#include "components/cast_streaming/renderer/frame/frame_injecting_demuxer.h"
#include "media/base/demuxer.h"
namespace cast_streaming {
std::unique_ptr<ResourceProvider> CreateResourceProvider() { … }
ResourceProviderImpl::ResourceProviderImpl() : … { … }
ResourceProviderImpl::~ResourceProviderImpl() = default;
void ResourceProviderImpl::BindRendererController(
mojo::PendingAssociatedReceiver<mojom::RendererController> receiver) { … }
void ResourceProviderImpl::BindDemuxerConnector(
mojo::PendingAssociatedReceiver<mojom::DemuxerConnector> receiver) { … }
void ResourceProviderImpl::OnError() { … }
ResourceProvider::ReceiverBinder<mojom::RendererController>
ResourceProviderImpl::GetRendererControllerBinder() { … }
ResourceProvider::ReceiverBinder<mojom::DemuxerConnector>
ResourceProviderImpl::GetDemuxerConnectorBinder() { … }
std::unique_ptr<media::Demuxer> ResourceProviderImpl::MaybeGetDemuxerOverride(
const GURL& url,
scoped_refptr<base::SequencedTaskRunner> media_task_runner) { … }
mojo::PendingReceiver<media::mojom::Renderer>
ResourceProviderImpl::GetRendererCommandReceiver() { … }
ResourceProviderImpl::PerRenderFrameResources::PerRenderFrameResources(
base::OnceClosure on_error)
: … { … }
ResourceProviderImpl::PerRenderFrameResources::~PerRenderFrameResources() =
default;
}