#include "third_party/blink/renderer/modules/mediastream/local_video_capturer_source.h"
#include <utility>
#include "base/functional/callback_helpers.h"
#include "base/task/bind_post_task.h"
#include "base/task/single_thread_task_runner.h"
#include "base/token.h"
#include "media/capture/mojom/video_capture_types.mojom-blink.h"
#include "media/capture/video_capture_types.h"
#include "third_party/blink/public/platform/modules/video_capture/web_video_capture_impl_manager.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink {
LocalVideoCapturerSource::LocalVideoCapturerSource(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
LocalFrame* frame,
const base::UnguessableToken& session_id)
: … { … }
LocalVideoCapturerSource::~LocalVideoCapturerSource() { … }
media::VideoCaptureFormats LocalVideoCapturerSource::GetPreferredFormats() { … }
void LocalVideoCapturerSource::StartCapture(
const media::VideoCaptureParams& params,
const VideoCaptureDeliverFrameCB& new_frame_callback,
const VideoCaptureSubCaptureTargetVersionCB&
sub_capture_target_version_callback,
const VideoCaptureNotifyFrameDroppedCB& frame_dropped_callback,
const RunningCallback& running_callback) { … }
media::VideoCaptureFeedbackCB LocalVideoCapturerSource::GetFeedbackCallback()
const { … }
void LocalVideoCapturerSource::RequestRefreshFrame() { … }
void LocalVideoCapturerSource::MaybeSuspend() { … }
void LocalVideoCapturerSource::Resume() { … }
void LocalVideoCapturerSource::StopCapture() { … }
void LocalVideoCapturerSource::OnLog(const std::string& message) { … }
void LocalVideoCapturerSource::OnStateUpdate(blink::VideoCaptureState state) { … }
std::unique_ptr<VideoCapturerSource> LocalVideoCapturerSource::Create(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
LocalFrame* frame,
const base::UnguessableToken& session_id) { … }
}