#include "services/video_capture/push_video_stream_subscription_impl.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "services/video_capture/broadcasting_receiver.h"
namespace video_capture {
PushVideoStreamSubscriptionImpl::PushVideoStreamSubscriptionImpl(
mojo::PendingReceiver<mojom::PushVideoStreamSubscription>
subscription_receiver,
mojo::PendingRemote<mojom::VideoFrameHandler> subscriber,
const media::VideoCaptureParams& requested_settings,
mojom::VideoSource::CreatePushSubscriptionCallback creation_callback,
BroadcastingReceiver* broadcaster)
: … { … }
PushVideoStreamSubscriptionImpl::~PushVideoStreamSubscriptionImpl() = default;
void PushVideoStreamSubscriptionImpl::SetOnClosedHandler(
base::OnceCallback<void(base::OnceClosure done_cb)> handler) { … }
void PushVideoStreamSubscriptionImpl::OnDeviceStartSucceededWithSettings(
const media::VideoCaptureParams& settings,
Device* device) { … }
void PushVideoStreamSubscriptionImpl::OnDeviceStartFailed(
media::VideoCaptureError error) { … }
void PushVideoStreamSubscriptionImpl::Activate() { … }
void PushVideoStreamSubscriptionImpl::Suspend(SuspendCallback callback) { … }
void PushVideoStreamSubscriptionImpl::Resume() { … }
void PushVideoStreamSubscriptionImpl::GetPhotoState(
GetPhotoStateCallback callback) { … }
void PushVideoStreamSubscriptionImpl::SetPhotoOptions(
media::mojom::PhotoSettingsPtr settings,
SetPhotoOptionsCallback callback) { … }
void PushVideoStreamSubscriptionImpl::TakePhoto(TakePhotoCallback callback) { … }
void PushVideoStreamSubscriptionImpl::Close(CloseCallback callback) { … }
void PushVideoStreamSubscriptionImpl::OnConnectionLost() { … }
void PushVideoStreamSubscriptionImpl::ProcessFeedback(
const media::VideoCaptureFeedback& feedback) { … }
}