#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/frame/reporting_observer.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 "third_party/blink/public/mojom/frame/reporting_observer.mojom-params-data.h"
#include "third_party/blink/public/mojom/frame/reporting_observer.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/frame/reporting_observer.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/frame/reporting_observer.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
ReportBodyElement::ReportBodyElement()
: … { … }
ReportBodyElement::ReportBodyElement(
const WTF::String& name_in,
const WTF::String& value_in)
: … { … }
ReportBodyElement::~ReportBodyElement() = default;
size_t ReportBodyElement::Hash(size_t seed) const { … }
void ReportBodyElement::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ReportBodyElement::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ReportBody::ReportBody()
: … { … }
ReportBody::ReportBody(
WTF::Vector<ReportBodyElementPtr> body_in)
: … { … }
ReportBody::~ReportBody() = default;
void ReportBody::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ReportBody::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Report::Report()
: … { … }
Report::Report(
const WTF::String& type_in,
const ::blink::KURL& url_in,
ReportBodyPtr body_in)
: … { … }
Report::~Report() = default;
void Report::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Report::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char ReportingObserver::Name_[] = …;
ReportingObserver::IPCStableHashFunction ReportingObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* ReportingObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ReportingObserver::Notify_Sym::IPCStableHash() { … }
# endif
ReportingObserverProxy::ReportingObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void ReportingObserverProxy::Notify(
ReportPtr in_report) { … }
bool ReportingObserverStubDispatch::Accept(
ReportingObserver* impl,
mojo::Message* message) { … }
bool ReportingObserverStubDispatch::AcceptWithResponder(
ReportingObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kReportingObserverValidationInfo[] = …;
bool ReportingObserverRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::ReportBodyElement::DataView, ::blink::mojom::blink::ReportBodyElementPtr>::Read(
::blink::mojom::blink::ReportBodyElement::DataView input,
::blink::mojom::blink::ReportBodyElementPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ReportBody::DataView, ::blink::mojom::blink::ReportBodyPtr>::Read(
::blink::mojom::blink::ReportBody::DataView input,
::blink::mojom::blink::ReportBodyPtr* output) { … }
bool StructTraits<::blink::mojom::blink::Report::DataView, ::blink::mojom::blink::ReportPtr>::Read(
::blink::mojom::blink::Report::DataView input,
::blink::mojom::blink::ReportPtr* output) { … }
}
namespace blink::mojom::blink {
void ReportingObserverInterceptorForTesting::Notify(ReportPtr report) { … }
ReportingObserverAsyncWaiter::ReportingObserverAsyncWaiter(
ReportingObserver* proxy) : … { … }
ReportingObserverAsyncWaiter::~ReportingObserverAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif