#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "content/browser/private_aggregation/private_aggregation_internals.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 "content/browser/private_aggregation/private_aggregation_internals.mojom-params-data.h"
#include "content/browser/private_aggregation/private_aggregation_internals.mojom-shared-message-ids.h"
#include "content/browser/private_aggregation/private_aggregation_internals.mojom-import-headers.h"
#include "content/browser/private_aggregation/private_aggregation_internals.mojom-test-utils.h"
namespace private_aggregation_internals::mojom {
AggregatableReportRequestID::AggregatableReportRequestID()
: … { … }
AggregatableReportRequestID::AggregatableReportRequestID(
int64_t value_in)
: … { … }
AggregatableReportRequestID::~AggregatableReportRequestID() = default;
void AggregatableReportRequestID::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableReportRequestID::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AggregatableHistogramContribution::AggregatableHistogramContribution()
: … { … }
AggregatableHistogramContribution::AggregatableHistogramContribution(
const ::absl::uint128& bucket_in,
int32_t value_in)
: … { … }
AggregatableHistogramContribution::~AggregatableHistogramContribution() = default;
void AggregatableHistogramContribution::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AggregatableHistogramContribution::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WebUIAggregatableReport::WebUIAggregatableReport()
: … { … }
WebUIAggregatableReport::WebUIAggregatableReport(
const std::optional<::content::AggregatableReportRequestStorageId>& id_in,
double report_time_in,
const std::string& api_identifier_in,
const std::string& api_version_in,
const ::GURL& report_url_in,
std::vector<AggregatableHistogramContributionPtr> contributions_in,
ReportStatus status_in,
const std::string& report_body_in)
: … { … }
WebUIAggregatableReport::~WebUIAggregatableReport() = default;
void WebUIAggregatableReport::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool WebUIAggregatableReport::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char Observer::Name_[] = …;
Observer::IPCStableHashFunction Observer::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Observer::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Observer::OnRequestStorageModified_Sym::IPCStableHash() { … }
uint32_t Observer::OnReportHandled_Sym::IPCStableHash() { … }
# endif
ObserverProxy::ObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ObserverProxy::OnRequestStorageModified(
) { … }
void ObserverProxy::OnReportHandled(
WebUIAggregatableReportPtr in_report) { … }
bool ObserverStubDispatch::Accept(
Observer* impl,
mojo::Message* message) { … }
bool ObserverStubDispatch::AcceptWithResponder(
Observer* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kObserverValidationInfo[] = …;
bool ObserverRequestValidator::Accept(mojo::Message* message) { … }
const char Handler::Name_[] = …;
Handler::IPCStableHashFunction Handler::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Handler::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Handler::GetReports_Sym::IPCStableHash() { … }
uint32_t Handler::SendReports_Sym::IPCStableHash() { … }
uint32_t Handler::ClearStorage_Sym::IPCStableHash() { … }
# endif
class Handler_GetReports_ForwardToCallback
: public mojo::MessageReceiver { … };
class Handler_SendReports_ForwardToCallback
: public mojo::MessageReceiver { … };
class Handler_ClearStorage_ForwardToCallback
: public mojo::MessageReceiver { … };
HandlerProxy::HandlerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void HandlerProxy::GetReports(
GetReportsCallback callback) { … }
void HandlerProxy::SendReports(
const std::vector<::content::AggregatableReportRequestStorageId>& in_ids, SendReportsCallback callback) { … }
void HandlerProxy::ClearStorage(
ClearStorageCallback callback) { … }
class Handler_GetReports_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Handler_GetReports_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Handler_GetReports_ProxyToResponder::Run(
std::vector<WebUIAggregatableReportPtr> in_reports) { … }
class Handler_SendReports_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Handler_SendReports_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Handler_SendReports_ProxyToResponder::Run(
) { … }
class Handler_ClearStorage_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool Handler_ClearStorage_ForwardToCallback::Accept(
mojo::Message* message) { … }
void Handler_ClearStorage_ProxyToResponder::Run(
) { … }
bool HandlerStubDispatch::Accept(
Handler* impl,
mojo::Message* message) { … }
bool HandlerStubDispatch::AcceptWithResponder(
Handler* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kHandlerValidationInfo[] = …;
bool HandlerRequestValidator::Accept(mojo::Message* message) { … }
bool HandlerResponseValidator::Accept(mojo::Message* message) { … }
const char Factory::Name_[] = …;
Factory::IPCStableHashFunction Factory::MessageToMethodInfo_(mojo::Message& message) { … }
const char* Factory::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Factory::Create_Sym::IPCStableHash() { … }
# endif
FactoryProxy::FactoryProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void FactoryProxy::Create(
::mojo::PendingRemote<Observer> in_observer, ::mojo::PendingReceiver<Handler> in_handler) { … }
bool FactoryStubDispatch::Accept(
Factory* impl,
mojo::Message* message) { … }
bool FactoryStubDispatch::AcceptWithResponder(
Factory* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kFactoryValidationInfo[] = …;
bool FactoryRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::private_aggregation_internals::mojom::AggregatableReportRequestID::DataView, ::private_aggregation_internals::mojom::AggregatableReportRequestIDPtr>::Read(
::private_aggregation_internals::mojom::AggregatableReportRequestID::DataView input,
::private_aggregation_internals::mojom::AggregatableReportRequestIDPtr* output) { … }
bool StructTraits<::private_aggregation_internals::mojom::AggregatableHistogramContribution::DataView, ::private_aggregation_internals::mojom::AggregatableHistogramContributionPtr>::Read(
::private_aggregation_internals::mojom::AggregatableHistogramContribution::DataView input,
::private_aggregation_internals::mojom::AggregatableHistogramContributionPtr* output) { … }
bool StructTraits<::private_aggregation_internals::mojom::WebUIAggregatableReport::DataView, ::private_aggregation_internals::mojom::WebUIAggregatableReportPtr>::Read(
::private_aggregation_internals::mojom::WebUIAggregatableReport::DataView input,
::private_aggregation_internals::mojom::WebUIAggregatableReportPtr* output) { … }
}
namespace private_aggregation_internals::mojom {
void ObserverInterceptorForTesting::OnRequestStorageModified() { … }
void ObserverInterceptorForTesting::OnReportHandled(WebUIAggregatableReportPtr report) { … }
ObserverAsyncWaiter::ObserverAsyncWaiter(
Observer* proxy) : … { … }
ObserverAsyncWaiter::~ObserverAsyncWaiter() = default;
void HandlerInterceptorForTesting::GetReports(GetReportsCallback callback) { … }
void HandlerInterceptorForTesting::SendReports(const std::vector<::content::AggregatableReportRequestStorageId>& ids, SendReportsCallback callback) { … }
void HandlerInterceptorForTesting::ClearStorage(ClearStorageCallback callback) { … }
HandlerAsyncWaiter::HandlerAsyncWaiter(
Handler* proxy) : … { … }
HandlerAsyncWaiter::~HandlerAsyncWaiter() = default;
void HandlerAsyncWaiter::GetReports(
std::vector<WebUIAggregatableReportPtr>* out_reports) { … }
std::vector<WebUIAggregatableReportPtr> HandlerAsyncWaiter::GetReports(
) { … }
void HandlerAsyncWaiter::SendReports(
const std::vector<::content::AggregatableReportRequestStorageId>& ids) { … }
void HandlerAsyncWaiter::ClearStorage(
) { … }
void FactoryInterceptorForTesting::Create(::mojo::PendingRemote<Observer> observer, ::mojo::PendingReceiver<Handler> handler) { … }
FactoryAsyncWaiter::FactoryAsyncWaiter(
Factory* proxy) : … { … }
FactoryAsyncWaiter::~FactoryAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif