chromium/out/Default/gen/content/browser/devtools/protocol/network.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_Network_h
#define content_protocol_Network_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/runtime.h"
#include "content/browser/devtools/protocol/security.h"

namespace content {
namespace protocol {
namespace Network {
ResourceType;
LoaderId;
RequestId;
InterceptionId;
ErrorReason;
TimeSinceEpoch;
MonotonicTime;
Headers;
ConnectionType;
CookieSameSite;
CookiePriority;
CookieSourceScheme;
class ResourceTiming;
ResourcePriority;
class PostDataEntry;
class Request;
class SignedCertificateTimestamp;
class SecurityDetails;
CertificateTransparencyCompliance;
BlockedReason;
CorsError;
class CorsErrorStatus;
ServiceWorkerResponseSource;
class TrustTokenParams;
TrustTokenOperationType;
AlternateProtocolUsage;
ServiceWorkerRouterSource;
class ServiceWorkerRouterInfo;
class Response;
class Initiator;
class CookiePartitionKey;
class Cookie;
SetCookieBlockedReason;
CookieBlockedReason;
CookieExemptionReason;
class BlockedSetCookieWithReason;
class ExemptedSetCookieWithReason;
class AssociatedCookie;
class CookieParam;
class AuthChallenge;
class AuthChallengeResponse;
InterceptionStage;
class RequestPattern;
class SignedExchangeSignature;
class SignedExchangeHeader;
SignedExchangeErrorField;
class SignedExchangeError;
class SignedExchangeInfo;
ContentEncoding;
PrivateNetworkRequestPolicy;
IPAddressSpace;
class ConnectTiming;
class ClientSecurityState;
CrossOriginOpenerPolicyValue;
class CrossOriginOpenerPolicyStatus;
CrossOriginEmbedderPolicyValue;
class CrossOriginEmbedderPolicyStatus;
ContentSecurityPolicySource;
class ContentSecurityPolicyStatus;
class SecurityIsolationStatus;
ReportStatus;
ReportId;
class ReportingApiReport;
class ReportingApiEndpoint;
class LoadNetworkResourcePageResult;
class LoadNetworkResourceOptions;

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

namespace ResourceTypeEnum {
CONTENT_EXPORT extern const char Document[];
CONTENT_EXPORT extern const char Stylesheet[];
CONTENT_EXPORT extern const char Image[];
CONTENT_EXPORT extern const char Media[];
CONTENT_EXPORT extern const char Font[];
CONTENT_EXPORT extern const char Script[];
CONTENT_EXPORT extern const char TextTrack[];
CONTENT_EXPORT extern const char XHR[];
CONTENT_EXPORT extern const char Fetch[];
CONTENT_EXPORT extern const char Prefetch[];
CONTENT_EXPORT extern const char EventSource[];
CONTENT_EXPORT extern const char WebSocket[];
CONTENT_EXPORT extern const char Manifest[];
CONTENT_EXPORT extern const char SignedExchange[];
CONTENT_EXPORT extern const char Ping[];
CONTENT_EXPORT extern const char CSPViolationReport[];
CONTENT_EXPORT extern const char Preflight[];
CONTENT_EXPORT extern const char Other[];
} // namespace ResourceTypeEnum

namespace ErrorReasonEnum {
CONTENT_EXPORT extern const char Failed[];
CONTENT_EXPORT extern const char Aborted[];
CONTENT_EXPORT extern const char TimedOut[];
CONTENT_EXPORT extern const char AccessDenied[];
CONTENT_EXPORT extern const char ConnectionClosed[];
CONTENT_EXPORT extern const char ConnectionReset[];
CONTENT_EXPORT extern const char ConnectionRefused[];
CONTENT_EXPORT extern const char ConnectionAborted[];
CONTENT_EXPORT extern const char ConnectionFailed[];
CONTENT_EXPORT extern const char NameNotResolved[];
CONTENT_EXPORT extern const char InternetDisconnected[];
CONTENT_EXPORT extern const char AddressUnreachable[];
CONTENT_EXPORT extern const char BlockedByClient[];
CONTENT_EXPORT extern const char BlockedByResponse[];
} // namespace ErrorReasonEnum

namespace ConnectionTypeEnum {
CONTENT_EXPORT extern const char None[];
CONTENT_EXPORT extern const char Cellular2g[];
CONTENT_EXPORT extern const char Cellular3g[];
CONTENT_EXPORT extern const char Cellular4g[];
CONTENT_EXPORT extern const char Bluetooth[];
CONTENT_EXPORT extern const char Ethernet[];
CONTENT_EXPORT extern const char Wifi[];
CONTENT_EXPORT extern const char Wimax[];
CONTENT_EXPORT extern const char Other[];
} // namespace ConnectionTypeEnum

namespace CookieSameSiteEnum {
CONTENT_EXPORT extern const char Strict[];
CONTENT_EXPORT extern const char Lax[];
CONTENT_EXPORT extern const char None[];
} // namespace CookieSameSiteEnum

namespace CookiePriorityEnum {
CONTENT_EXPORT extern const char Low[];
CONTENT_EXPORT extern const char Medium[];
CONTENT_EXPORT extern const char High[];
} // namespace CookiePriorityEnum

namespace CookieSourceSchemeEnum {
CONTENT_EXPORT extern const char Unset[];
CONTENT_EXPORT extern const char NonSecure[];
CONTENT_EXPORT extern const char Secure[];
} // namespace CookieSourceSchemeEnum

namespace ResourcePriorityEnum {
CONTENT_EXPORT extern const char VeryLow[];
CONTENT_EXPORT extern const char Low[];
CONTENT_EXPORT extern const char Medium[];
CONTENT_EXPORT extern const char High[];
CONTENT_EXPORT extern const char VeryHigh[];
} // namespace ResourcePriorityEnum

namespace CertificateTransparencyComplianceEnum {
CONTENT_EXPORT extern const char Unknown[];
CONTENT_EXPORT extern const char NotCompliant[];
CONTENT_EXPORT extern const char Compliant[];
} // namespace CertificateTransparencyComplianceEnum

namespace BlockedReasonEnum {
CONTENT_EXPORT extern const char Other[];
CONTENT_EXPORT extern const char Csp[];
CONTENT_EXPORT extern const char MixedContent[];
CONTENT_EXPORT extern const char Origin[];
CONTENT_EXPORT extern const char Inspector[];
CONTENT_EXPORT extern const char SubresourceFilter[];
CONTENT_EXPORT extern const char ContentType[];
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 BlockedReasonEnum

namespace CorsErrorEnum {
CONTENT_EXPORT extern const char DisallowedByMode[];
CONTENT_EXPORT extern const char InvalidResponse[];
CONTENT_EXPORT extern const char WildcardOriginNotAllowed[];
CONTENT_EXPORT extern const char MissingAllowOriginHeader[];
CONTENT_EXPORT extern const char MultipleAllowOriginValues[];
CONTENT_EXPORT extern const char InvalidAllowOriginValue[];
CONTENT_EXPORT extern const char AllowOriginMismatch[];
CONTENT_EXPORT extern const char InvalidAllowCredentials[];
CONTENT_EXPORT extern const char CorsDisabledScheme[];
CONTENT_EXPORT extern const char PreflightInvalidStatus[];
CONTENT_EXPORT extern const char PreflightDisallowedRedirect[];
CONTENT_EXPORT extern const char PreflightWildcardOriginNotAllowed[];
CONTENT_EXPORT extern const char PreflightMissingAllowOriginHeader[];
CONTENT_EXPORT extern const char PreflightMultipleAllowOriginValues[];
CONTENT_EXPORT extern const char PreflightInvalidAllowOriginValue[];
CONTENT_EXPORT extern const char PreflightAllowOriginMismatch[];
CONTENT_EXPORT extern const char PreflightInvalidAllowCredentials[];
CONTENT_EXPORT extern const char PreflightMissingAllowExternal[];
CONTENT_EXPORT extern const char PreflightInvalidAllowExternal[];
CONTENT_EXPORT extern const char PreflightMissingAllowPrivateNetwork[];
CONTENT_EXPORT extern const char PreflightInvalidAllowPrivateNetwork[];
CONTENT_EXPORT extern const char InvalidAllowMethodsPreflightResponse[];
CONTENT_EXPORT extern const char InvalidAllowHeadersPreflightResponse[];
CONTENT_EXPORT extern const char MethodDisallowedByPreflightResponse[];
CONTENT_EXPORT extern const char HeaderDisallowedByPreflightResponse[];
CONTENT_EXPORT extern const char RedirectContainsCredentials[];
CONTENT_EXPORT extern const char InsecurePrivateNetwork[];
CONTENT_EXPORT extern const char InvalidPrivateNetworkAccess[];
CONTENT_EXPORT extern const char UnexpectedPrivateNetworkAccess[];
CONTENT_EXPORT extern const char NoCorsRedirectModeNotFollow[];
CONTENT_EXPORT extern const char PreflightMissingPrivateNetworkAccessId[];
CONTENT_EXPORT extern const char PreflightMissingPrivateNetworkAccessName[];
CONTENT_EXPORT extern const char PrivateNetworkAccessPermissionUnavailable[];
CONTENT_EXPORT extern const char PrivateNetworkAccessPermissionDenied[];
} // namespace CorsErrorEnum

namespace ServiceWorkerResponseSourceEnum {
CONTENT_EXPORT extern const char CacheStorage[];
CONTENT_EXPORT extern const char HttpCache[];
CONTENT_EXPORT extern const char FallbackCode[];
CONTENT_EXPORT extern const char Network[];
} // namespace ServiceWorkerResponseSourceEnum

namespace TrustTokenOperationTypeEnum {
CONTENT_EXPORT extern const char Issuance[];
CONTENT_EXPORT extern const char Redemption[];
CONTENT_EXPORT extern const char Signing[];
} // namespace TrustTokenOperationTypeEnum

namespace AlternateProtocolUsageEnum {
CONTENT_EXPORT extern const char AlternativeJobWonWithoutRace[];
CONTENT_EXPORT extern const char AlternativeJobWonRace[];
CONTENT_EXPORT extern const char MainJobWonRace[];
CONTENT_EXPORT extern const char MappingMissing[];
CONTENT_EXPORT extern const char Broken[];
CONTENT_EXPORT extern const char DnsAlpnH3JobWonWithoutRace[];
CONTENT_EXPORT extern const char DnsAlpnH3JobWonRace[];
CONTENT_EXPORT extern const char UnspecifiedReason[];
} // namespace AlternateProtocolUsageEnum

namespace ServiceWorkerRouterSourceEnum {
CONTENT_EXPORT extern const char Network[];
CONTENT_EXPORT extern const char Cache[];
CONTENT_EXPORT extern const char FetchEvent[];
CONTENT_EXPORT extern const char RaceNetworkAndFetchHandler[];
} // namespace ServiceWorkerRouterSourceEnum

namespace SetCookieBlockedReasonEnum {
CONTENT_EXPORT extern const char SecureOnly[];
CONTENT_EXPORT extern const char SameSiteStrict[];
CONTENT_EXPORT extern const char SameSiteLax[];
CONTENT_EXPORT extern const char SameSiteUnspecifiedTreatedAsLax[];
CONTENT_EXPORT extern const char SameSiteNoneInsecure[];
CONTENT_EXPORT extern const char UserPreferences[];
CONTENT_EXPORT extern const char ThirdPartyPhaseout[];
CONTENT_EXPORT extern const char ThirdPartyBlockedInFirstPartySet[];
CONTENT_EXPORT extern const char SyntaxError[];
CONTENT_EXPORT extern const char SchemeNotSupported[];
CONTENT_EXPORT extern const char OverwriteSecure[];
CONTENT_EXPORT extern const char InvalidDomain[];
CONTENT_EXPORT extern const char InvalidPrefix[];
CONTENT_EXPORT extern const char UnknownError[];
CONTENT_EXPORT extern const char SchemefulSameSiteStrict[];
CONTENT_EXPORT extern const char SchemefulSameSiteLax[];
CONTENT_EXPORT extern const char SchemefulSameSiteUnspecifiedTreatedAsLax[];
CONTENT_EXPORT extern const char SamePartyFromCrossPartyContext[];
CONTENT_EXPORT extern const char SamePartyConflictsWithOtherAttributes[];
CONTENT_EXPORT extern const char NameValuePairExceedsMaxSize[];
CONTENT_EXPORT extern const char DisallowedCharacter[];
CONTENT_EXPORT extern const char NoCookieContent[];
} // namespace SetCookieBlockedReasonEnum

namespace CookieBlockedReasonEnum {
CONTENT_EXPORT extern const char SecureOnly[];
CONTENT_EXPORT extern const char NotOnPath[];
CONTENT_EXPORT extern const char DomainMismatch[];
CONTENT_EXPORT extern const char SameSiteStrict[];
CONTENT_EXPORT extern const char SameSiteLax[];
CONTENT_EXPORT extern const char SameSiteUnspecifiedTreatedAsLax[];
CONTENT_EXPORT extern const char SameSiteNoneInsecure[];
CONTENT_EXPORT extern const char UserPreferences[];
CONTENT_EXPORT extern const char ThirdPartyPhaseout[];
CONTENT_EXPORT extern const char ThirdPartyBlockedInFirstPartySet[];
CONTENT_EXPORT extern const char UnknownError[];
CONTENT_EXPORT extern const char SchemefulSameSiteStrict[];
CONTENT_EXPORT extern const char SchemefulSameSiteLax[];
CONTENT_EXPORT extern const char SchemefulSameSiteUnspecifiedTreatedAsLax[];
CONTENT_EXPORT extern const char SamePartyFromCrossPartyContext[];
CONTENT_EXPORT extern const char NameValuePairExceedsMaxSize[];
} // namespace CookieBlockedReasonEnum

namespace CookieExemptionReasonEnum {
CONTENT_EXPORT extern const char None[];
CONTENT_EXPORT extern const char UserSetting[];
CONTENT_EXPORT extern const char TPCDMetadata[];
CONTENT_EXPORT extern const char TPCDDeprecationTrial[];
CONTENT_EXPORT extern const char TopLevelTPCDDeprecationTrial[];
CONTENT_EXPORT extern const char TPCDHeuristics[];
CONTENT_EXPORT extern const char EnterprisePolicy[];
CONTENT_EXPORT extern const char StorageAccess[];
CONTENT_EXPORT extern const char TopLevelStorageAccess[];
CONTENT_EXPORT extern const char CorsOptIn[];
CONTENT_EXPORT extern const char Scheme[];
} // namespace CookieExemptionReasonEnum

namespace InterceptionStageEnum {
CONTENT_EXPORT extern const char Request[];
CONTENT_EXPORT extern const char HeadersReceived[];
} // namespace InterceptionStageEnum

namespace SignedExchangeErrorFieldEnum {
CONTENT_EXPORT extern const char SignatureSig[];
CONTENT_EXPORT extern const char SignatureIntegrity[];
CONTENT_EXPORT extern const char SignatureCertUrl[];
CONTENT_EXPORT extern const char SignatureCertSha256[];
CONTENT_EXPORT extern const char SignatureValidityUrl[];
CONTENT_EXPORT extern const char SignatureTimestamps[];
} // namespace SignedExchangeErrorFieldEnum

namespace ContentEncodingEnum {
CONTENT_EXPORT extern const char Deflate[];
CONTENT_EXPORT extern const char Gzip[];
CONTENT_EXPORT extern const char Br[];
CONTENT_EXPORT extern const char Zstd[];
} // namespace ContentEncodingEnum

namespace PrivateNetworkRequestPolicyEnum {
CONTENT_EXPORT extern const char Allow[];
CONTENT_EXPORT extern const char BlockFromInsecureToMorePrivate[];
CONTENT_EXPORT extern const char WarnFromInsecureToMorePrivate[];
CONTENT_EXPORT extern const char PreflightBlock[];
CONTENT_EXPORT extern const char PreflightWarn[];
} // namespace PrivateNetworkRequestPolicyEnum

namespace IPAddressSpaceEnum {
CONTENT_EXPORT extern const char Local[];
CONTENT_EXPORT extern const char Private[];
CONTENT_EXPORT extern const char Public[];
CONTENT_EXPORT extern const char Unknown[];
} // namespace IPAddressSpaceEnum

namespace CrossOriginOpenerPolicyValueEnum {
CONTENT_EXPORT extern const char SameOrigin[];
CONTENT_EXPORT extern const char SameOriginAllowPopups[];
CONTENT_EXPORT extern const char RestrictProperties[];
CONTENT_EXPORT extern const char UnsafeNone[];
CONTENT_EXPORT extern const char SameOriginPlusCoep[];
CONTENT_EXPORT extern const char RestrictPropertiesPlusCoep[];
CONTENT_EXPORT extern const char NoopenerAllowPopups[];
} // namespace CrossOriginOpenerPolicyValueEnum

namespace CrossOriginEmbedderPolicyValueEnum {
CONTENT_EXPORT extern const char None[];
CONTENT_EXPORT extern const char Credentialless[];
CONTENT_EXPORT extern const char RequireCorp[];
} // namespace CrossOriginEmbedderPolicyValueEnum

namespace ContentSecurityPolicySourceEnum {
CONTENT_EXPORT extern const char HTTP[];
CONTENT_EXPORT extern const char Meta[];
} // namespace ContentSecurityPolicySourceEnum

namespace ReportStatusEnum {
CONTENT_EXPORT extern const char Queued[];
CONTENT_EXPORT extern const char Pending[];
CONTENT_EXPORT extern const char MarkedForRemoval[];
CONTENT_EXPORT extern const char Success[];
} // namespace ReportStatusEnum

namespace TrustTokenOperationDone {
namespace StatusEnum {
CONTENT_EXPORT extern const char* Ok;
CONTENT_EXPORT extern const char* InvalidArgument;
CONTENT_EXPORT extern const char* MissingIssuerKeys;
CONTENT_EXPORT extern const char* FailedPrecondition;
CONTENT_EXPORT extern const char* ResourceExhausted;
CONTENT_EXPORT extern const char* AlreadyExists;
CONTENT_EXPORT extern const char* ResourceLimited;
CONTENT_EXPORT extern const char* Unauthorized;
CONTENT_EXPORT extern const char* BadResponse;
CONTENT_EXPORT extern const char* InternalError;
CONTENT_EXPORT extern const char* UnknownError;
CONTENT_EXPORT extern const char* FulfilledLocally;
} // StatusEnum
} // TrustTokenOperationDone

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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

class CONTENT_EXPORT Backend {};

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

class CONTENT_EXPORT Frontend {};

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

class CONTENT_EXPORT Dispatcher {};

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

class CONTENT_EXPORT Metainfo {};

} // namespace Network
} // namespace content
} // namespace protocol

#endif // !defined(content_protocol_Network_h)