#include "services/video_capture/public/cpp/video_frame_access_handler.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
namespace video_capture {
scoped_refptr<ScopedAccessPermissionMap>
ScopedAccessPermissionMap::CreateMapAndSendVideoFrameAccessHandlerReady(
mojo::Remote<mojom::VideoFrameHandler>& video_frame_handler) { … }
ScopedAccessPermissionMap::ScopedAccessPermissionMap() = default;
ScopedAccessPermissionMap::~ScopedAccessPermissionMap() = default;
void ScopedAccessPermissionMap::InsertAccessPermission(
int32_t buffer_id,
std::unique_ptr<
media::VideoCaptureDevice::Client::Buffer::ScopedAccessPermission>
scoped_access_permission) { … }
void ScopedAccessPermissionMap::EraseAccessPermission(int32_t buffer_id) { … }
VideoFrameAccessHandlerImpl::VideoFrameAccessHandlerImpl(
scoped_refptr<ScopedAccessPermissionMap> scoped_access_permission_map)
: … { … }
VideoFrameAccessHandlerImpl::~VideoFrameAccessHandlerImpl() = default;
void VideoFrameAccessHandlerImpl::OnFinishedConsumingBuffer(int32_t buffer_id) { … }
VideoFrameAccessHandlerRemote::VideoFrameAccessHandlerRemote(
mojo::Remote<video_capture::mojom::VideoFrameAccessHandler>
frame_access_handler)
: … { … }
VideoFrameAccessHandlerRemote::~VideoFrameAccessHandlerRemote() = default;
mojom::VideoFrameAccessHandler* VideoFrameAccessHandlerRemote::operator->() { … }
void VideoFrameAccessHandlerForwarder::
CreateForwarderAndSendVideoFrameAccessHandlerReady(
mojo::Remote<mojom::VideoFrameHandler>& video_frame_handler,
scoped_refptr<VideoFrameAccessHandlerRemote>
video_frame_handler_remote) { … }
VideoFrameAccessHandlerForwarder::VideoFrameAccessHandlerForwarder(
scoped_refptr<VideoFrameAccessHandlerRemote> video_frame_handler_remote)
: … { … }
VideoFrameAccessHandlerForwarder::~VideoFrameAccessHandlerForwarder() = default;
void VideoFrameAccessHandlerForwarder::OnFinishedConsumingBuffer(
int32_t buffer_id) { … }
}