#include "third_party/blink/renderer/modules/mediastream/media_stream_renderer_factory.h"
#include <utility>
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "third_party/blink/public/platform/modules/mediastream/web_media_stream.h"
#include "third_party/blink/public/platform/modules/webrtc/webrtc_logging.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_video_renderer_sink.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_video_track.h"
#include "third_party/blink/renderer/modules/mediastream/track_audio_renderer.h"
#include "third_party/blink/renderer/modules/peerconnection/peer_connection_dependency_factory.h"
#include "third_party/blink/renderer/modules/webrtc/webrtc_audio_device_impl.h"
#include "third_party/blink/renderer/modules/webrtc/webrtc_audio_renderer.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_audio_track.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_descriptor.h"
#include "third_party/blink/renderer/platform/webrtc/peer_connection_remote_audio_source.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/webrtc/api/media_stream_interface.h"
namespace blink {
namespace {
base::UnguessableToken GetSessionIdForWebRtcAudioRenderer(
ExecutionContext& context) { … }
void SendLogMessage(const WTF::String& message) { … }
}
MediaStreamRendererFactory::MediaStreamRendererFactory() { … }
MediaStreamRendererFactory::~MediaStreamRendererFactory() { … }
scoped_refptr<MediaStreamVideoRenderer>
MediaStreamRendererFactory::GetVideoRenderer(
const WebMediaStream& web_stream,
const MediaStreamVideoRenderer::RepaintCB& repaint_cb,
scoped_refptr<base::SequencedTaskRunner> video_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> main_render_task_runner) { … }
scoped_refptr<MediaStreamAudioRenderer>
MediaStreamRendererFactory::GetAudioRenderer(
const WebMediaStream& web_stream,
WebLocalFrame* web_frame,
const WebString& device_id,
base::RepeatingCallback<void()> on_render_error_callback) { … }
}