#include "third_party/blink/public/mojom/bluetooth/web_bluetooth.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/bluetooth/web_bluetooth.mojom-params-data.h"
namespace blink {
namespace mojom {
NOINLINE static const char* WebBluetoothResultToStringHelper(WebBluetoothResult value) { … }
std::string WebBluetoothResultToString(WebBluetoothResult value) { … }
std::ostream& operator<<(std::ostream& os, WebBluetoothResult value) { … }
NOINLINE static const char* WebBluetoothGATTQueryQuantityToStringHelper(WebBluetoothGATTQueryQuantity value) { … }
std::string WebBluetoothGATTQueryQuantityToString(WebBluetoothGATTQueryQuantity value) { … }
std::ostream& operator<<(std::ostream& os, WebBluetoothGATTQueryQuantity value) { … }
NOINLINE static const char* WebBluetoothWriteTypeToStringHelper(WebBluetoothWriteType value) { … }
std::string WebBluetoothWriteTypeToString(WebBluetoothWriteType value) { … }
std::ostream& operator<<(std::ostream& os, WebBluetoothWriteType value) { … }
namespace internal {
bool WebBluetoothLeScanFilter_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothLeScanFilter_Data::WebBluetoothLeScanFilter_Data()
: … { … }
bool WebBluetoothCompany_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothCompany_Data::WebBluetoothCompany_Data()
: … { … }
bool WebBluetoothDataFilter_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothDataFilter_Data::WebBluetoothDataFilter_Data()
: … { … }
bool WebBluetoothRequestDeviceOptions_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothRequestDeviceOptions_Data::WebBluetoothRequestDeviceOptions_Data()
: … { … }
bool WebBluetoothRequestLEScanOptions_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothRequestLEScanOptions_Data::WebBluetoothRequestLEScanOptions_Data()
: … { … }
bool WebBluetoothDeviceId_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothDeviceId_Data::WebBluetoothDeviceId_Data()
: … { … }
bool WebBluetoothDevice_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothDevice_Data::WebBluetoothDevice_Data()
: … { … }
bool WebBluetoothRemoteGATTService_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothRemoteGATTService_Data::WebBluetoothRemoteGATTService_Data()
: … { … }
bool WebBluetoothRemoteGATTCharacteristic_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothRemoteGATTCharacteristic_Data::WebBluetoothRemoteGATTCharacteristic_Data()
: … { … }
bool WebBluetoothAdvertisingEvent_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothAdvertisingEvent_Data::WebBluetoothAdvertisingEvent_Data()
: … { … }
bool WebBluetoothRemoteGATTDescriptor_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothRemoteGATTDescriptor_Data::WebBluetoothRemoteGATTDescriptor_Data()
: … { … }
bool WebBluetoothService_GetAvailability_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_GetAvailability_Params_Data::WebBluetoothService_GetAvailability_Params_Data()
: … { … }
bool WebBluetoothService_GetAvailability_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_GetAvailability_ResponseParams_Data::WebBluetoothService_GetAvailability_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RequestDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RequestDevice_Params_Data::WebBluetoothService_RequestDevice_Params_Data()
: … { … }
bool WebBluetoothService_RequestDevice_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RequestDevice_ResponseParams_Data::WebBluetoothService_RequestDevice_ResponseParams_Data()
: … { … }
bool WebBluetoothService_GetDevices_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_GetDevices_Params_Data::WebBluetoothService_GetDevices_Params_Data()
: … { … }
bool WebBluetoothService_GetDevices_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_GetDevices_ResponseParams_Data::WebBluetoothService_GetDevices_ResponseParams_Data()
: … { … }
bool WebBluetoothService_ForgetDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_ForgetDevice_Params_Data::WebBluetoothService_ForgetDevice_Params_Data()
: … { … }
bool WebBluetoothService_ForgetDevice_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_ForgetDevice_ResponseParams_Data::WebBluetoothService_ForgetDevice_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteServerConnect_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServerConnect_Params_Data::WebBluetoothService_RemoteServerConnect_Params_Data()
: … { … }
bool WebBluetoothService_RemoteServerConnect_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServerConnect_ResponseParams_Data::WebBluetoothService_RemoteServerConnect_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteServerDisconnect_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServerDisconnect_Params_Data::WebBluetoothService_RemoteServerDisconnect_Params_Data()
: … { … }
bool WebBluetoothService_RemoteServerGetPrimaryServices_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServerGetPrimaryServices_Params_Data::WebBluetoothService_RemoteServerGetPrimaryServices_Params_Data()
: … { … }
bool WebBluetoothService_RemoteServerGetPrimaryServices_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServerGetPrimaryServices_ResponseParams_Data::WebBluetoothService_RemoteServerGetPrimaryServices_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteServiceGetCharacteristics_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServiceGetCharacteristics_Params_Data::WebBluetoothService_RemoteServiceGetCharacteristics_Params_Data()
: … { … }
bool WebBluetoothService_RemoteServiceGetCharacteristics_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteServiceGetCharacteristics_ResponseParams_Data::WebBluetoothService_RemoteServiceGetCharacteristics_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicReadValue_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicReadValue_Params_Data::WebBluetoothService_RemoteCharacteristicReadValue_Params_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicReadValue_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicReadValue_ResponseParams_Data::WebBluetoothService_RemoteCharacteristicReadValue_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicWriteValue_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicWriteValue_Params_Data::WebBluetoothService_RemoteCharacteristicWriteValue_Params_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicWriteValue_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicWriteValue_ResponseParams_Data::WebBluetoothService_RemoteCharacteristicWriteValue_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicStartNotifications_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicStartNotifications_Params_Data::WebBluetoothService_RemoteCharacteristicStartNotifications_Params_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicStartNotifications_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicStartNotifications_ResponseParams_Data::WebBluetoothService_RemoteCharacteristicStartNotifications_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicStopNotifications_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicStopNotifications_Params_Data::WebBluetoothService_RemoteCharacteristicStopNotifications_Params_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicStopNotifications_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicStopNotifications_ResponseParams_Data::WebBluetoothService_RemoteCharacteristicStopNotifications_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicGetDescriptors_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicGetDescriptors_Params_Data::WebBluetoothService_RemoteCharacteristicGetDescriptors_Params_Data()
: … { … }
bool WebBluetoothService_RemoteCharacteristicGetDescriptors_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteCharacteristicGetDescriptors_ResponseParams_Data::WebBluetoothService_RemoteCharacteristicGetDescriptors_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteDescriptorReadValue_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteDescriptorReadValue_Params_Data::WebBluetoothService_RemoteDescriptorReadValue_Params_Data()
: … { … }
bool WebBluetoothService_RemoteDescriptorReadValue_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteDescriptorReadValue_ResponseParams_Data::WebBluetoothService_RemoteDescriptorReadValue_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RemoteDescriptorWriteValue_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteDescriptorWriteValue_Params_Data::WebBluetoothService_RemoteDescriptorWriteValue_Params_Data()
: … { … }
bool WebBluetoothService_RemoteDescriptorWriteValue_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RemoteDescriptorWriteValue_ResponseParams_Data::WebBluetoothService_RemoteDescriptorWriteValue_ResponseParams_Data()
: … { … }
bool WebBluetoothService_RequestScanningStart_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RequestScanningStart_Params_Data::WebBluetoothService_RequestScanningStart_Params_Data()
: … { … }
bool WebBluetoothService_RequestScanningStart_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_RequestScanningStart_ResponseParams_Data::WebBluetoothService_RequestScanningStart_ResponseParams_Data()
: … { … }
bool WebBluetoothService_WatchAdvertisementsForDevice_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_WatchAdvertisementsForDevice_Params_Data::WebBluetoothService_WatchAdvertisementsForDevice_Params_Data()
: … { … }
bool WebBluetoothService_WatchAdvertisementsForDevice_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothService_WatchAdvertisementsForDevice_ResponseParams_Data::WebBluetoothService_WatchAdvertisementsForDevice_ResponseParams_Data()
: … { … }
bool WebBluetoothServerClient_GATTServerDisconnected_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothServerClient_GATTServerDisconnected_Params_Data::WebBluetoothServerClient_GATTServerDisconnected_Params_Data()
: … { … }
bool WebBluetoothCharacteristicClient_RemoteCharacteristicValueChanged_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothCharacteristicClient_RemoteCharacteristicValueChanged_Params_Data::WebBluetoothCharacteristicClient_RemoteCharacteristicValueChanged_Params_Data()
: … { … }
bool WebBluetoothAdvertisementClient_AdvertisingEvent_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebBluetoothAdvertisementClient_AdvertisingEvent_Params_Data::WebBluetoothAdvertisementClient_AdvertisingEvent_Params_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::WebBluetoothResult>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::WebBluetoothResult value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::WebBluetoothGATTQueryQuantity>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::WebBluetoothGATTQueryQuantity value) { … }
}
namespace perfetto {
void TraceFormatTraits<::blink::mojom::WebBluetoothWriteType>::WriteIntoTrace(
perfetto::TracedValue context, ::blink::mojom::WebBluetoothWriteType value) { … }
}