chromium/out/Default/gen/content/browser/devtools/protocol/audits.cc

// This file is generated by TypeBuilder_cpp.template.

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// ------------- Enum values from types.

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 CookieExclusionReasonEnum


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 CookieWarningReasonEnum


namespace CookieOperationEnum {
const char SetCookie[] =;
const char ReadCookie[] =;
} // namespace CookieOperationEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace MixedContentResolutionStatusEnum {
const char MixedContentBlocked[] =;
const char MixedContentAutomaticallyUpgraded[] =;
const char MixedContentWarning[] =;
} // namespace MixedContentResolutionStatusEnum


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[] =;
} // namespace MixedContentResourceTypeEnum


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[] =;
} // namespace BlockedByResponseReasonEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace HeavyAdResolutionStatusEnum {
const char HeavyAdBlocked[] =;
const char HeavyAdWarning[] =;
} // namespace HeavyAdResolutionStatusEnum


namespace HeavyAdReasonEnum {
const char NetworkTotalLimit[] =;
const char CpuTotalLimit[] =;
const char CpuPeakLimit[] =;
} // namespace HeavyAdReasonEnum


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[] =;
} // namespace ContentSecurityPolicyViolationTypeEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace SharedArrayBufferIssueTypeEnum {
const char TransferIssue[] =;
const char CreationIssue[] =;
} // namespace SharedArrayBufferIssueTypeEnum


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 AttributionReportingIssueTypeEnum


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[] =;
} // namespace SharedDictionaryErrorEnum


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[] =;
} // namespace GenericIssueErrorTypeEnum


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[] =;
} // namespace ClientHintIssueReasonEnum


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[] =;
} // namespace FederatedAuthRequestIssueReasonEnum


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[] =;
} // namespace FederatedAuthUserInfoRequestIssueReasonEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace StyleSheetLoadingIssueReasonEnum {
const char LateImportRule[] =;
const char RequestFailed[] =;
} // namespace StyleSheetLoadingIssueReasonEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace PropertyRuleIssueReasonEnum {
const char InvalidSyntax[] =;
const char InvalidInitialValue[] =;
const char InvalidInherits[] =;
const char InvalidName[] =;
} // namespace PropertyRuleIssueReasonEnum


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[] =;
} // namespace InspectorIssueCodeEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();



CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


// ------------- Enum values from params.


namespace GetEncodedResponse {
namespace EncodingEnum {
const char* Webp =;
const char* Jpeg =;
const char* Png =;
} // namespace EncodingEnum
} // namespace GetEncodedResponse

// ------------- Frontend notifications.

void Frontend::IssueAdded(std::unique_ptr<protocol::Audits::InspectorIssue> issue)
{}

void Frontend::flush()
{}

void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{}

// --------------------- Dispatcher.

class DomainDispatcherImpl : public protocol::DomainDispatcher {};

namespace {
// This helper method with a static map of command methods (instance methods
// of DomainDispatcherImpl declared just above) by their name is used immediately below,
// in the DomainDispatcherImpl::Dispatch method.
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) {}
}  // namespace

std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) {}


namespace {


}  // namespace

void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{}

namespace {


}  // namespace

void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{}

namespace {
// This helper method (with a static map of redirects) is used from Dispatcher::wire
// immediately below.
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() {}
}  // namespace

// static
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{}

} // Audits
} // namespace content
} // namespace protocol