#ifndef COMPONENTS_CAST_RECEIVER_BROWSER_STREAMING_CONTROLLER_MIRRORING_H_
#define COMPONENTS_CAST_RECEIVER_BROWSER_STREAMING_CONTROLLER_MIRRORING_H_
#include <memory>
#include "components/cast_receiver/browser/streaming_controller_base.h"
#include "components/cast_streaming/common/public/mojom/demuxer_connector.mojom.h"
#include "components/cast_streaming/common/public/mojom/renderer_controller.mojom.h"
#include "media/mojo/mojom/renderer.mojom.h"
#include "mojo/public/cpp/bindings/associated_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace cast_api_bindings {
class MessagePort;
}
namespace cast_streaming {
class ReceiverSession;
}
namespace content {
class WebContents;
}
namespace cast_receiver {
class StreamingControllerMirroring : public StreamingControllerBase {
public:
StreamingControllerMirroring(
std::unique_ptr<cast_api_bindings::MessagePort> message_port,
content::WebContents* web_contents);
~StreamingControllerMirroring() override;
private:
void StartPlayback(
cast_streaming::ReceiverSession* receiver_session,
mojo::AssociatedRemote<cast_streaming::mojom::DemuxerConnector>
demuxer_connector,
mojo::AssociatedRemote<cast_streaming::mojom::RendererController>
renderer_connection) override;
void ProcessConfig(cast_streaming::ReceiverConfig& config) override;
mojo::AssociatedRemote<cast_streaming::mojom::RendererController>
renderer_connection_;
mojo::Remote<media::mojom::Renderer> renderer_controls_;
};
}
#endif