#include "third_party/blink/public/mojom/mediastream/media_stream.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_stream.mojom-params-data.h"
namespace blink {
namespace mojom {
NOINLINE static const char* MediaStreamTypeToStringHelper(MediaStreamType value) { … }
std::string MediaStreamTypeToString(MediaStreamType value) { … }
std::ostream& operator<<(std::ostream& os, MediaStreamType value) { … }
NOINLINE static const char* MediaStreamRequestResultToStringHelper(MediaStreamRequestResult value) { … }
std::string MediaStreamRequestResultToString(MediaStreamRequestResult value) { … }
std::ostream& operator<<(std::ostream& os, MediaStreamRequestResult value) { … }
NOINLINE static const char* MediaStreamStateChangeToStringHelper(MediaStreamStateChange value) { … }
std::string MediaStreamStateChangeToString(MediaStreamStateChange value) { … }
std::ostream& operator<<(std::ostream& os, MediaStreamStateChange value) { … }
NOINLINE static const char* PreferredDisplaySurfaceToStringHelper(PreferredDisplaySurface value) { … }
std::string PreferredDisplaySurfaceToString(PreferredDisplaySurface value) { … }
std::ostream& operator<<(std::ostream& os, PreferredDisplaySurface value) { … }
NOINLINE static const char* CapturedSurfaceControlResultToStringHelper(CapturedSurfaceControlResult value) { … }
std::string CapturedSurfaceControlResultToString(CapturedSurfaceControlResult value) { … }
std::ostream& operator<<(std::ostream& os, CapturedSurfaceControlResult value) { … }
namespace internal {
bool StreamSelectionInfo_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context,
bool inlined) { … }
bool SearchOnlyByDeviceId_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SearchOnlyByDeviceId_Data::SearchOnlyByDeviceId_Data()
: … { … }
bool SearchBySessionId_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SearchBySessionId_Data::SearchBySessionId_Data()
: … { … }
bool MediaStreamDevice_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDevice_Data::MediaStreamDevice_Data()
: … { … }
bool TrackControls_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TrackControls_Data::TrackControls_Data()
: … { … }
bool StreamControls_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
StreamControls_Data::StreamControls_Data()
: … { … }
bool GetOpenDeviceResponse_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GetOpenDeviceResponse_Data::GetOpenDeviceResponse_Data()
: … { … }
bool CapturedWheelAction_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CapturedWheelAction_Data::CapturedWheelAction_Data()
: … { … }
bool StreamDevices_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
StreamDevices_Data::StreamDevices_Data()
: … { … }
bool StreamDevicesSet_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
StreamDevicesSet_Data::StreamDevicesSet_Data()
: … { … }
bool MediaStreamDeviceObserver_OnDeviceStopped_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnDeviceStopped_Params_Data::MediaStreamDeviceObserver_OnDeviceStopped_Params_Data()
: … { … }
bool MediaStreamDeviceObserver_OnDeviceChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnDeviceChanged_Params_Data::MediaStreamDeviceObserver_OnDeviceChanged_Params_Data()
: … { … }
bool MediaStreamDeviceObserver_OnDeviceRequestStateChange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnDeviceRequestStateChange_Params_Data::MediaStreamDeviceObserver_OnDeviceRequestStateChange_Params_Data()
: … { … }
bool MediaStreamDeviceObserver_OnDeviceCaptureConfigurationChange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnDeviceCaptureConfigurationChange_Params_Data::MediaStreamDeviceObserver_OnDeviceCaptureConfigurationChange_Params_Data()
: … { … }
bool MediaStreamDeviceObserver_OnDeviceCaptureHandleChange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnDeviceCaptureHandleChange_Params_Data::MediaStreamDeviceObserver_OnDeviceCaptureHandleChange_Params_Data()
: … { … }
bool MediaStreamDeviceObserver_OnZoomLevelChange_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDeviceObserver_OnZoomLevelChange_Params_Data::MediaStreamDeviceObserver_OnZoomLevelChange_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_GenerateStreams_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_GenerateStreams_Params_Data::MediaStreamDispatcherHost_GenerateStreams_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_GenerateStreams_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_GenerateStreams_ResponseParams_Data::MediaStreamDispatcherHost_GenerateStreams_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_FocusCapturedSurface_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_FocusCapturedSurface_Params_Data::MediaStreamDispatcherHost_FocusCapturedSurface_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_CancelRequest_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_CancelRequest_Params_Data::MediaStreamDispatcherHost_CancelRequest_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_StopStreamDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_StopStreamDevice_Params_Data::MediaStreamDispatcherHost_StopStreamDevice_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_OpenDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_OpenDevice_Params_Data::MediaStreamDispatcherHost_OpenDevice_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_OpenDevice_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_OpenDevice_ResponseParams_Data::MediaStreamDispatcherHost_OpenDevice_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_CloseDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_CloseDevice_Params_Data::MediaStreamDispatcherHost_CloseDevice_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_SetCapturingLinkSecured_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_SetCapturingLinkSecured_Params_Data::MediaStreamDispatcherHost_SetCapturingLinkSecured_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_ApplySubCaptureTarget_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_ApplySubCaptureTarget_Params_Data::MediaStreamDispatcherHost_ApplySubCaptureTarget_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_ApplySubCaptureTarget_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_ApplySubCaptureTarget_ResponseParams_Data::MediaStreamDispatcherHost_ApplySubCaptureTarget_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_SendWheel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_SendWheel_Params_Data::MediaStreamDispatcherHost_SendWheel_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_SendWheel_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_SendWheel_ResponseParams_Data::MediaStreamDispatcherHost_SendWheel_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_SetZoomLevel_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_SetZoomLevel_Params_Data::MediaStreamDispatcherHost_SetZoomLevel_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_SetZoomLevel_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_SetZoomLevel_ResponseParams_Data::MediaStreamDispatcherHost_SetZoomLevel_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_Params_Data::MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_ResponseParams_Data::MediaStreamDispatcherHost_RequestCapturedSurfaceControlPermission_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_GetOpenDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_GetOpenDevice_Params_Data::MediaStreamDispatcherHost_GetOpenDevice_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_GetOpenDevice_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_GetOpenDevice_ResponseParams_Data::MediaStreamDispatcherHost_GetOpenDevice_ResponseParams_Data()
: … { … }
bool MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_Params_Data::MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_Params_Data()
: … { … }
bool MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_ResponseParams_Data::MediaStreamDispatcherHost_KeepDeviceAliveForTransfer_ResponseParams_Data()
: … { … }
bool MediaStreamTrackMetricsHost_AddTrack_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamTrackMetricsHost_AddTrack_Params_Data::MediaStreamTrackMetricsHost_AddTrack_Params_Data()
: … { … }
bool MediaStreamTrackMetricsHost_RemoveTrack_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaStreamTrackMetricsHost_RemoveTrack_Params_Data::MediaStreamTrackMetricsHost_RemoveTrack_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::MediaStreamType>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::MediaStreamType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::MediaStreamRequestResult>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::MediaStreamRequestResult value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::MediaStreamStateChange>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::MediaStreamStateChange value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::PreferredDisplaySurface>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::PreferredDisplaySurface value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::CapturedSurfaceControlResult>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::CapturedSurfaceControlResult value) { … }
}