chromium/components/attribution_reporting/registration_mojom_traits.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/attribution_reporting/registration_mojom_traits.h"

#include <stdint.h>

#include <optional>
#include <string>
#include <utility>
#include <vector>

#include "base/containers/flat_set.h"
#include "base/time/time.h"
#include "base/uuid.h"
#include "components/attribution_reporting/aggregatable_debug_reporting_config.h"
#include "components/attribution_reporting/aggregatable_dedup_key.h"
#include "components/attribution_reporting/aggregatable_filtering_id_max_bytes.h"
#include "components/attribution_reporting/aggregatable_trigger_config.h"
#include "components/attribution_reporting/aggregatable_trigger_data.h"
#include "components/attribution_reporting/aggregatable_values.h"
#include "components/attribution_reporting/aggregation_keys.h"
#include "components/attribution_reporting/attribution_scopes_data.h"
#include "components/attribution_reporting/attribution_scopes_set.h"
#include "components/attribution_reporting/destination_set.h"
#include "components/attribution_reporting/event_level_epsilon.h"
#include "components/attribution_reporting/event_report_windows.h"
#include "components/attribution_reporting/event_trigger_data.h"
#include "components/attribution_reporting/filters.h"
#include "components/attribution_reporting/max_event_level_reports.h"
#include "components/attribution_reporting/os_registration.h"
#include "components/attribution_reporting/registration.mojom-shared.h"
#include "components/attribution_reporting/source_registration.h"
#include "components/attribution_reporting/suitable_origin.h"
#include "components/attribution_reporting/trigger_config.h"
#include "components/attribution_reporting/trigger_registration.h"
#include "mojo/public/cpp/base/int128_mojom_traits.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "net/base/schemeful_site.h"
#include "services/network/public/cpp/schemeful_site_mojom_traits.h"
#include "third_party/abseil-cpp/absl/numeric/int128.h"
#include "url/mojom/origin_mojom_traits.h"
#include "url/origin.h"

namespace mojo {

// static
bool StructTraits<attribution_reporting::mojom::SuitableOriginDataView,
                  attribution_reporting::SuitableOrigin>::
    Read(attribution_reporting::mojom::SuitableOriginDataView data,
         attribution_reporting::SuitableOrigin* out) {}

// static
bool StructTraits<attribution_reporting::mojom::FilterDataDataView,
                  attribution_reporting::FilterData>::
    Read(attribution_reporting::mojom::FilterDataDataView data,
         attribution_reporting::FilterData* out) {}

// static
bool StructTraits<attribution_reporting::mojom::FilterConfigDataView,
                  attribution_reporting::FilterConfig>::
    Read(attribution_reporting::mojom::FilterConfigDataView data,
         attribution_reporting::FilterConfig* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AggregationKeysDataView,
                  attribution_reporting::AggregationKeys>::
    Read(attribution_reporting::mojom::AggregationKeysDataView data,
         attribution_reporting::AggregationKeys* out) {}

// static
bool StructTraits<attribution_reporting::mojom::DestinationSetDataView,
                  attribution_reporting::DestinationSet>::
    Read(attribution_reporting::mojom::DestinationSetDataView data,
         attribution_reporting::DestinationSet* out) {}

// static
bool StructTraits<attribution_reporting::mojom::EventReportWindowsDataView,
                  attribution_reporting::EventReportWindows>::
    Read(attribution_reporting::mojom::EventReportWindowsDataView data,
         attribution_reporting::EventReportWindows* out) {}

// static
bool StructTraits<attribution_reporting::mojom::TriggerSpecDataView,
                  attribution_reporting::TriggerSpec>::
    Read(attribution_reporting::mojom::TriggerSpecDataView data,
         attribution_reporting::TriggerSpec* out) {}

// static
bool StructTraits<attribution_reporting::mojom::TriggerSpecsDataView,
                  attribution_reporting::TriggerSpecs>::
    Read(attribution_reporting::mojom::TriggerSpecsDataView data,
         attribution_reporting::TriggerSpecs* out) {}

// static
bool StructTraits<
    attribution_reporting::mojom::
        AggregatableDebugReportingContributionDataView,
    attribution_reporting::AggregatableDebugReportingContribution>::
    Read(attribution_reporting::mojom::
             AggregatableDebugReportingContributionDataView data,
         attribution_reporting::AggregatableDebugReportingContribution* out) {}

// static
bool StructTraits<
    attribution_reporting::mojom::AggregatableDebugReportingConfigDataView,
    attribution_reporting::AggregatableDebugReportingConfig>::
    Read(attribution_reporting::mojom::AggregatableDebugReportingConfigDataView
             data,
         attribution_reporting::AggregatableDebugReportingConfig* out) {}

// static
bool StructTraits<
    attribution_reporting::mojom::
        SourceAggregatableDebugReportingConfigDataView,
    attribution_reporting::SourceAggregatableDebugReportingConfig>::
    Read(attribution_reporting::mojom::
             SourceAggregatableDebugReportingConfigDataView data,
         attribution_reporting::SourceAggregatableDebugReportingConfig* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AttributionScopesSetDataView,
                  attribution_reporting::AttributionScopesSet>::
    Read(attribution_reporting::mojom::AttributionScopesSetDataView data,
         attribution_reporting::AttributionScopesSet* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AttributionScopesDataDataView,
                  attribution_reporting::AttributionScopesData>::
    Read(attribution_reporting::mojom::AttributionScopesDataDataView data,
         attribution_reporting::AttributionScopesData* out) {}

// static
bool StructTraits<attribution_reporting::mojom::SourceRegistrationDataView,
                  attribution_reporting::SourceRegistration>::
    Read(attribution_reporting::mojom::SourceRegistrationDataView data,
         attribution_reporting::SourceRegistration* out) {}

// static
bool StructTraits<attribution_reporting::mojom::FilterPairDataView,
                  attribution_reporting::FilterPair>::
    Read(attribution_reporting::mojom::FilterPairDataView data,
         attribution_reporting::FilterPair* out) {}

// static
bool StructTraits<attribution_reporting::mojom::EventTriggerDataDataView,
                  attribution_reporting::EventTriggerData>::
    Read(attribution_reporting::mojom::EventTriggerDataDataView data,
         attribution_reporting::EventTriggerData* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AggregatableTriggerDataDataView,
                  attribution_reporting::AggregatableTriggerData>::
    Read(attribution_reporting::mojom::AggregatableTriggerDataDataView data,
         attribution_reporting::AggregatableTriggerData* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AggregatableDedupKeyDataView,
                  attribution_reporting::AggregatableDedupKey>::
    Read(attribution_reporting::mojom::AggregatableDedupKeyDataView data,
         attribution_reporting::AggregatableDedupKey* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AggregatableValuesValueDataView,
                  attribution_reporting::AggregatableValuesValue>::
    Read(attribution_reporting::mojom::AggregatableValuesValueDataView data,
         attribution_reporting::AggregatableValuesValue* out) {}

// static
bool StructTraits<attribution_reporting::mojom::AggregatableValuesDataView,
                  attribution_reporting::AggregatableValues>::
    Read(attribution_reporting::mojom::AggregatableValuesDataView data,
         attribution_reporting::AggregatableValues* out) {}

// static
bool StructTraits<attribution_reporting::mojom::TriggerRegistrationDataView,
                  attribution_reporting::TriggerRegistration>::
    Read(attribution_reporting::mojom::TriggerRegistrationDataView data,
         attribution_reporting::TriggerRegistration* out) {}

// static
bool StructTraits<attribution_reporting::mojom::OsRegistrationItemDataView,
                  attribution_reporting::OsRegistrationItem>::
    Read(attribution_reporting::mojom::OsRegistrationItemDataView data,
         attribution_reporting::OsRegistrationItem* out) {}

}  // namespace mojo