#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/devtools/inspector_issue.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/devtools/inspector_issue.mojom-params-data.h"
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/devtools/inspector_issue.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
AffectedCookie::AffectedCookie()
: … { … }
AffectedCookie::AffectedCookie(
const WTF::String& name_in,
const WTF::String& path_in,
const WTF::String& domain_in)
: … { … }
AffectedCookie::~AffectedCookie() = default;
size_t AffectedCookie::Hash(size_t seed) const { … }
void AffectedCookie::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AffectedCookie::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AffectedRequest::AffectedRequest()
: … { … }
AffectedRequest::AffectedRequest(
const WTF::String& request_id_in,
const WTF::String& url_in)
: … { … }
AffectedRequest::~AffectedRequest() = default;
void AffectedRequest::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AffectedRequest::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AffectedFrame::AffectedFrame()
: … { … }
AffectedFrame::AffectedFrame(
const WTF::String& frame_id_in)
: … { … }
AffectedFrame::~AffectedFrame() = default;
size_t AffectedFrame::Hash(size_t seed) const { … }
void AffectedFrame::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AffectedFrame::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AffectedLocation::AffectedLocation()
: … { … }
AffectedLocation::AffectedLocation(
const WTF::String& script_id_in,
const WTF::String& url_in,
uint32_t line_in,
uint32_t column_in)
: … { … }
AffectedLocation::~AffectedLocation() = default;
void AffectedLocation::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AffectedLocation::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
BlockedByResponseIssueDetails::BlockedByResponseIssueDetails()
: … { … }
BlockedByResponseIssueDetails::BlockedByResponseIssueDetails(
AffectedRequestPtr request_in,
AffectedFramePtr parentFrame_in,
AffectedFramePtr blockedFrame_in,
::network::mojom::blink::BlockedByResponseReason reason_in)
: … { … }
BlockedByResponseIssueDetails::~BlockedByResponseIssueDetails() = default;
void BlockedByResponseIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool BlockedByResponseIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HeavyAdIssueDetails::HeavyAdIssueDetails()
: … { … }
HeavyAdIssueDetails::HeavyAdIssueDetails(
HeavyAdResolutionStatus resolution_in,
HeavyAdReason reason_in,
AffectedFramePtr frame_in)
: … { … }
HeavyAdIssueDetails::~HeavyAdIssueDetails() = default;
size_t HeavyAdIssueDetails::Hash(size_t seed) const { … }
void HeavyAdIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool HeavyAdIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
AttributionReportingIssueDetails::AttributionReportingIssueDetails()
: … { … }
AttributionReportingIssueDetails::AttributionReportingIssueDetails(
AttributionReportingIssueType violation_type_in,
AffectedRequestPtr request_in,
const WTF::String& invalid_parameter_in)
: … { … }
AttributionReportingIssueDetails::~AttributionReportingIssueDetails() = default;
void AttributionReportingIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool AttributionReportingIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MixedContentIssueDetails::MixedContentIssueDetails()
: … { … }
MixedContentIssueDetails::MixedContentIssueDetails(
::blink::mojom::blink::RequestContextType request_context_in,
MixedContentResolutionStatus resolution_status_in,
const WTF::String& insecure_url_in,
const WTF::String& main_resource_url_in,
AffectedRequestPtr request_in,
AffectedFramePtr frame_in)
: … { … }
MixedContentIssueDetails::~MixedContentIssueDetails() = default;
void MixedContentIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MixedContentIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ContentSecurityPolicyIssueDetails::ContentSecurityPolicyIssueDetails()
: … { … }
ContentSecurityPolicyIssueDetails::ContentSecurityPolicyIssueDetails(
const std::optional<::blink::KURL>& blocked_url_in,
const WTF::String& violated_directive_in,
bool is_report_only_in,
ContentSecurityPolicyViolationType content_security_policy_violation_type_in,
AffectedFramePtr frame_ancestor_in,
AffectedLocationPtr affected_location_in,
int32_t violating_node_id_in)
: … { … }
ContentSecurityPolicyIssueDetails::~ContentSecurityPolicyIssueDetails() = default;
void ContentSecurityPolicyIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ContentSecurityPolicyIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CookieIssueDetails::CookieIssueDetails()
: … { … }
CookieIssueDetails::CookieIssueDetails(
AffectedCookiePtr cookie_in,
WTF::Vector<CookieExclusionReason> exclusion_reason_in,
WTF::Vector<CookieWarningReason> warning_reason_in,
CookieOperation operation_in,
const std::optional<::blink::KURL>& site_for_cookies_in,
const std::optional<::blink::KURL>& cookie_url_in,
AffectedRequestPtr request_in)
: … { … }
CookieIssueDetails::~CookieIssueDetails() = default;
void CookieIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CookieIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
SharedArrayBufferIssueDetails::SharedArrayBufferIssueDetails()
: … { … }
SharedArrayBufferIssueDetails::SharedArrayBufferIssueDetails(
AffectedLocationPtr affected_location_in,
bool is_warning_in,
SharedArrayBufferIssueType type_in)
: … { … }
SharedArrayBufferIssueDetails::~SharedArrayBufferIssueDetails() = default;
void SharedArrayBufferIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SharedArrayBufferIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
LowTextContrastIssue::LowTextContrastIssue()
: … { … }
LowTextContrastIssue::LowTextContrastIssue(
int32_t violating_node_id_in,
const WTF::String& violating_node_selector_in,
float contrast_ratio_in,
float threshold_aa_in,
float threshold_aaa_in,
const WTF::String& font_size_in,
const WTF::String& font_weight_in)
: … { … }
LowTextContrastIssue::~LowTextContrastIssue() = default;
size_t LowTextContrastIssue::Hash(size_t seed) const { … }
void LowTextContrastIssue::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool LowTextContrastIssue::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FederatedAuthRequestIssueDetails::FederatedAuthRequestIssueDetails()
: … { … }
FederatedAuthRequestIssueDetails::FederatedAuthRequestIssueDetails(
FederatedAuthRequestResult status_in)
: … { … }
FederatedAuthRequestIssueDetails::~FederatedAuthRequestIssueDetails() = default;
size_t FederatedAuthRequestIssueDetails::Hash(size_t seed) const { … }
void FederatedAuthRequestIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FederatedAuthRequestIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
FederatedAuthUserInfoRequestIssueDetails::FederatedAuthUserInfoRequestIssueDetails()
: … { … }
FederatedAuthUserInfoRequestIssueDetails::FederatedAuthUserInfoRequestIssueDetails(
FederatedAuthUserInfoRequestResult status_in)
: … { … }
FederatedAuthUserInfoRequestIssueDetails::~FederatedAuthUserInfoRequestIssueDetails() = default;
size_t FederatedAuthUserInfoRequestIssueDetails::Hash(size_t seed) const { … }
void FederatedAuthUserInfoRequestIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool FederatedAuthUserInfoRequestIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
BounceTrackingIssueDetails::BounceTrackingIssueDetails()
: … { … }
BounceTrackingIssueDetails::BounceTrackingIssueDetails(
WTF::Vector<WTF::String> tracking_sites_in)
: … { … }
BounceTrackingIssueDetails::~BounceTrackingIssueDetails() = default;
void BounceTrackingIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool BounceTrackingIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
CookieDeprecationMetadataIssueDetails::CookieDeprecationMetadataIssueDetails()
: … { … }
CookieDeprecationMetadataIssueDetails::CookieDeprecationMetadataIssueDetails(
WTF::Vector<WTF::String> allowed_sites_in,
uint32_t opt_out_percentage_in,
bool is_opt_out_top_level_in,
CookieOperation operation_in)
: … { … }
CookieDeprecationMetadataIssueDetails::~CookieDeprecationMetadataIssueDetails() = default;
void CookieDeprecationMetadataIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool CookieDeprecationMetadataIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GenericIssueDetails::GenericIssueDetails()
: … { … }
GenericIssueDetails::GenericIssueDetails(
GenericIssueErrorType error_type_in,
const WTF::String& frame_id_in,
int32_t violating_node_id_in,
const WTF::String& violating_node_attribute_in)
: … { … }
GenericIssueDetails::~GenericIssueDetails() = default;
void GenericIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool GenericIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
DeprecationIssueDetails::DeprecationIssueDetails()
: … { … }
DeprecationIssueDetails::DeprecationIssueDetails(
DeprecationIssueType type_in,
AffectedLocationPtr affected_location_in)
: … { … }
DeprecationIssueDetails::~DeprecationIssueDetails() = default;
void DeprecationIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool DeprecationIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
InspectorIssueDetails::InspectorIssueDetails()
: … { … }
InspectorIssueDetails::InspectorIssueDetails(
CookieIssueDetailsPtr cookie_issue_details_in,
MixedContentIssueDetailsPtr mixed_content_issue_details_in,
BlockedByResponseIssueDetailsPtr blocked_by_response_issue_details_in,
ContentSecurityPolicyIssueDetailsPtr csp_issue_details_in,
SharedArrayBufferIssueDetailsPtr sab_issue_details_in,
HeavyAdIssueDetailsPtr heavy_ad_issue_details_in,
AttributionReportingIssueDetailsPtr attribution_reporting_issue_details_in,
LowTextContrastIssuePtr low_text_contrast_details_in,
FederatedAuthRequestIssueDetailsPtr federated_auth_request_details_in,
BounceTrackingIssueDetailsPtr bounce_tracking_issue_details_in,
CookieDeprecationMetadataIssueDetailsPtr cookie_deprecation_metadata_issue_details_in,
GenericIssueDetailsPtr generic_issue_details_in,
DeprecationIssueDetailsPtr deprecation_issue_details_in,
FederatedAuthUserInfoRequestIssueDetailsPtr federated_auth_user_info_request_details_in,
const std::optional<::base::UnguessableToken>& issue_id_in)
: … { … }
InspectorIssueDetails::~InspectorIssueDetails() = default;
void InspectorIssueDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InspectorIssueDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
InspectorIssueInfo::InspectorIssueInfo()
: … { … }
InspectorIssueInfo::InspectorIssueInfo(
InspectorIssueCode code_in,
InspectorIssueDetailsPtr details_in)
: … { … }
InspectorIssueInfo::~InspectorIssueInfo() = default;
void InspectorIssueInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InspectorIssueInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::AffectedCookie::DataView, ::blink::mojom::blink::AffectedCookiePtr>::Read(
::blink::mojom::blink::AffectedCookie::DataView input,
::blink::mojom::blink::AffectedCookiePtr* output) { … }
bool StructTraits<::blink::mojom::blink::AffectedRequest::DataView, ::blink::mojom::blink::AffectedRequestPtr>::Read(
::blink::mojom::blink::AffectedRequest::DataView input,
::blink::mojom::blink::AffectedRequestPtr* output) { … }
bool StructTraits<::blink::mojom::blink::AffectedFrame::DataView, ::blink::mojom::blink::AffectedFramePtr>::Read(
::blink::mojom::blink::AffectedFrame::DataView input,
::blink::mojom::blink::AffectedFramePtr* output) { … }
bool StructTraits<::blink::mojom::blink::AffectedLocation::DataView, ::blink::mojom::blink::AffectedLocationPtr>::Read(
::blink::mojom::blink::AffectedLocation::DataView input,
::blink::mojom::blink::AffectedLocationPtr* output) { … }
bool StructTraits<::blink::mojom::blink::BlockedByResponseIssueDetails::DataView, ::blink::mojom::blink::BlockedByResponseIssueDetailsPtr>::Read(
::blink::mojom::blink::BlockedByResponseIssueDetails::DataView input,
::blink::mojom::blink::BlockedByResponseIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::HeavyAdIssueDetails::DataView, ::blink::mojom::blink::HeavyAdIssueDetailsPtr>::Read(
::blink::mojom::blink::HeavyAdIssueDetails::DataView input,
::blink::mojom::blink::HeavyAdIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::AttributionReportingIssueDetails::DataView, ::blink::mojom::blink::AttributionReportingIssueDetailsPtr>::Read(
::blink::mojom::blink::AttributionReportingIssueDetails::DataView input,
::blink::mojom::blink::AttributionReportingIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::MixedContentIssueDetails::DataView, ::blink::mojom::blink::MixedContentIssueDetailsPtr>::Read(
::blink::mojom::blink::MixedContentIssueDetails::DataView input,
::blink::mojom::blink::MixedContentIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::ContentSecurityPolicyIssueDetails::DataView, ::blink::mojom::blink::ContentSecurityPolicyIssueDetailsPtr>::Read(
::blink::mojom::blink::ContentSecurityPolicyIssueDetails::DataView input,
::blink::mojom::blink::ContentSecurityPolicyIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::CookieIssueDetails::DataView, ::blink::mojom::blink::CookieIssueDetailsPtr>::Read(
::blink::mojom::blink::CookieIssueDetails::DataView input,
::blink::mojom::blink::CookieIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::SharedArrayBufferIssueDetails::DataView, ::blink::mojom::blink::SharedArrayBufferIssueDetailsPtr>::Read(
::blink::mojom::blink::SharedArrayBufferIssueDetails::DataView input,
::blink::mojom::blink::SharedArrayBufferIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::LowTextContrastIssue::DataView, ::blink::mojom::blink::LowTextContrastIssuePtr>::Read(
::blink::mojom::blink::LowTextContrastIssue::DataView input,
::blink::mojom::blink::LowTextContrastIssuePtr* output) { … }
bool StructTraits<::blink::mojom::blink::FederatedAuthRequestIssueDetails::DataView, ::blink::mojom::blink::FederatedAuthRequestIssueDetailsPtr>::Read(
::blink::mojom::blink::FederatedAuthRequestIssueDetails::DataView input,
::blink::mojom::blink::FederatedAuthRequestIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::FederatedAuthUserInfoRequestIssueDetails::DataView, ::blink::mojom::blink::FederatedAuthUserInfoRequestIssueDetailsPtr>::Read(
::blink::mojom::blink::FederatedAuthUserInfoRequestIssueDetails::DataView input,
::blink::mojom::blink::FederatedAuthUserInfoRequestIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::BounceTrackingIssueDetails::DataView, ::blink::mojom::blink::BounceTrackingIssueDetailsPtr>::Read(
::blink::mojom::blink::BounceTrackingIssueDetails::DataView input,
::blink::mojom::blink::BounceTrackingIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::CookieDeprecationMetadataIssueDetails::DataView, ::blink::mojom::blink::CookieDeprecationMetadataIssueDetailsPtr>::Read(
::blink::mojom::blink::CookieDeprecationMetadataIssueDetails::DataView input,
::blink::mojom::blink::CookieDeprecationMetadataIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::GenericIssueDetails::DataView, ::blink::mojom::blink::GenericIssueDetailsPtr>::Read(
::blink::mojom::blink::GenericIssueDetails::DataView input,
::blink::mojom::blink::GenericIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::DeprecationIssueDetails::DataView, ::blink::mojom::blink::DeprecationIssueDetailsPtr>::Read(
::blink::mojom::blink::DeprecationIssueDetails::DataView input,
::blink::mojom::blink::DeprecationIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::InspectorIssueDetails::DataView, ::blink::mojom::blink::InspectorIssueDetailsPtr>::Read(
::blink::mojom::blink::InspectorIssueDetails::DataView input,
::blink::mojom::blink::InspectorIssueDetailsPtr* output) { … }
bool StructTraits<::blink::mojom::blink::InspectorIssueInfo::DataView, ::blink::mojom::blink::InspectorIssueInfoPtr>::Read(
::blink::mojom::blink::InspectorIssueInfo::DataView input,
::blink::mojom::blink::InspectorIssueInfoPtr* output) { … }
}
namespace blink::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif