#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "components/subresource_filter/content/mojom/subresource_filter.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/subresource_filter/content/mojom/subresource_filter.mojom-params-data.h"
#include "components/subresource_filter/content/mojom/subresource_filter.mojom-shared-message-ids.h"
#include "components/subresource_filter/content/mojom/subresource_filter.mojom-import-headers.h"
#include "components/subresource_filter/content/mojom/subresource_filter.mojom-test-utils.h"
namespace subresource_filter::mojom {
const char SubresourceFilterAgent::Name_[] = …;
SubresourceFilterAgent::IPCStableHashFunction SubresourceFilterAgent::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SubresourceFilterAgent::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SubresourceFilterAgent::ActivateForNextCommittedLoad_Sym::IPCStableHash() { … }
# endif
SubresourceFilterAgentProxy::SubresourceFilterAgentProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SubresourceFilterAgentProxy::ActivateForNextCommittedLoad(
::subresource_filter::mojom::ActivationStatePtr in_activation_state, const std::optional<::blink::FrameAdEvidence>& in_ad_evidence) { … }
bool SubresourceFilterAgentStubDispatch::Accept(
SubresourceFilterAgent* impl,
mojo::Message* message) { … }
bool SubresourceFilterAgentStubDispatch::AcceptWithResponder(
SubresourceFilterAgent* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSubresourceFilterAgentValidationInfo[] = …;
bool SubresourceFilterAgentRequestValidator::Accept(mojo::Message* message) { … }
const char SubresourceFilterHost::Name_[] = …;
SubresourceFilterHost::IPCStableHashFunction SubresourceFilterHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* SubresourceFilterHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t SubresourceFilterHost::DidDisallowFirstSubresource_Sym::IPCStableHash() { … }
uint32_t SubresourceFilterHost::FrameIsAd_Sym::IPCStableHash() { … }
uint32_t SubresourceFilterHost::FrameWasCreatedByAdScript_Sym::IPCStableHash() { … }
uint32_t SubresourceFilterHost::AdScriptDidCreateFencedFrame_Sym::IPCStableHash() { … }
uint32_t SubresourceFilterHost::SetDocumentLoadStatistics_Sym::IPCStableHash() { … }
uint32_t SubresourceFilterHost::OnAdsViolationTriggered_Sym::IPCStableHash() { … }
# endif
SubresourceFilterHostProxy::SubresourceFilterHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void SubresourceFilterHostProxy::DidDisallowFirstSubresource(
) { … }
void SubresourceFilterHostProxy::FrameIsAd(
) { … }
void SubresourceFilterHostProxy::FrameWasCreatedByAdScript(
) { … }
void SubresourceFilterHostProxy::AdScriptDidCreateFencedFrame(
const ::blink::RemoteFrameToken& in_fenced_frame_root_placeholder_token) { … }
void SubresourceFilterHostProxy::SetDocumentLoadStatistics(
::subresource_filter::mojom::DocumentLoadStatisticsPtr in_statistics) { … }
void SubresourceFilterHostProxy::OnAdsViolationTriggered(
::subresource_filter::mojom::AdsViolation in_violation) { … }
bool SubresourceFilterHostStubDispatch::Accept(
SubresourceFilterHost* impl,
mojo::Message* message) { … }
bool SubresourceFilterHostStubDispatch::AcceptWithResponder(
SubresourceFilterHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kSubresourceFilterHostValidationInfo[] = …;
bool SubresourceFilterHostRequestValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace subresource_filter::mojom {
void SubresourceFilterAgentInterceptorForTesting::ActivateForNextCommittedLoad(::subresource_filter::mojom::ActivationStatePtr activation_state, const std::optional<::blink::FrameAdEvidence>& ad_evidence) { … }
SubresourceFilterAgentAsyncWaiter::SubresourceFilterAgentAsyncWaiter(
SubresourceFilterAgent* proxy) : … { … }
SubresourceFilterAgentAsyncWaiter::~SubresourceFilterAgentAsyncWaiter() = default;
void SubresourceFilterHostInterceptorForTesting::DidDisallowFirstSubresource() { … }
void SubresourceFilterHostInterceptorForTesting::FrameIsAd() { … }
void SubresourceFilterHostInterceptorForTesting::FrameWasCreatedByAdScript() { … }
void SubresourceFilterHostInterceptorForTesting::AdScriptDidCreateFencedFrame(const ::blink::RemoteFrameToken& fenced_frame_root_placeholder_token) { … }
void SubresourceFilterHostInterceptorForTesting::SetDocumentLoadStatistics(::subresource_filter::mojom::DocumentLoadStatisticsPtr statistics) { … }
void SubresourceFilterHostInterceptorForTesting::OnAdsViolationTriggered(::subresource_filter::mojom::AdsViolation violation) { … }
SubresourceFilterHostAsyncWaiter::SubresourceFilterHostAsyncWaiter(
SubresourceFilterHost* proxy) : … { … }
SubresourceFilterHostAsyncWaiter::~SubresourceFilterHostAsyncWaiter() = default;
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif