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

// This file is generated by TypeBuilder_h.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.

#ifndef content_protocol_Audits_h
#define content_protocol_Audits_h

#include "content/common/content_export.h"
#include "content/browser/devtools/protocol/protocol.h"
// For each imported domain we generate a ValueConversions struct instead of a full domain definition
// and include Domain::API version from there.
#include "content/browser/devtools/protocol/network.h"

namespace content {
namespace protocol {
namespace Audits {
class AffectedCookie;
class AffectedRequest;
class AffectedFrame;
CookieExclusionReason;
CookieWarningReason;
CookieOperation;
class CookieIssueDetails;
MixedContentResolutionStatus;
MixedContentResourceType;
class MixedContentIssueDetails;
BlockedByResponseReason;
class BlockedByResponseIssueDetails;
HeavyAdResolutionStatus;
HeavyAdReason;
class HeavyAdIssueDetails;
ContentSecurityPolicyViolationType;
class SourceCodeLocation;
class ContentSecurityPolicyIssueDetails;
SharedArrayBufferIssueType;
class SharedArrayBufferIssueDetails;
class LowTextContrastIssueDetails;
class CorsIssueDetails;
AttributionReportingIssueType;
SharedDictionaryError;
class AttributionReportingIssueDetails;
class QuirksModeIssueDetails;
class NavigatorUserAgentIssueDetails;
class SharedDictionaryIssueDetails;
GenericIssueErrorType;
class GenericIssueDetails;
class DeprecationIssueDetails;
class BounceTrackingIssueDetails;
class CookieDeprecationMetadataIssueDetails;
ClientHintIssueReason;
class FederatedAuthRequestIssueDetails;
FederatedAuthRequestIssueReason;
class FederatedAuthUserInfoRequestIssueDetails;
FederatedAuthUserInfoRequestIssueReason;
class ClientHintIssueDetails;
class FailedRequestInfo;
StyleSheetLoadingIssueReason;
class StylesheetLoadingIssueDetails;
PropertyRuleIssueReason;
class PropertyRuleIssueDetails;
InspectorIssueCode;
class InspectorIssueDetails;
IssueId;
class InspectorIssue;

// ------------- Forward and enum declarations.

namespace CookieExclusionReasonEnum {
CONTENT_EXPORT extern const char ExcludeSameSiteUnspecifiedTreatedAsLax[];
CONTENT_EXPORT extern const char ExcludeSameSiteNoneInsecure[];
CONTENT_EXPORT extern const char ExcludeSameSiteLax[];
CONTENT_EXPORT extern const char ExcludeSameSiteStrict[];
CONTENT_EXPORT extern const char ExcludeInvalidSameParty[];
CONTENT_EXPORT extern const char ExcludeSamePartyCrossPartyContext[];
CONTENT_EXPORT extern const char ExcludeDomainNonASCII[];
CONTENT_EXPORT extern const char ExcludeThirdPartyCookieBlockedInFirstPartySet[];
CONTENT_EXPORT extern const char ExcludeThirdPartyPhaseout[];
} // namespace CookieExclusionReasonEnum

namespace CookieWarningReasonEnum {
CONTENT_EXPORT extern const char WarnSameSiteUnspecifiedCrossSiteContext[];
CONTENT_EXPORT extern const char WarnSameSiteNoneInsecure[];
CONTENT_EXPORT extern const char WarnSameSiteUnspecifiedLaxAllowUnsafe[];
CONTENT_EXPORT extern const char WarnSameSiteStrictLaxDowngradeStrict[];
CONTENT_EXPORT extern const char WarnSameSiteStrictCrossDowngradeStrict[];
CONTENT_EXPORT extern const char WarnSameSiteStrictCrossDowngradeLax[];
CONTENT_EXPORT extern const char WarnSameSiteLaxCrossDowngradeStrict[];
CONTENT_EXPORT extern const char WarnSameSiteLaxCrossDowngradeLax[];
CONTENT_EXPORT extern const char WarnAttributeValueExceedsMaxSize[];
CONTENT_EXPORT extern const char WarnDomainNonASCII[];
CONTENT_EXPORT extern const char WarnThirdPartyPhaseout[];
CONTENT_EXPORT extern const char WarnCrossSiteRedirectDowngradeChangesInclusion[];
} // namespace CookieWarningReasonEnum

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

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

namespace MixedContentResourceTypeEnum {
CONTENT_EXPORT extern const char AttributionSrc[];
CONTENT_EXPORT extern const char Audio[];
CONTENT_EXPORT extern const char Beacon[];
CONTENT_EXPORT extern const char CSPReport[];
CONTENT_EXPORT extern const char Download[];
CONTENT_EXPORT extern const char EventSource[];
CONTENT_EXPORT extern const char Favicon[];
CONTENT_EXPORT extern const char Font[];
CONTENT_EXPORT extern const char Form[];
CONTENT_EXPORT extern const char Frame[];
CONTENT_EXPORT extern const char Image[];
CONTENT_EXPORT extern const char Import[];
CONTENT_EXPORT extern const char JSON[];
CONTENT_EXPORT extern const char Manifest[];
CONTENT_EXPORT extern const char Ping[];
CONTENT_EXPORT extern const char PluginData[];
CONTENT_EXPORT extern const char PluginResource[];
CONTENT_EXPORT extern const char Prefetch[];
CONTENT_EXPORT extern const char Resource[];
CONTENT_EXPORT extern const char Script[];
CONTENT_EXPORT extern const char ServiceWorker[];
CONTENT_EXPORT extern const char SharedWorker[];
CONTENT_EXPORT extern const char SpeculationRules[];
CONTENT_EXPORT extern const char Stylesheet[];
CONTENT_EXPORT extern const char Track[];
CONTENT_EXPORT extern const char Video[];
CONTENT_EXPORT extern const char Worker[];
CONTENT_EXPORT extern const char XMLHttpRequest[];
CONTENT_EXPORT extern const char XSLT[];
} // namespace MixedContentResourceTypeEnum

namespace BlockedByResponseReasonEnum {
CONTENT_EXPORT extern const char CoepFrameResourceNeedsCoepHeader[];
CONTENT_EXPORT extern const char CoopSandboxedIFrameCannotNavigateToCoopPage[];
CONTENT_EXPORT extern const char CorpNotSameOrigin[];
CONTENT_EXPORT extern const char CorpNotSameOriginAfterDefaultedToSameOriginByCoep[];
CONTENT_EXPORT extern const char CorpNotSameOriginAfterDefaultedToSameOriginByDip[];
CONTENT_EXPORT extern const char CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip[];
CONTENT_EXPORT extern const char CorpNotSameSite[];
} // namespace BlockedByResponseReasonEnum

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

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

namespace ContentSecurityPolicyViolationTypeEnum {
CONTENT_EXPORT extern const char KInlineViolation[];
CONTENT_EXPORT extern const char KEvalViolation[];
CONTENT_EXPORT extern const char KURLViolation[];
CONTENT_EXPORT extern const char KTrustedTypesSinkViolation[];
CONTENT_EXPORT extern const char KTrustedTypesPolicyViolation[];
CONTENT_EXPORT extern const char KWasmEvalViolation[];
} // namespace ContentSecurityPolicyViolationTypeEnum

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

namespace AttributionReportingIssueTypeEnum {
CONTENT_EXPORT extern const char PermissionPolicyDisabled[];
CONTENT_EXPORT extern const char UntrustworthyReportingOrigin[];
CONTENT_EXPORT extern const char InsecureContext[];
CONTENT_EXPORT extern const char InvalidHeader[];
CONTENT_EXPORT extern const char InvalidRegisterTriggerHeader[];
CONTENT_EXPORT extern const char SourceAndTriggerHeaders[];
CONTENT_EXPORT extern const char SourceIgnored[];
CONTENT_EXPORT extern const char TriggerIgnored[];
CONTENT_EXPORT extern const char OsSourceIgnored[];
CONTENT_EXPORT extern const char OsTriggerIgnored[];
CONTENT_EXPORT extern const char InvalidRegisterOsSourceHeader[];
CONTENT_EXPORT extern const char InvalidRegisterOsTriggerHeader[];
CONTENT_EXPORT extern const char WebAndOsHeaders[];
CONTENT_EXPORT extern const char NoWebOrOsSupport[];
CONTENT_EXPORT extern const char NavigationRegistrationWithoutTransientUserActivation[];
CONTENT_EXPORT extern const char InvalidInfoHeader[];
CONTENT_EXPORT extern const char NoRegisterSourceHeader[];
CONTENT_EXPORT extern const char NoRegisterTriggerHeader[];
CONTENT_EXPORT extern const char NoRegisterOsSourceHeader[];
CONTENT_EXPORT extern const char NoRegisterOsTriggerHeader[];
CONTENT_EXPORT extern const char NavigationRegistrationUniqueScopeAlreadySet[];
} // namespace AttributionReportingIssueTypeEnum

namespace SharedDictionaryErrorEnum {
CONTENT_EXPORT extern const char UseErrorCrossOriginNoCorsRequest[];
CONTENT_EXPORT extern const char UseErrorDictionaryLoadFailure[];
CONTENT_EXPORT extern const char UseErrorMatchingDictionaryNotUsed[];
CONTENT_EXPORT extern const char UseErrorUnexpectedContentDictionaryHeader[];
CONTENT_EXPORT extern const char WriteErrorCossOriginNoCorsRequest[];
CONTENT_EXPORT extern const char WriteErrorDisallowedBySettings[];
CONTENT_EXPORT extern const char WriteErrorExpiredResponse[];
CONTENT_EXPORT extern const char WriteErrorFeatureDisabled[];
CONTENT_EXPORT extern const char WriteErrorInsufficientResources[];
CONTENT_EXPORT extern const char WriteErrorInvalidMatchField[];
CONTENT_EXPORT extern const char WriteErrorInvalidStructuredHeader[];
CONTENT_EXPORT extern const char WriteErrorNavigationRequest[];
CONTENT_EXPORT extern const char WriteErrorNoMatchField[];
CONTENT_EXPORT extern const char WriteErrorNonListMatchDestField[];
CONTENT_EXPORT extern const char WriteErrorNonSecureContext[];
CONTENT_EXPORT extern const char WriteErrorNonStringIdField[];
CONTENT_EXPORT extern const char WriteErrorNonStringInMatchDestList[];
CONTENT_EXPORT extern const char WriteErrorNonStringMatchField[];
CONTENT_EXPORT extern const char WriteErrorNonTokenTypeField[];
CONTENT_EXPORT extern const char WriteErrorRequestAborted[];
CONTENT_EXPORT extern const char WriteErrorShuttingDown[];
CONTENT_EXPORT extern const char WriteErrorTooLongIdField[];
CONTENT_EXPORT extern const char WriteErrorUnsupportedType[];
} // namespace SharedDictionaryErrorEnum

namespace GenericIssueErrorTypeEnum {
CONTENT_EXPORT extern const char FormLabelForNameError[];
CONTENT_EXPORT extern const char FormDuplicateIdForInputError[];
CONTENT_EXPORT extern const char FormInputWithNoLabelError[];
CONTENT_EXPORT extern const char FormAutocompleteAttributeEmptyError[];
CONTENT_EXPORT extern const char FormEmptyIdAndNameAttributesForInputError[];
CONTENT_EXPORT extern const char FormAriaLabelledByToNonExistingId[];
CONTENT_EXPORT extern const char FormInputAssignedAutocompleteValueToIdOrNameAttributeError[];
CONTENT_EXPORT extern const char FormLabelHasNeitherForNorNestedInput[];
CONTENT_EXPORT extern const char FormLabelForMatchesNonExistingIdError[];
CONTENT_EXPORT extern const char FormInputHasWrongButWellIntendedAutocompleteValueError[];
CONTENT_EXPORT extern const char ResponseWasBlockedByORB[];
} // namespace GenericIssueErrorTypeEnum

namespace ClientHintIssueReasonEnum {
CONTENT_EXPORT extern const char MetaTagAllowListInvalidOrigin[];
CONTENT_EXPORT extern const char MetaTagModifiedHTML[];
} // namespace ClientHintIssueReasonEnum

namespace FederatedAuthRequestIssueReasonEnum {
CONTENT_EXPORT extern const char ShouldEmbargo[];
CONTENT_EXPORT extern const char TooManyRequests[];
CONTENT_EXPORT extern const char WellKnownHttpNotFound[];
CONTENT_EXPORT extern const char WellKnownNoResponse[];
CONTENT_EXPORT extern const char WellKnownInvalidResponse[];
CONTENT_EXPORT extern const char WellKnownListEmpty[];
CONTENT_EXPORT extern const char WellKnownInvalidContentType[];
CONTENT_EXPORT extern const char ConfigNotInWellKnown[];
CONTENT_EXPORT extern const char WellKnownTooBig[];
CONTENT_EXPORT extern const char ConfigHttpNotFound[];
CONTENT_EXPORT extern const char ConfigNoResponse[];
CONTENT_EXPORT extern const char ConfigInvalidResponse[];
CONTENT_EXPORT extern const char ConfigInvalidContentType[];
CONTENT_EXPORT extern const char ClientMetadataHttpNotFound[];
CONTENT_EXPORT extern const char ClientMetadataNoResponse[];
CONTENT_EXPORT extern const char ClientMetadataInvalidResponse[];
CONTENT_EXPORT extern const char ClientMetadataInvalidContentType[];
CONTENT_EXPORT extern const char IdpNotPotentiallyTrustworthy[];
CONTENT_EXPORT extern const char DisabledInSettings[];
CONTENT_EXPORT extern const char DisabledInFlags[];
CONTENT_EXPORT extern const char ErrorFetchingSignin[];
CONTENT_EXPORT extern const char InvalidSigninResponse[];
CONTENT_EXPORT extern const char AccountsHttpNotFound[];
CONTENT_EXPORT extern const char AccountsNoResponse[];
CONTENT_EXPORT extern const char AccountsInvalidResponse[];
CONTENT_EXPORT extern const char AccountsListEmpty[];
CONTENT_EXPORT extern const char AccountsInvalidContentType[];
CONTENT_EXPORT extern const char IdTokenHttpNotFound[];
CONTENT_EXPORT extern const char IdTokenNoResponse[];
CONTENT_EXPORT extern const char IdTokenInvalidResponse[];
CONTENT_EXPORT extern const char IdTokenIdpErrorResponse[];
CONTENT_EXPORT extern const char IdTokenCrossSiteIdpErrorResponse[];
CONTENT_EXPORT extern const char IdTokenInvalidRequest[];
CONTENT_EXPORT extern const char IdTokenInvalidContentType[];
CONTENT_EXPORT extern const char ErrorIdToken[];
CONTENT_EXPORT extern const char Canceled[];
CONTENT_EXPORT extern const char RpPageNotVisible[];
CONTENT_EXPORT extern const char SilentMediationFailure[];
CONTENT_EXPORT extern const char ThirdPartyCookiesBlocked[];
CONTENT_EXPORT extern const char NotSignedInWithIdp[];
CONTENT_EXPORT extern const char MissingTransientUserActivation[];
CONTENT_EXPORT extern const char ReplacedByButtonMode[];
CONTENT_EXPORT extern const char InvalidFieldsSpecified[];
CONTENT_EXPORT extern const char RelyingPartyOriginIsOpaque[];
CONTENT_EXPORT extern const char TypeNotMatching[];
} // namespace FederatedAuthRequestIssueReasonEnum

namespace FederatedAuthUserInfoRequestIssueReasonEnum {
CONTENT_EXPORT extern const char NotSameOrigin[];
CONTENT_EXPORT extern const char NotIframe[];
CONTENT_EXPORT extern const char NotPotentiallyTrustworthy[];
CONTENT_EXPORT extern const char NoApiPermission[];
CONTENT_EXPORT extern const char NotSignedInWithIdp[];
CONTENT_EXPORT extern const char NoAccountSharingPermission[];
CONTENT_EXPORT extern const char InvalidConfigOrWellKnown[];
CONTENT_EXPORT extern const char InvalidAccountsResponse[];
CONTENT_EXPORT extern const char NoReturningUserFromFetchedAccounts[];
} // namespace FederatedAuthUserInfoRequestIssueReasonEnum

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

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

namespace InspectorIssueCodeEnum {
CONTENT_EXPORT extern const char CookieIssue[];
CONTENT_EXPORT extern const char MixedContentIssue[];
CONTENT_EXPORT extern const char BlockedByResponseIssue[];
CONTENT_EXPORT extern const char HeavyAdIssue[];
CONTENT_EXPORT extern const char ContentSecurityPolicyIssue[];
CONTENT_EXPORT extern const char SharedArrayBufferIssue[];
CONTENT_EXPORT extern const char LowTextContrastIssue[];
CONTENT_EXPORT extern const char CorsIssue[];
CONTENT_EXPORT extern const char AttributionReportingIssue[];
CONTENT_EXPORT extern const char QuirksModeIssue[];
CONTENT_EXPORT extern const char NavigatorUserAgentIssue[];
CONTENT_EXPORT extern const char GenericIssue[];
CONTENT_EXPORT extern const char DeprecationIssue[];
CONTENT_EXPORT extern const char ClientHintIssue[];
CONTENT_EXPORT extern const char FederatedAuthRequestIssue[];
CONTENT_EXPORT extern const char BounceTrackingIssue[];
CONTENT_EXPORT extern const char CookieDeprecationMetadataIssue[];
CONTENT_EXPORT extern const char StylesheetLoadingIssue[];
CONTENT_EXPORT extern const char FederatedAuthUserInfoRequestIssue[];
CONTENT_EXPORT extern const char PropertyRuleIssue[];
CONTENT_EXPORT extern const char SharedDictionaryIssue[];
} // namespace InspectorIssueCodeEnum

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

// ------------- Type and builder declarations.

class CONTENT_EXPORT AffectedCookie : public ::crdtp::ProtocolObject<AffectedCookie> {};


class CONTENT_EXPORT AffectedRequest : public ::crdtp::ProtocolObject<AffectedRequest> {};


class CONTENT_EXPORT AffectedFrame : public ::crdtp::ProtocolObject<AffectedFrame> {};


class CONTENT_EXPORT CookieIssueDetails : public ::crdtp::ProtocolObject<CookieIssueDetails> {};


class CONTENT_EXPORT MixedContentIssueDetails : public ::crdtp::ProtocolObject<MixedContentIssueDetails> {};


class CONTENT_EXPORT BlockedByResponseIssueDetails : public ::crdtp::ProtocolObject<BlockedByResponseIssueDetails> {};


class CONTENT_EXPORT HeavyAdIssueDetails : public ::crdtp::ProtocolObject<HeavyAdIssueDetails> {};


class CONTENT_EXPORT SourceCodeLocation : public ::crdtp::ProtocolObject<SourceCodeLocation> {};


class CONTENT_EXPORT ContentSecurityPolicyIssueDetails : public ::crdtp::ProtocolObject<ContentSecurityPolicyIssueDetails> {};


class CONTENT_EXPORT SharedArrayBufferIssueDetails : public ::crdtp::ProtocolObject<SharedArrayBufferIssueDetails> {};


class CONTENT_EXPORT LowTextContrastIssueDetails : public ::crdtp::ProtocolObject<LowTextContrastIssueDetails> {};


class CONTENT_EXPORT CorsIssueDetails : public ::crdtp::ProtocolObject<CorsIssueDetails> {};


class CONTENT_EXPORT AttributionReportingIssueDetails : public ::crdtp::ProtocolObject<AttributionReportingIssueDetails> {};


class CONTENT_EXPORT QuirksModeIssueDetails : public ::crdtp::ProtocolObject<QuirksModeIssueDetails> {};


class CONTENT_EXPORT NavigatorUserAgentIssueDetails : public ::crdtp::ProtocolObject<NavigatorUserAgentIssueDetails> {};


class CONTENT_EXPORT SharedDictionaryIssueDetails : public ::crdtp::ProtocolObject<SharedDictionaryIssueDetails> {};


class CONTENT_EXPORT GenericIssueDetails : public ::crdtp::ProtocolObject<GenericIssueDetails> {};


class CONTENT_EXPORT DeprecationIssueDetails : public ::crdtp::ProtocolObject<DeprecationIssueDetails> {};


class CONTENT_EXPORT BounceTrackingIssueDetails : public ::crdtp::ProtocolObject<BounceTrackingIssueDetails> {};


class CONTENT_EXPORT CookieDeprecationMetadataIssueDetails : public ::crdtp::ProtocolObject<CookieDeprecationMetadataIssueDetails> {};


class CONTENT_EXPORT FederatedAuthRequestIssueDetails : public ::crdtp::ProtocolObject<FederatedAuthRequestIssueDetails> {};


class CONTENT_EXPORT FederatedAuthUserInfoRequestIssueDetails : public ::crdtp::ProtocolObject<FederatedAuthUserInfoRequestIssueDetails> {};


class CONTENT_EXPORT ClientHintIssueDetails : public ::crdtp::ProtocolObject<ClientHintIssueDetails> {};


class CONTENT_EXPORT FailedRequestInfo : public ::crdtp::ProtocolObject<FailedRequestInfo> {};


class CONTENT_EXPORT StylesheetLoadingIssueDetails : public ::crdtp::ProtocolObject<StylesheetLoadingIssueDetails> {};


class CONTENT_EXPORT PropertyRuleIssueDetails : public ::crdtp::ProtocolObject<PropertyRuleIssueDetails> {};


class CONTENT_EXPORT InspectorIssueDetails : public ::crdtp::ProtocolObject<InspectorIssueDetails> {};


class CONTENT_EXPORT InspectorIssue : public ::crdtp::ProtocolObject<InspectorIssue> {};


// ------------- Backend interface.

class CONTENT_EXPORT Backend {};

// ------------- Frontend interface.

class CONTENT_EXPORT Frontend {};

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

class CONTENT_EXPORT Dispatcher {};

// ------------- Metainfo.

class CONTENT_EXPORT Metainfo {};

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

#endif // !defined(content_protocol_Audits_h)