#include "third_party/blink/public/mojom/mediastream/media_devices.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "third_party/blink/public/mojom/mediastream/media_devices.mojom-params-data.h"
namespace blink {
namespace mojom {
NOINLINE static const char* MediaDeviceTypeToStringHelper(MediaDeviceType value) { … }
std::string MediaDeviceTypeToString(MediaDeviceType value) { … }
std::ostream& operator<<(std::ostream& os, MediaDeviceType value) { … }
NOINLINE static const char* FacingModeToStringHelper(FacingMode value) { … }
std::string FacingModeToString(FacingMode value) { … }
std::ostream& operator<<(std::ostream& os, FacingMode value) { … }
namespace internal {
bool MediaDeviceInfo_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDeviceInfo_Data::MediaDeviceInfo_Data()
: … { … }
bool VideoInputDeviceCapabilities_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
VideoInputDeviceCapabilities_Data::VideoInputDeviceCapabilities_Data()
: … { … }
bool AudioInputDeviceCapabilities_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AudioInputDeviceCapabilities_Data::AudioInputDeviceCapabilities_Data()
: … { … }
bool MediaDevicesDispatcherHost_EnumerateDevices_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_EnumerateDevices_Params_Data::MediaDevicesDispatcherHost_EnumerateDevices_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_EnumerateDevices_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_EnumerateDevices_ResponseParams_Data::MediaDevicesDispatcherHost_EnumerateDevices_ResponseParams_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetVideoInputCapabilities_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetVideoInputCapabilities_Params_Data::MediaDevicesDispatcherHost_GetVideoInputCapabilities_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetVideoInputCapabilities_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetVideoInputCapabilities_ResponseParams_Data::MediaDevicesDispatcherHost_GetVideoInputCapabilities_ResponseParams_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_Params_Data::MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_ResponseParams_Data::MediaDevicesDispatcherHost_GetAllVideoInputDeviceFormats_ResponseParams_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_Params_Data::MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_ResponseParams_Data::MediaDevicesDispatcherHost_GetAvailableVideoInputDeviceFormats_ResponseParams_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAudioInputCapabilities_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAudioInputCapabilities_Params_Data::MediaDevicesDispatcherHost_GetAudioInputCapabilities_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_GetAudioInputCapabilities_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_GetAudioInputCapabilities_ResponseParams_Data::MediaDevicesDispatcherHost_GetAudioInputCapabilities_ResponseParams_Data()
: … { … }
bool MediaDevicesDispatcherHost_AddMediaDevicesListener_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_AddMediaDevicesListener_Params_Data::MediaDevicesDispatcherHost_AddMediaDevicesListener_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_SetCaptureHandleConfig_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_SetCaptureHandleConfig_Params_Data::MediaDevicesDispatcherHost_SetCaptureHandleConfig_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_CloseFocusWindowOfOpportunity_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_CloseFocusWindowOfOpportunity_Params_Data::MediaDevicesDispatcherHost_CloseFocusWindowOfOpportunity_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_Params_Data::MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_Params_Data()
: … { … }
bool MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_ResponseParams_Data::MediaDevicesDispatcherHost_ProduceSubCaptureTargetId_ResponseParams_Data()
: … { … }
bool MediaDevicesListener_OnDevicesChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaDevicesListener_OnDevicesChanged_Params_Data::MediaDevicesListener_OnDevicesChanged_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::MediaDeviceType>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::MediaDeviceType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::FacingMode>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::FacingMode value) { … }
}