#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/attribution_reporting/registration.mojom-blink.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 "components/attribution_reporting/registration.mojom-params-data.h"
#include "components/attribution_reporting/registration.mojom-shared-message-ids.h"
#include "components/attribution_reporting/registration.mojom-blink-import-headers.h"
#include "components/attribution_reporting/registration.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace attribution_reporting::mojom::blink {
SuitableOrigin::SuitableOrigin()
: … { … }
SuitableOrigin::SuitableOrigin(
const ::scoped_refptr<const ::blink::SecurityOrigin>& origin_in)
: … { … }
SuitableOrigin::~SuitableOrigin() = default;
void SuitableOrigin::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SuitableOrigin::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FilterData::FilterData()
: … { … }
FilterData::FilterData(
const WTF::HashMap<WTF::String, WTF::Vector<WTF::String>>& filter_values_in)
: … { … }
FilterData::~FilterData() = default;
void FilterData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FilterData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FilterConfig::FilterConfig()
: … { … }
FilterConfig::FilterConfig(
std::optional<::base::TimeDelta> lookback_window_in,
const WTF::HashMap<WTF::String, WTF::Vector<WTF::String>>& filter_values_in)
: … { … }
FilterConfig::~FilterConfig() = default;
void FilterConfig::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FilterConfig::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FilterPair::FilterPair()
: … { … }
FilterPair::FilterPair(
WTF::Vector<FilterConfigPtr> positive_in,
WTF::Vector<FilterConfigPtr> negative_in)
: … { … }
FilterPair::~FilterPair() = default;
void FilterPair::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FilterPair::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregationKeys::AggregationKeys()
: … { … }
AggregationKeys::AggregationKeys(
const WTF::HashMap<WTF::String, ::absl::uint128>& keys_in)
: … { … }
AggregationKeys::~AggregationKeys() = default;
void AggregationKeys::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregationKeys::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableTriggerData::AggregatableTriggerData()
: … { … }
AggregatableTriggerData::AggregatableTriggerData(
const ::absl::uint128& key_piece_in,
WTF::Vector<WTF::String> source_keys_in,
const ::attribution_reporting::FilterPair& filters_in)
: … { … }
AggregatableTriggerData::~AggregatableTriggerData() = default;
void AggregatableTriggerData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableTriggerData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DestinationSet::DestinationSet()
: … { … }
DestinationSet::DestinationSet(
WTF::Vector<::blink::BlinkSchemefulSite> destinations_in)
: … { … }
DestinationSet::~DestinationSet() = default;
void DestinationSet::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DestinationSet::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
EventReportWindows::EventReportWindows()
: … { … }
EventReportWindows::EventReportWindows(
::base::TimeDelta start_time_in,
WTF::Vector<::base::TimeDelta> end_times_in)
: … { … }
EventReportWindows::~EventReportWindows() = default;
void EventReportWindows::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool EventReportWindows::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TriggerSpec::TriggerSpec()
: … { … }
TriggerSpec::TriggerSpec(
const ::attribution_reporting::EventReportWindows& event_report_windows_in)
: … { … }
TriggerSpec::~TriggerSpec() = default;
void TriggerSpec::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TriggerSpec::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TriggerSpecs::TriggerSpecs()
: … { … }
TriggerSpecs::TriggerSpecs(
WTF::Vector<::attribution_reporting::TriggerSpec> specs_in,
const WTF::HashMap<uint32_t, uint8_t>& trigger_data_indices_in,
int32_t max_event_level_reports_in)
: … { … }
TriggerSpecs::~TriggerSpecs() = default;
void TriggerSpecs::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TriggerSpecs::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableDebugReportingContribution::AggregatableDebugReportingContribution()
: … { … }
AggregatableDebugReportingContribution::AggregatableDebugReportingContribution(
const ::absl::uint128& key_piece_in,
uint32_t value_in)
: … { … }
AggregatableDebugReportingContribution::~AggregatableDebugReportingContribution() = default;
void AggregatableDebugReportingContribution::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableDebugReportingContribution::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableDebugReportingConfig::AggregatableDebugReportingConfig()
: … { … }
AggregatableDebugReportingConfig::AggregatableDebugReportingConfig(
const ::absl::uint128& key_piece_in,
const WTF::HashMap<::attribution_reporting::mojom::blink::DebugDataType, ::attribution_reporting::AggregatableDebugReportingContribution>& debug_data_in,
std::optional<::attribution_reporting::SuitableOrigin> aggregation_coordinator_origin_in)
: … { … }
AggregatableDebugReportingConfig::~AggregatableDebugReportingConfig() = default;
void AggregatableDebugReportingConfig::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableDebugReportingConfig::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SourceAggregatableDebugReportingConfig::SourceAggregatableDebugReportingConfig()
: … { … }
SourceAggregatableDebugReportingConfig::SourceAggregatableDebugReportingConfig(
int32_t budget_in,
const ::attribution_reporting::AggregatableDebugReportingConfig& config_in)
: … { … }
SourceAggregatableDebugReportingConfig::~SourceAggregatableDebugReportingConfig() = default;
void SourceAggregatableDebugReportingConfig::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SourceAggregatableDebugReportingConfig::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AttributionScopesSet::AttributionScopesSet()
: … { … }
AttributionScopesSet::AttributionScopesSet(
WTF::Vector<WTF::String> scopes_in)
: … { … }
AttributionScopesSet::~AttributionScopesSet() = default;
void AttributionScopesSet::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AttributionScopesSet::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AttributionScopesData::AttributionScopesData()
: … { … }
AttributionScopesData::AttributionScopesData(
const ::attribution_reporting::AttributionScopesSet& attribution_scopes_set_in,
uint32_t attribution_scope_limit_in,
uint32_t max_event_states_in)
: … { … }
AttributionScopesData::~AttributionScopesData() = default;
void AttributionScopesData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AttributionScopesData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SourceRegistration::SourceRegistration()
: … { … }
SourceRegistration::SourceRegistration(
const ::attribution_reporting::DestinationSet& destinations_in,
uint64_t source_event_id_in,
::base::TimeDelta expiry_in,
const ::attribution_reporting::TriggerSpecs& trigger_specs_in,
::base::TimeDelta aggregatable_report_window_in,
int64_t priority_in,
std::optional<uint64_t> debug_key_in,
const ::attribution_reporting::FilterData& filter_data_in,
const ::attribution_reporting::AggregationKeys& aggregation_keys_in,
bool debug_reporting_in,
::attribution_reporting::mojom::blink::TriggerDataMatching trigger_data_matching_in,
double event_level_epsilon_in,
const ::attribution_reporting::SourceAggregatableDebugReportingConfig& aggregatable_debug_reporting_config_in,
int64_t destination_limit_priority_in,
const std::optional<::attribution_reporting::AttributionScopesData>& attribution_scopes_data_in)
: … { … }
SourceRegistration::~SourceRegistration() = default;
void SourceRegistration::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SourceRegistration::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
EventTriggerData::EventTriggerData()
: … { … }
EventTriggerData::EventTriggerData(
uint64_t data_in,
int64_t priority_in,
std::optional<uint64_t> dedup_key_in,
const ::attribution_reporting::FilterPair& filters_in)
: … { … }
EventTriggerData::~EventTriggerData() = default;
void EventTriggerData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool EventTriggerData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableDedupKey::AggregatableDedupKey()
: … { … }
AggregatableDedupKey::AggregatableDedupKey(
std::optional<uint64_t> dedup_key_in,
const ::attribution_reporting::FilterPair& filters_in)
: … { … }
AggregatableDedupKey::~AggregatableDedupKey() = default;
void AggregatableDedupKey::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableDedupKey::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableValuesValue::AggregatableValuesValue()
: … { … }
AggregatableValuesValue::AggregatableValuesValue(
uint32_t value_in,
uint64_t filtering_id_in)
: … { … }
AggregatableValuesValue::~AggregatableValuesValue() = default;
void AggregatableValuesValue::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableValuesValue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableValues::AggregatableValues()
: … { … }
AggregatableValues::AggregatableValues(
const WTF::HashMap<WTF::String, ::attribution_reporting::AggregatableValuesValue>& values_in,
const ::attribution_reporting::FilterPair& filters_in)
: … { … }
AggregatableValues::~AggregatableValues() = default;
void AggregatableValues::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableValues::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TriggerRegistration::TriggerRegistration()
: … { … }
TriggerRegistration::TriggerRegistration(
WTF::Vector<::attribution_reporting::EventTriggerData> event_triggers_in,
const ::attribution_reporting::FilterPair& filters_in,
WTF::Vector<::attribution_reporting::AggregatableTriggerData> aggregatable_trigger_data_in,
WTF::Vector<::attribution_reporting::AggregatableValues> aggregatable_values_in,
std::optional<uint64_t> debug_key_in,
WTF::Vector<::attribution_reporting::AggregatableDedupKey> aggregatable_dedup_keys_in,
bool debug_reporting_in,
std::optional<::attribution_reporting::SuitableOrigin> aggregation_coordinator_origin_in,
::attribution_reporting::mojom::blink::SourceRegistrationTimeConfig source_registration_time_config_in,
const WTF::String& trigger_context_id_in,
uint8_t aggregatable_filtering_id_max_bytes_in,
const ::attribution_reporting::AggregatableDebugReportingConfig& aggregatable_debug_reporting_config_in,
const ::attribution_reporting::AttributionScopesSet& attribution_scopes_in)
: … { … }
TriggerRegistration::~TriggerRegistration() = default;
void TriggerRegistration::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TriggerRegistration::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OsRegistrationItem::OsRegistrationItem()
: … { … }
OsRegistrationItem::OsRegistrationItem(
const ::blink::KURL& url_in,
bool debug_reporting_in)
: … { … }
OsRegistrationItem::~OsRegistrationItem() = default;
void OsRegistrationItem::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool OsRegistrationItem::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
OsRegistration::OsRegistration()
: … { … }
OsRegistration::OsRegistration(
WTF::Vector<::attribution_reporting::OsRegistrationItem> items_in)
: … { … }
OsRegistration::~OsRegistration() = default;
void OsRegistration::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool OsRegistration::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::attribution_reporting::mojom::blink::SuitableOrigin::DataView, ::attribution_reporting::mojom::blink::SuitableOriginPtr>::Read(
::attribution_reporting::mojom::blink::SuitableOrigin::DataView input,
::attribution_reporting::mojom::blink::SuitableOriginPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::FilterData::DataView, ::attribution_reporting::mojom::blink::FilterDataPtr>::Read(
::attribution_reporting::mojom::blink::FilterData::DataView input,
::attribution_reporting::mojom::blink::FilterDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::FilterConfig::DataView, ::attribution_reporting::mojom::blink::FilterConfigPtr>::Read(
::attribution_reporting::mojom::blink::FilterConfig::DataView input,
::attribution_reporting::mojom::blink::FilterConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::FilterPair::DataView, ::attribution_reporting::mojom::blink::FilterPairPtr>::Read(
::attribution_reporting::mojom::blink::FilterPair::DataView input,
::attribution_reporting::mojom::blink::FilterPairPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregationKeys::DataView, ::attribution_reporting::mojom::blink::AggregationKeysPtr>::Read(
::attribution_reporting::mojom::blink::AggregationKeys::DataView input,
::attribution_reporting::mojom::blink::AggregationKeysPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableTriggerData::DataView, ::attribution_reporting::mojom::blink::AggregatableTriggerDataPtr>::Read(
::attribution_reporting::mojom::blink::AggregatableTriggerData::DataView input,
::attribution_reporting::mojom::blink::AggregatableTriggerDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::DestinationSet::DataView, ::attribution_reporting::mojom::blink::DestinationSetPtr>::Read(
::attribution_reporting::mojom::blink::DestinationSet::DataView input,
::attribution_reporting::mojom::blink::DestinationSetPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::EventReportWindows::DataView, ::attribution_reporting::mojom::blink::EventReportWindowsPtr>::Read(
::attribution_reporting::mojom::blink::EventReportWindows::DataView input,
::attribution_reporting::mojom::blink::EventReportWindowsPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::TriggerSpec::DataView, ::attribution_reporting::mojom::blink::TriggerSpecPtr>::Read(
::attribution_reporting::mojom::blink::TriggerSpec::DataView input,
::attribution_reporting::mojom::blink::TriggerSpecPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::TriggerSpecs::DataView, ::attribution_reporting::mojom::blink::TriggerSpecsPtr>::Read(
::attribution_reporting::mojom::blink::TriggerSpecs::DataView input,
::attribution_reporting::mojom::blink::TriggerSpecsPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableDebugReportingContribution::DataView, ::attribution_reporting::mojom::blink::AggregatableDebugReportingContributionPtr>::Read(
::attribution_reporting::mojom::blink::AggregatableDebugReportingContribution::DataView input,
::attribution_reporting::mojom::blink::AggregatableDebugReportingContributionPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableDebugReportingConfig::DataView, ::attribution_reporting::mojom::blink::AggregatableDebugReportingConfigPtr>::Read(
::attribution_reporting::mojom::blink::AggregatableDebugReportingConfig::DataView input,
::attribution_reporting::mojom::blink::AggregatableDebugReportingConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::SourceAggregatableDebugReportingConfig::DataView, ::attribution_reporting::mojom::blink::SourceAggregatableDebugReportingConfigPtr>::Read(
::attribution_reporting::mojom::blink::SourceAggregatableDebugReportingConfig::DataView input,
::attribution_reporting::mojom::blink::SourceAggregatableDebugReportingConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AttributionScopesSet::DataView, ::attribution_reporting::mojom::blink::AttributionScopesSetPtr>::Read(
::attribution_reporting::mojom::blink::AttributionScopesSet::DataView input,
::attribution_reporting::mojom::blink::AttributionScopesSetPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AttributionScopesData::DataView, ::attribution_reporting::mojom::blink::AttributionScopesDataPtr>::Read(
::attribution_reporting::mojom::blink::AttributionScopesData::DataView input,
::attribution_reporting::mojom::blink::AttributionScopesDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::SourceRegistration::DataView, ::attribution_reporting::mojom::blink::SourceRegistrationPtr>::Read(
::attribution_reporting::mojom::blink::SourceRegistration::DataView input,
::attribution_reporting::mojom::blink::SourceRegistrationPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::EventTriggerData::DataView, ::attribution_reporting::mojom::blink::EventTriggerDataPtr>::Read(
::attribution_reporting::mojom::blink::EventTriggerData::DataView input,
::attribution_reporting::mojom::blink::EventTriggerDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableDedupKey::DataView, ::attribution_reporting::mojom::blink::AggregatableDedupKeyPtr>::Read(
::attribution_reporting::mojom::blink::AggregatableDedupKey::DataView input,
::attribution_reporting::mojom::blink::AggregatableDedupKeyPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableValuesValue::DataView, ::attribution_reporting::mojom::blink::AggregatableValuesValuePtr>::Read(
::attribution_reporting::mojom::blink::AggregatableValuesValue::DataView input,
::attribution_reporting::mojom::blink::AggregatableValuesValuePtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::AggregatableValues::DataView, ::attribution_reporting::mojom::blink::AggregatableValuesPtr>::Read(
::attribution_reporting::mojom::blink::AggregatableValues::DataView input,
::attribution_reporting::mojom::blink::AggregatableValuesPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::TriggerRegistration::DataView, ::attribution_reporting::mojom::blink::TriggerRegistrationPtr>::Read(
::attribution_reporting::mojom::blink::TriggerRegistration::DataView input,
::attribution_reporting::mojom::blink::TriggerRegistrationPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::OsRegistrationItem::DataView, ::attribution_reporting::mojom::blink::OsRegistrationItemPtr>::Read(
::attribution_reporting::mojom::blink::OsRegistrationItem::DataView input,
::attribution_reporting::mojom::blink::OsRegistrationItemPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::blink::OsRegistration::DataView, ::attribution_reporting::mojom::blink::OsRegistrationPtr>::Read(
::attribution_reporting::mojom::blink::OsRegistration::DataView input,
::attribution_reporting::mojom::blink::OsRegistrationPtr* output) { … }
}
namespace attribution_reporting::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif