#include "media/remoting/remoting_renderer_factory.h"
#include "base/task/bind_post_task.h"
#include "base/task/sequenced_task_runner.h"
#include "media/base/demuxer.h"
#include "media/cast/openscreen/remoting_message_factories.h"
#include "media/remoting/receiver.h"
#include "media/remoting/receiver_controller.h"
#include "media/remoting/stream_provider.h"
RpcMessenger;
namespace media {
namespace remoting {
RemotingRendererFactory::RemotingRendererFactory(
mojo::PendingRemote<mojom::Remotee> remotee,
std::unique_ptr<RendererFactory> renderer_factory,
const scoped_refptr<base::SequencedTaskRunner>& media_task_runner)
: … { … }
RemotingRendererFactory::~RemotingRendererFactory() { … }
std::unique_ptr<Renderer> RemotingRendererFactory::CreateRenderer(
const scoped_refptr<base::SequencedTaskRunner>& media_task_runner,
const scoped_refptr<base::TaskRunner>& worker_task_runner,
AudioRendererSink* audio_renderer_sink,
VideoRendererSink* video_renderer_sink,
RequestOverlayInfoCB request_overlay_info_cb,
const gfx::ColorSpace& target_color_space) { … }
void RemotingRendererFactory::OnReceivedRpc(
std::unique_ptr<openscreen::cast::RpcMessage> message) { … }
void RemotingRendererFactory::OnAcquireRenderer(
std::unique_ptr<openscreen::cast::RpcMessage> message) { … }
void RemotingRendererFactory::OnAcquireRendererDone(int receiver_rpc_handle) { … }
}
}