#include "third_party/blink/renderer/platform/mediastream/media_stream_component_impl.h"
#include "base/synchronization/lock.h"
#include "third_party/blink/public/platform/modules/mediastream/web_media_stream_audio_sink.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_source.h"
#include "third_party/blink/renderer/platform/wtf/uuid.h"
namespace blink {
namespace {
static int g_unique_media_stream_component_id = …;
void CheckSourceAndTrackSameType(
const MediaStreamSource* source,
const MediaStreamTrackPlatform* platform_track) { … }
}
int MediaStreamComponentImpl::GenerateUniqueId() { … }
MediaStreamComponentImpl::MediaStreamComponentImpl(
const String& id,
MediaStreamSource* source,
std::unique_ptr<MediaStreamTrackPlatform> platform_track)
: … { … }
MediaStreamComponentImpl::MediaStreamComponentImpl(
MediaStreamSource* source,
std::unique_ptr<MediaStreamTrackPlatform> platform_track)
: … { … }
MediaStreamComponentImpl* MediaStreamComponentImpl::Clone() const { … }
void MediaStreamComponentImpl::Dispose() { … }
void MediaStreamComponentImpl::GetSettings(
MediaStreamTrackPlatform::Settings& settings) { … }
MediaStreamTrackPlatform::CaptureHandle
MediaStreamComponentImpl::GetCaptureHandle() { … }
void MediaStreamComponentImpl::SetEnabled(bool enabled) { … }
void MediaStreamComponentImpl::SetContentHint(
WebMediaStreamTrack::ContentHintType hint) { … }
void MediaStreamComponentImpl::AddSourceObserver(
MediaStreamSource::Observer* observer) { … }
void MediaStreamComponentImpl::AddSink(WebMediaStreamAudioSink* sink) { … }
void MediaStreamComponentImpl::AddSink(
WebMediaStreamSink* sink,
const VideoCaptureDeliverFrameCB& callback,
MediaStreamVideoSink::IsSecure is_secure,
MediaStreamVideoSink::UsesAlpha uses_alpha) { … }
String MediaStreamComponentImpl::ToString() const { … }
void MediaStreamComponentImpl::Trace(Visitor* visitor) const { … }
}