#include "third_party/blink/renderer/modules/mediastream/media_stream_set.h"
#include "base/functional/bind.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream.h"
#include "third_party/blink/renderer/modules/mediastream/screen_capture_media_stream_track.h"
#include "third_party/blink/renderer/modules/mediastream/user_media_request.h"
#include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/modules/screen_details/screen_detailed.h"
#include "third_party/blink/renderer/modules/screen_details/screen_details.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
#include "ui/display/types/display_constants.h"
namespace blink {
namespace {
ScreenDetailed* FindScreenDetailedByDisplayId(
ScreenDetails* screen_details,
std::optional<int64_t> display_id) { … }
}
MediaStreamSet* MediaStreamSet::Create(
ExecutionContext* context,
const MediaStreamDescriptorVector& stream_descriptors,
UserMediaRequestType request_type,
MediaStreamSetInitializedCallback callback) { … }
MediaStreamSet::MediaStreamSet(
ExecutionContext* context,
const MediaStreamDescriptorVector& stream_descriptors,
UserMediaRequestType request_type,
MediaStreamSetInitializedCallback callback)
: … { … }
void MediaStreamSet::Trace(Visitor* visitor) const { … }
void MediaStreamSet::InitializeGetAllScreensMediaStreams(
ExecutionContext* context,
const MediaStreamDescriptorVector& stream_descriptors) { … }
void MediaStreamSet::OnMediaStreamSetInitialized() { … }
void MediaStreamSet::OnMediaStreamInitialized(
MediaStream* initialized_media_stream) { … }
}