#include "content/browser/devtools/protocol/audits.h"
#include "content/browser/devtools/protocol/protocol.h"
#include "third_party/inspector_protocol/crdtp/cbor.h"
#include "third_party/inspector_protocol/crdtp/find_by_first.h"
#include "third_party/inspector_protocol/crdtp/span.h"
namespace content {
namespace protocol {
namespace Audits {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace CookieExclusionReasonEnum {
const char ExcludeSameSiteUnspecifiedTreatedAsLax[] = …;
const char ExcludeSameSiteNoneInsecure[] = …;
const char ExcludeSameSiteLax[] = …;
const char ExcludeSameSiteStrict[] = …;
const char ExcludeInvalidSameParty[] = …;
const char ExcludeSamePartyCrossPartyContext[] = …;
const char ExcludeDomainNonASCII[] = …;
const char ExcludeThirdPartyCookieBlockedInFirstPartySet[] = …;
const char ExcludeThirdPartyPhaseout[] = …;
}
namespace CookieWarningReasonEnum {
const char WarnSameSiteUnspecifiedCrossSiteContext[] = …;
const char WarnSameSiteNoneInsecure[] = …;
const char WarnSameSiteUnspecifiedLaxAllowUnsafe[] = …;
const char WarnSameSiteStrictLaxDowngradeStrict[] = …;
const char WarnSameSiteStrictCrossDowngradeStrict[] = …;
const char WarnSameSiteStrictCrossDowngradeLax[] = …;
const char WarnSameSiteLaxCrossDowngradeStrict[] = …;
const char WarnSameSiteLaxCrossDowngradeLax[] = …;
const char WarnAttributeValueExceedsMaxSize[] = …;
const char WarnDomainNonASCII[] = …;
const char WarnThirdPartyPhaseout[] = …;
const char WarnCrossSiteRedirectDowngradeChangesInclusion[] = …;
}
namespace CookieOperationEnum {
const char SetCookie[] = …;
const char ReadCookie[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace MixedContentResolutionStatusEnum {
const char MixedContentBlocked[] = …;
const char MixedContentAutomaticallyUpgraded[] = …;
const char MixedContentWarning[] = …;
}
namespace MixedContentResourceTypeEnum {
const char AttributionSrc[] = …;
const char Audio[] = …;
const char Beacon[] = …;
const char CSPReport[] = …;
const char Download[] = …;
const char EventSource[] = …;
const char Favicon[] = …;
const char Font[] = …;
const char Form[] = …;
const char Frame[] = …;
const char Image[] = …;
const char Import[] = …;
const char JSON[] = …;
const char Manifest[] = …;
const char Ping[] = …;
const char PluginData[] = …;
const char PluginResource[] = …;
const char Prefetch[] = …;
const char Resource[] = …;
const char Script[] = …;
const char ServiceWorker[] = …;
const char SharedWorker[] = …;
const char SpeculationRules[] = …;
const char Stylesheet[] = …;
const char Track[] = …;
const char Video[] = …;
const char Worker[] = …;
const char XMLHttpRequest[] = …;
const char XSLT[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace BlockedByResponseReasonEnum {
const char CoepFrameResourceNeedsCoepHeader[] = …;
const char CoopSandboxedIFrameCannotNavigateToCoopPage[] = …;
const char CorpNotSameOrigin[] = …;
const char CorpNotSameOriginAfterDefaultedToSameOriginByCoep[] = …;
const char CorpNotSameOriginAfterDefaultedToSameOriginByDip[] = …;
const char CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip[] = …;
const char CorpNotSameSite[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace HeavyAdResolutionStatusEnum {
const char HeavyAdBlocked[] = …;
const char HeavyAdWarning[] = …;
}
namespace HeavyAdReasonEnum {
const char NetworkTotalLimit[] = …;
const char CpuTotalLimit[] = …;
const char CpuPeakLimit[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace ContentSecurityPolicyViolationTypeEnum {
const char KInlineViolation[] = …;
const char KEvalViolation[] = …;
const char KURLViolation[] = …;
const char KTrustedTypesSinkViolation[] = …;
const char KTrustedTypesPolicyViolation[] = …;
const char KWasmEvalViolation[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace SharedArrayBufferIssueTypeEnum {
const char TransferIssue[] = …;
const char CreationIssue[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace AttributionReportingIssueTypeEnum {
const char PermissionPolicyDisabled[] = …;
const char UntrustworthyReportingOrigin[] = …;
const char InsecureContext[] = …;
const char InvalidHeader[] = …;
const char InvalidRegisterTriggerHeader[] = …;
const char SourceAndTriggerHeaders[] = …;
const char SourceIgnored[] = …;
const char TriggerIgnored[] = …;
const char OsSourceIgnored[] = …;
const char OsTriggerIgnored[] = …;
const char InvalidRegisterOsSourceHeader[] = …;
const char InvalidRegisterOsTriggerHeader[] = …;
const char WebAndOsHeaders[] = …;
const char NoWebOrOsSupport[] = …;
const char NavigationRegistrationWithoutTransientUserActivation[] = …;
const char InvalidInfoHeader[] = …;
const char NoRegisterSourceHeader[] = …;
const char NoRegisterTriggerHeader[] = …;
const char NoRegisterOsSourceHeader[] = …;
const char NoRegisterOsTriggerHeader[] = …;
const char NavigationRegistrationUniqueScopeAlreadySet[] = …;
}
namespace SharedDictionaryErrorEnum {
const char UseErrorCrossOriginNoCorsRequest[] = …;
const char UseErrorDictionaryLoadFailure[] = …;
const char UseErrorMatchingDictionaryNotUsed[] = …;
const char UseErrorUnexpectedContentDictionaryHeader[] = …;
const char WriteErrorCossOriginNoCorsRequest[] = …;
const char WriteErrorDisallowedBySettings[] = …;
const char WriteErrorExpiredResponse[] = …;
const char WriteErrorFeatureDisabled[] = …;
const char WriteErrorInsufficientResources[] = …;
const char WriteErrorInvalidMatchField[] = …;
const char WriteErrorInvalidStructuredHeader[] = …;
const char WriteErrorNavigationRequest[] = …;
const char WriteErrorNoMatchField[] = …;
const char WriteErrorNonListMatchDestField[] = …;
const char WriteErrorNonSecureContext[] = …;
const char WriteErrorNonStringIdField[] = …;
const char WriteErrorNonStringInMatchDestList[] = …;
const char WriteErrorNonStringMatchField[] = …;
const char WriteErrorNonTokenTypeField[] = …;
const char WriteErrorRequestAborted[] = …;
const char WriteErrorShuttingDown[] = …;
const char WriteErrorTooLongIdField[] = …;
const char WriteErrorUnsupportedType[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace GenericIssueErrorTypeEnum {
const char FormLabelForNameError[] = …;
const char FormDuplicateIdForInputError[] = …;
const char FormInputWithNoLabelError[] = …;
const char FormAutocompleteAttributeEmptyError[] = …;
const char FormEmptyIdAndNameAttributesForInputError[] = …;
const char FormAriaLabelledByToNonExistingId[] = …;
const char FormInputAssignedAutocompleteValueToIdOrNameAttributeError[] = …;
const char FormLabelHasNeitherForNorNestedInput[] = …;
const char FormLabelForMatchesNonExistingIdError[] = …;
const char FormInputHasWrongButWellIntendedAutocompleteValueError[] = …;
const char ResponseWasBlockedByORB[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace ClientHintIssueReasonEnum {
const char MetaTagAllowListInvalidOrigin[] = …;
const char MetaTagModifiedHTML[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace FederatedAuthRequestIssueReasonEnum {
const char ShouldEmbargo[] = …;
const char TooManyRequests[] = …;
const char WellKnownHttpNotFound[] = …;
const char WellKnownNoResponse[] = …;
const char WellKnownInvalidResponse[] = …;
const char WellKnownListEmpty[] = …;
const char WellKnownInvalidContentType[] = …;
const char ConfigNotInWellKnown[] = …;
const char WellKnownTooBig[] = …;
const char ConfigHttpNotFound[] = …;
const char ConfigNoResponse[] = …;
const char ConfigInvalidResponse[] = …;
const char ConfigInvalidContentType[] = …;
const char ClientMetadataHttpNotFound[] = …;
const char ClientMetadataNoResponse[] = …;
const char ClientMetadataInvalidResponse[] = …;
const char ClientMetadataInvalidContentType[] = …;
const char IdpNotPotentiallyTrustworthy[] = …;
const char DisabledInSettings[] = …;
const char DisabledInFlags[] = …;
const char ErrorFetchingSignin[] = …;
const char InvalidSigninResponse[] = …;
const char AccountsHttpNotFound[] = …;
const char AccountsNoResponse[] = …;
const char AccountsInvalidResponse[] = …;
const char AccountsListEmpty[] = …;
const char AccountsInvalidContentType[] = …;
const char IdTokenHttpNotFound[] = …;
const char IdTokenNoResponse[] = …;
const char IdTokenInvalidResponse[] = …;
const char IdTokenIdpErrorResponse[] = …;
const char IdTokenCrossSiteIdpErrorResponse[] = …;
const char IdTokenInvalidRequest[] = …;
const char IdTokenInvalidContentType[] = …;
const char ErrorIdToken[] = …;
const char Canceled[] = …;
const char RpPageNotVisible[] = …;
const char SilentMediationFailure[] = …;
const char ThirdPartyCookiesBlocked[] = …;
const char NotSignedInWithIdp[] = …;
const char MissingTransientUserActivation[] = …;
const char ReplacedByButtonMode[] = …;
const char InvalidFieldsSpecified[] = …;
const char RelyingPartyOriginIsOpaque[] = …;
const char TypeNotMatching[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace FederatedAuthUserInfoRequestIssueReasonEnum {
const char NotSameOrigin[] = …;
const char NotIframe[] = …;
const char NotPotentiallyTrustworthy[] = …;
const char NoApiPermission[] = …;
const char NotSignedInWithIdp[] = …;
const char NoAccountSharingPermission[] = …;
const char InvalidConfigOrWellKnown[] = …;
const char InvalidAccountsResponse[] = …;
const char NoReturningUserFromFetchedAccounts[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace StyleSheetLoadingIssueReasonEnum {
const char LateImportRule[] = …;
const char RequestFailed[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace PropertyRuleIssueReasonEnum {
const char InvalidSyntax[] = …;
const char InvalidInitialValue[] = …;
const char InvalidInherits[] = …;
const char InvalidName[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace InspectorIssueCodeEnum {
const char CookieIssue[] = …;
const char MixedContentIssue[] = …;
const char BlockedByResponseIssue[] = …;
const char HeavyAdIssue[] = …;
const char ContentSecurityPolicyIssue[] = …;
const char SharedArrayBufferIssue[] = …;
const char LowTextContrastIssue[] = …;
const char CorsIssue[] = …;
const char AttributionReportingIssue[] = …;
const char QuirksModeIssue[] = …;
const char NavigatorUserAgentIssue[] = …;
const char GenericIssue[] = …;
const char DeprecationIssue[] = …;
const char ClientHintIssue[] = …;
const char FederatedAuthRequestIssue[] = …;
const char BounceTrackingIssue[] = …;
const char CookieDeprecationMetadataIssue[] = …;
const char StylesheetLoadingIssue[] = …;
const char FederatedAuthUserInfoRequestIssue[] = …;
const char PropertyRuleIssue[] = …;
const char SharedDictionaryIssue[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace GetEncodedResponse {
namespace EncodingEnum {
const char* Webp = …;
const char* Jpeg = …;
const char* Png = …;
}
}
void Frontend::IssueAdded(std::unique_ptr<protocol::Audits::InspectorIssue> issue)
{ … }
void Frontend::flush()
{ … }
void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{ … }
class DomainDispatcherImpl : public protocol::DomainDispatcher { … };
namespace {
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) { … }
}
std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) { … }
namespace {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() { … }
}
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{ … }
}
}
}