#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/video_capture/public/mojom/device.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/video_capture/public/mojom/device.mojom-params-data.h"
#include "services/video_capture/public/mojom/device.mojom-shared-message-ids.h"
#include "services/video_capture/public/mojom/device.mojom-import-headers.h"
#include "services/video_capture/public/mojom/device.mojom-test-utils.h"
namespace video_capture::mojom {
const char Device::Name_[] = …;
Device::IPCStableHashFunction Device::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Device::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Device::Start_Sym::IPCStableHash() { … }
uint32_t Device::MaybeSuspend_Sym::IPCStableHash() { … }
uint32_t Device::Resume_Sym::IPCStableHash() { … }
uint32_t Device::GetPhotoState_Sym::IPCStableHash() { … }
uint32_t Device::SetPhotoOptions_Sym::IPCStableHash() { … }
uint32_t Device::TakePhoto_Sym::IPCStableHash() { … }
uint32_t Device::ProcessFeedback_Sym::IPCStableHash() { … }
uint32_t Device::RequestRefreshFrame_Sym::IPCStableHash() { … }
# endif
class Device_GetPhotoState_ForwardToCallback
: public mojo::MessageReceiver { … };
class Device_SetPhotoOptions_ForwardToCallback
: public mojo::MessageReceiver { … };
class Device_TakePhoto_ForwardToCallback
: public mojo::MessageReceiver { … };
DeviceProxy::DeviceProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void DeviceProxy::Start(
const ::media::VideoCaptureParams& in_requested_settings, ::mojo::PendingRemote<::video_capture::mojom::VideoFrameHandler> in_handler) { … }
void DeviceProxy::MaybeSuspend(
) { … }
void DeviceProxy::Resume(
) { … }
void DeviceProxy::GetPhotoState(
GetPhotoStateCallback callback) { … }
void DeviceProxy::SetPhotoOptions(
::media::mojom::PhotoSettingsPtr in_settings, SetPhotoOptionsCallback callback) { … }
void DeviceProxy::TakePhoto(
TakePhotoCallback callback) { … }
void DeviceProxy::ProcessFeedback(
const ::media::VideoCaptureFeedback& in_feedback) { … }
void DeviceProxy::RequestRefreshFrame(
) { … }
class Device_GetPhotoState_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Device_GetPhotoState_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Device_GetPhotoState_ProxyToResponder::Run(
::media::mojom::PhotoStatePtr in_capabilities) { … }
class Device_SetPhotoOptions_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Device_SetPhotoOptions_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Device_SetPhotoOptions_ProxyToResponder::Run(
bool in_success) { … }
class Device_TakePhoto_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Device_TakePhoto_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Device_TakePhoto_ProxyToResponder::Run(
::media::mojom::BlobPtr in_blob) { … }
bool DeviceStubDispatch::Accept(
Device* impl,
mojo::Message* message) { … }
bool DeviceStubDispatch::AcceptWithResponder(
Device* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kDeviceValidationInfo[] = …;
bool DeviceRequestValidator::Accept(mojo::Message* message) { … }
bool DeviceResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace video_capture::mojom {
void DeviceInterceptorForTesting::Start(const ::media::VideoCaptureParams& requested_settings, ::mojo::PendingRemote<::video_capture::mojom::VideoFrameHandler> handler) { … }
void DeviceInterceptorForTesting::MaybeSuspend() { … }
void DeviceInterceptorForTesting::Resume() { … }
void DeviceInterceptorForTesting::GetPhotoState(GetPhotoStateCallback callback) { … }
void DeviceInterceptorForTesting::SetPhotoOptions(::media::mojom::PhotoSettingsPtr settings, SetPhotoOptionsCallback callback) { … }
void DeviceInterceptorForTesting::TakePhoto(TakePhotoCallback callback) { … }
void DeviceInterceptorForTesting::ProcessFeedback(const ::media::VideoCaptureFeedback& feedback) { … }
void DeviceInterceptorForTesting::RequestRefreshFrame() { … }
DeviceAsyncWaiter::DeviceAsyncWaiter(
Device* proxy) : … { … }
DeviceAsyncWaiter::~DeviceAsyncWaiter() = default;
void DeviceAsyncWaiter::GetPhotoState(
::media::mojom::PhotoStatePtr* out_capabilities) { … }
::media::mojom::PhotoStatePtr DeviceAsyncWaiter::GetPhotoState(
) { … }
void DeviceAsyncWaiter::SetPhotoOptions(
::media::mojom::PhotoSettingsPtr settings, bool* out_success) { … }
bool DeviceAsyncWaiter::SetPhotoOptions(
::media::mojom::PhotoSettingsPtr settings) { … }
void DeviceAsyncWaiter::TakePhoto(
::media::mojom::BlobPtr* out_blob) { … }
::media::mojom::BlobPtr DeviceAsyncWaiter::TakePhoto(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif