#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/attribution_reporting/registration.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 "components/attribution_reporting/registration.mojom-params-data.h"
#include "components/attribution_reporting/registration.mojom-shared-message-ids.h"
#include "components/attribution_reporting/registration.mojom-import-headers.h"
#include "components/attribution_reporting/registration.mojom-test-utils.h"
namespace attribution_reporting::mojom {
SuitableOrigin::SuitableOrigin()
: … { … }
SuitableOrigin::SuitableOrigin(
const ::url::Origin& 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 base::flat_map<std::string, std::vector<std::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 base::flat_map<std::string, std::vector<std::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(
std::vector<FilterConfigPtr> positive_in,
std::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 base::flat_map<std::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,
std::vector<std::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(
std::vector<::net::SchemefulSite> 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,
std::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(
std::vector<::attribution_reporting::TriggerSpec> specs_in,
const base::flat_map<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 base::flat_map<::attribution_reporting::mojom::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(
std::vector<std::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::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 base::flat_map<std::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(
std::vector<::attribution_reporting::EventTriggerData> event_triggers_in,
const ::attribution_reporting::FilterPair& filters_in,
std::vector<::attribution_reporting::AggregatableTriggerData> aggregatable_trigger_data_in,
std::vector<::attribution_reporting::AggregatableValues> aggregatable_values_in,
std::optional<uint64_t> debug_key_in,
std::vector<::attribution_reporting::AggregatableDedupKey> aggregatable_dedup_keys_in,
bool debug_reporting_in,
std::optional<::attribution_reporting::SuitableOrigin> aggregation_coordinator_origin_in,
::attribution_reporting::mojom::SourceRegistrationTimeConfig source_registration_time_config_in,
const std::optional<std::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 ::GURL& 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(
std::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::SuitableOrigin::DataView, ::attribution_reporting::mojom::SuitableOriginPtr>::Read(
::attribution_reporting::mojom::SuitableOrigin::DataView input,
::attribution_reporting::mojom::SuitableOriginPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::FilterData::DataView, ::attribution_reporting::mojom::FilterDataPtr>::Read(
::attribution_reporting::mojom::FilterData::DataView input,
::attribution_reporting::mojom::FilterDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::FilterConfig::DataView, ::attribution_reporting::mojom::FilterConfigPtr>::Read(
::attribution_reporting::mojom::FilterConfig::DataView input,
::attribution_reporting::mojom::FilterConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::FilterPair::DataView, ::attribution_reporting::mojom::FilterPairPtr>::Read(
::attribution_reporting::mojom::FilterPair::DataView input,
::attribution_reporting::mojom::FilterPairPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregationKeys::DataView, ::attribution_reporting::mojom::AggregationKeysPtr>::Read(
::attribution_reporting::mojom::AggregationKeys::DataView input,
::attribution_reporting::mojom::AggregationKeysPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableTriggerData::DataView, ::attribution_reporting::mojom::AggregatableTriggerDataPtr>::Read(
::attribution_reporting::mojom::AggregatableTriggerData::DataView input,
::attribution_reporting::mojom::AggregatableTriggerDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::DestinationSet::DataView, ::attribution_reporting::mojom::DestinationSetPtr>::Read(
::attribution_reporting::mojom::DestinationSet::DataView input,
::attribution_reporting::mojom::DestinationSetPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::EventReportWindows::DataView, ::attribution_reporting::mojom::EventReportWindowsPtr>::Read(
::attribution_reporting::mojom::EventReportWindows::DataView input,
::attribution_reporting::mojom::EventReportWindowsPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::TriggerSpec::DataView, ::attribution_reporting::mojom::TriggerSpecPtr>::Read(
::attribution_reporting::mojom::TriggerSpec::DataView input,
::attribution_reporting::mojom::TriggerSpecPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::TriggerSpecs::DataView, ::attribution_reporting::mojom::TriggerSpecsPtr>::Read(
::attribution_reporting::mojom::TriggerSpecs::DataView input,
::attribution_reporting::mojom::TriggerSpecsPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableDebugReportingContribution::DataView, ::attribution_reporting::mojom::AggregatableDebugReportingContributionPtr>::Read(
::attribution_reporting::mojom::AggregatableDebugReportingContribution::DataView input,
::attribution_reporting::mojom::AggregatableDebugReportingContributionPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableDebugReportingConfig::DataView, ::attribution_reporting::mojom::AggregatableDebugReportingConfigPtr>::Read(
::attribution_reporting::mojom::AggregatableDebugReportingConfig::DataView input,
::attribution_reporting::mojom::AggregatableDebugReportingConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::SourceAggregatableDebugReportingConfig::DataView, ::attribution_reporting::mojom::SourceAggregatableDebugReportingConfigPtr>::Read(
::attribution_reporting::mojom::SourceAggregatableDebugReportingConfig::DataView input,
::attribution_reporting::mojom::SourceAggregatableDebugReportingConfigPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AttributionScopesSet::DataView, ::attribution_reporting::mojom::AttributionScopesSetPtr>::Read(
::attribution_reporting::mojom::AttributionScopesSet::DataView input,
::attribution_reporting::mojom::AttributionScopesSetPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AttributionScopesData::DataView, ::attribution_reporting::mojom::AttributionScopesDataPtr>::Read(
::attribution_reporting::mojom::AttributionScopesData::DataView input,
::attribution_reporting::mojom::AttributionScopesDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::SourceRegistration::DataView, ::attribution_reporting::mojom::SourceRegistrationPtr>::Read(
::attribution_reporting::mojom::SourceRegistration::DataView input,
::attribution_reporting::mojom::SourceRegistrationPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::EventTriggerData::DataView, ::attribution_reporting::mojom::EventTriggerDataPtr>::Read(
::attribution_reporting::mojom::EventTriggerData::DataView input,
::attribution_reporting::mojom::EventTriggerDataPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableDedupKey::DataView, ::attribution_reporting::mojom::AggregatableDedupKeyPtr>::Read(
::attribution_reporting::mojom::AggregatableDedupKey::DataView input,
::attribution_reporting::mojom::AggregatableDedupKeyPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableValuesValue::DataView, ::attribution_reporting::mojom::AggregatableValuesValuePtr>::Read(
::attribution_reporting::mojom::AggregatableValuesValue::DataView input,
::attribution_reporting::mojom::AggregatableValuesValuePtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::AggregatableValues::DataView, ::attribution_reporting::mojom::AggregatableValuesPtr>::Read(
::attribution_reporting::mojom::AggregatableValues::DataView input,
::attribution_reporting::mojom::AggregatableValuesPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::TriggerRegistration::DataView, ::attribution_reporting::mojom::TriggerRegistrationPtr>::Read(
::attribution_reporting::mojom::TriggerRegistration::DataView input,
::attribution_reporting::mojom::TriggerRegistrationPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::OsRegistrationItem::DataView, ::attribution_reporting::mojom::OsRegistrationItemPtr>::Read(
::attribution_reporting::mojom::OsRegistrationItem::DataView input,
::attribution_reporting::mojom::OsRegistrationItemPtr* output) { … }
bool StructTraits<::attribution_reporting::mojom::OsRegistration::DataView, ::attribution_reporting::mojom::OsRegistrationPtr>::Read(
::attribution_reporting::mojom::OsRegistration::DataView input,
::attribution_reporting::mojom::OsRegistrationPtr* output) { … }
}
namespace attribution_reporting::mojom {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif