#include "content/browser/renderer_host/media/service_launched_video_capture_device.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "base/token.h"
#include "media/capture/mojom/video_capture_types.mojom.h"
namespace content {
ServiceLaunchedVideoCaptureDevice::ServiceLaunchedVideoCaptureDevice(
mojo::Remote<video_capture::mojom::VideoSource> source,
mojo::Remote<video_capture::mojom::PushVideoStreamSubscription>
subscription,
base::OnceClosure connection_lost_cb)
: … { … }
ServiceLaunchedVideoCaptureDevice::~ServiceLaunchedVideoCaptureDevice() { … }
void ServiceLaunchedVideoCaptureDevice::GetPhotoState(
media::VideoCaptureDevice::GetPhotoStateCallback callback) { … }
void ServiceLaunchedVideoCaptureDevice::SetPhotoOptions(
media::mojom::PhotoSettingsPtr settings,
media::VideoCaptureDevice::SetPhotoOptionsCallback callback) { … }
void ServiceLaunchedVideoCaptureDevice::TakePhoto(
media::VideoCaptureDevice::TakePhotoCallback callback) { … }
void ServiceLaunchedVideoCaptureDevice::MaybeSuspendDevice() { … }
void ServiceLaunchedVideoCaptureDevice::ResumeDevice() { … }
void ServiceLaunchedVideoCaptureDevice::ApplySubCaptureTarget(
media::mojom::SubCaptureTargetType type,
const base::Token& target,
uint32_t sub_capture_target_version,
base::OnceCallback<void(media::mojom::ApplySubCaptureTargetResult)>
callback) { … }
void ServiceLaunchedVideoCaptureDevice::RequestRefreshFrame() { … }
void ServiceLaunchedVideoCaptureDevice::SetDesktopCaptureWindowIdAsync(
gfx::NativeViewId window_id,
base::OnceClosure done_cb) { … }
void ServiceLaunchedVideoCaptureDevice::OnUtilizationReport(
media::VideoCaptureFeedback feedback) { … }
void ServiceLaunchedVideoCaptureDevice::
OnLostConnectionToSourceOrSubscription() { … }
void ServiceLaunchedVideoCaptureDevice::OnGetPhotoStateResponse(
media::VideoCaptureDevice::GetPhotoStateCallback callback,
media::mojom::PhotoStatePtr capabilities) const { … }
void ServiceLaunchedVideoCaptureDevice::OnSetPhotoOptionsResponse(
media::VideoCaptureDevice::SetPhotoOptionsCallback callback,
bool success) { … }
void ServiceLaunchedVideoCaptureDevice::OnTakePhotoResponse(
media::VideoCaptureDevice::TakePhotoCallback callback,
media::mojom::BlobPtr blob) { … }
}