chromium/out/Default/gen/content/browser/devtools/protocol/page.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_Page_h
#define content_protocol_Page_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/dom.h"
#include "content/browser/devtools/protocol/io.h"
#include "content/browser/devtools/protocol/network.h"
#include "content/browser/devtools/protocol/runtime.h"

namespace content {
namespace protocol {
namespace Page {
FrameId;
TransitionType;
class NavigationEntry;
class ScreencastFrameMetadata;
DialogType;
class AppManifestError;
class AppManifestParsedProperties;
class Viewport;
class InstallabilityErrorArgument;
class InstallabilityError;
ReferrerPolicy;
class FileFilter;
class FileHandler;
class ImageResource;
class LaunchHandler;
class ProtocolHandler;
class RelatedApplication;
class ScopeExtension;
class Screenshot;
class ShareTarget;
class Shortcut;
class WebAppManifest;
BackForwardCacheNotRestoredReason;
BackForwardCacheNotRestoredReasonType;
class BackForwardCacheBlockingDetails;
class BackForwardCacheNotRestoredExplanation;
class BackForwardCacheNotRestoredExplanationTree;

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

namespace TransitionTypeEnum {
CONTENT_EXPORT extern const char Link[];
CONTENT_EXPORT extern const char Typed[];
CONTENT_EXPORT extern const char Address_bar[];
CONTENT_EXPORT extern const char Auto_bookmark[];
CONTENT_EXPORT extern const char Auto_subframe[];
CONTENT_EXPORT extern const char Manual_subframe[];
CONTENT_EXPORT extern const char Generated[];
CONTENT_EXPORT extern const char Auto_toplevel[];
CONTENT_EXPORT extern const char Form_submit[];
CONTENT_EXPORT extern const char Reload[];
CONTENT_EXPORT extern const char Keyword[];
CONTENT_EXPORT extern const char Keyword_generated[];
CONTENT_EXPORT extern const char Other[];
} // namespace TransitionTypeEnum

namespace DialogTypeEnum {
CONTENT_EXPORT extern const char Alert[];
CONTENT_EXPORT extern const char Confirm[];
CONTENT_EXPORT extern const char Prompt[];
CONTENT_EXPORT extern const char Beforeunload[];
} // namespace DialogTypeEnum

namespace ReferrerPolicyEnum {
CONTENT_EXPORT extern const char NoReferrer[];
CONTENT_EXPORT extern const char NoReferrerWhenDowngrade[];
CONTENT_EXPORT extern const char Origin[];
CONTENT_EXPORT extern const char OriginWhenCrossOrigin[];
CONTENT_EXPORT extern const char SameOrigin[];
CONTENT_EXPORT extern const char StrictOrigin[];
CONTENT_EXPORT extern const char StrictOriginWhenCrossOrigin[];
CONTENT_EXPORT extern const char UnsafeUrl[];
} // namespace ReferrerPolicyEnum

namespace BackForwardCacheNotRestoredReasonEnum {
CONTENT_EXPORT extern const char NotPrimaryMainFrame[];
CONTENT_EXPORT extern const char BackForwardCacheDisabled[];
CONTENT_EXPORT extern const char RelatedActiveContentsExist[];
CONTENT_EXPORT extern const char HTTPStatusNotOK[];
CONTENT_EXPORT extern const char SchemeNotHTTPOrHTTPS[];
CONTENT_EXPORT extern const char Loading[];
CONTENT_EXPORT extern const char WasGrantedMediaAccess[];
CONTENT_EXPORT extern const char DisableForRenderFrameHostCalled[];
CONTENT_EXPORT extern const char DomainNotAllowed[];
CONTENT_EXPORT extern const char HTTPMethodNotGET[];
CONTENT_EXPORT extern const char SubframeIsNavigating[];
CONTENT_EXPORT extern const char Timeout[];
CONTENT_EXPORT extern const char CacheLimit[];
CONTENT_EXPORT extern const char JavaScriptExecution[];
CONTENT_EXPORT extern const char RendererProcessKilled[];
CONTENT_EXPORT extern const char RendererProcessCrashed[];
CONTENT_EXPORT extern const char SchedulerTrackedFeatureUsed[];
CONTENT_EXPORT extern const char ConflictingBrowsingInstance[];
CONTENT_EXPORT extern const char CacheFlushed[];
CONTENT_EXPORT extern const char ServiceWorkerVersionActivation[];
CONTENT_EXPORT extern const char SessionRestored[];
CONTENT_EXPORT extern const char ServiceWorkerPostMessage[];
CONTENT_EXPORT extern const char EnteredBackForwardCacheBeforeServiceWorkerHostAdded[];
CONTENT_EXPORT extern const char RenderFrameHostReused_SameSite[];
CONTENT_EXPORT extern const char RenderFrameHostReused_CrossSite[];
CONTENT_EXPORT extern const char ServiceWorkerClaim[];
CONTENT_EXPORT extern const char IgnoreEventAndEvict[];
CONTENT_EXPORT extern const char HaveInnerContents[];
CONTENT_EXPORT extern const char TimeoutPuttingInCache[];
CONTENT_EXPORT extern const char BackForwardCacheDisabledByLowMemory[];
CONTENT_EXPORT extern const char BackForwardCacheDisabledByCommandLine[];
CONTENT_EXPORT extern const char NetworkRequestDatapipeDrainedAsBytesConsumer[];
CONTENT_EXPORT extern const char NetworkRequestRedirected[];
CONTENT_EXPORT extern const char NetworkRequestTimeout[];
CONTENT_EXPORT extern const char NetworkExceedsBufferLimit[];
CONTENT_EXPORT extern const char NavigationCancelledWhileRestoring[];
CONTENT_EXPORT extern const char NotMostRecentNavigationEntry[];
CONTENT_EXPORT extern const char BackForwardCacheDisabledForPrerender[];
CONTENT_EXPORT extern const char UserAgentOverrideDiffers[];
CONTENT_EXPORT extern const char ForegroundCacheLimit[];
CONTENT_EXPORT extern const char BrowsingInstanceNotSwapped[];
CONTENT_EXPORT extern const char BackForwardCacheDisabledForDelegate[];
CONTENT_EXPORT extern const char UnloadHandlerExistsInMainFrame[];
CONTENT_EXPORT extern const char UnloadHandlerExistsInSubFrame[];
CONTENT_EXPORT extern const char ServiceWorkerUnregistration[];
CONTENT_EXPORT extern const char CacheControlNoStore[];
CONTENT_EXPORT extern const char CacheControlNoStoreCookieModified[];
CONTENT_EXPORT extern const char CacheControlNoStoreHTTPOnlyCookieModified[];
CONTENT_EXPORT extern const char NoResponseHead[];
CONTENT_EXPORT extern const char Unknown[];
CONTENT_EXPORT extern const char ActivationNavigationsDisallowedForBug1234857[];
CONTENT_EXPORT extern const char ErrorDocument[];
CONTENT_EXPORT extern const char FencedFramesEmbedder[];
CONTENT_EXPORT extern const char CookieDisabled[];
CONTENT_EXPORT extern const char HTTPAuthRequired[];
CONTENT_EXPORT extern const char CookieFlushed[];
CONTENT_EXPORT extern const char BroadcastChannelOnMessage[];
CONTENT_EXPORT extern const char WebViewSettingsChanged[];
CONTENT_EXPORT extern const char WebViewJavaScriptObjectChanged[];
CONTENT_EXPORT extern const char WebViewMessageListenerInjected[];
CONTENT_EXPORT extern const char WebViewSafeBrowsingAllowlistChanged[];
CONTENT_EXPORT extern const char WebViewDocumentStartJavascriptChanged[];
CONTENT_EXPORT extern const char WebSocket[];
CONTENT_EXPORT extern const char WebTransport[];
CONTENT_EXPORT extern const char WebRTC[];
CONTENT_EXPORT extern const char MainResourceHasCacheControlNoStore[];
CONTENT_EXPORT extern const char MainResourceHasCacheControlNoCache[];
CONTENT_EXPORT extern const char SubresourceHasCacheControlNoStore[];
CONTENT_EXPORT extern const char SubresourceHasCacheControlNoCache[];
CONTENT_EXPORT extern const char ContainsPlugins[];
CONTENT_EXPORT extern const char DocumentLoaded[];
CONTENT_EXPORT extern const char OutstandingNetworkRequestOthers[];
CONTENT_EXPORT extern const char RequestedMIDIPermission[];
CONTENT_EXPORT extern const char RequestedAudioCapturePermission[];
CONTENT_EXPORT extern const char RequestedVideoCapturePermission[];
CONTENT_EXPORT extern const char RequestedBackForwardCacheBlockedSensors[];
CONTENT_EXPORT extern const char RequestedBackgroundWorkPermission[];
CONTENT_EXPORT extern const char BroadcastChannel[];
CONTENT_EXPORT extern const char WebXR[];
CONTENT_EXPORT extern const char SharedWorker[];
CONTENT_EXPORT extern const char WebLocks[];
CONTENT_EXPORT extern const char WebHID[];
CONTENT_EXPORT extern const char WebShare[];
CONTENT_EXPORT extern const char RequestedStorageAccessGrant[];
CONTENT_EXPORT extern const char WebNfc[];
CONTENT_EXPORT extern const char OutstandingNetworkRequestFetch[];
CONTENT_EXPORT extern const char OutstandingNetworkRequestXHR[];
CONTENT_EXPORT extern const char AppBanner[];
CONTENT_EXPORT extern const char Printing[];
CONTENT_EXPORT extern const char WebDatabase[];
CONTENT_EXPORT extern const char PictureInPicture[];
CONTENT_EXPORT extern const char SpeechRecognizer[];
CONTENT_EXPORT extern const char IdleManager[];
CONTENT_EXPORT extern const char PaymentManager[];
CONTENT_EXPORT extern const char SpeechSynthesis[];
CONTENT_EXPORT extern const char KeyboardLock[];
CONTENT_EXPORT extern const char WebOTPService[];
CONTENT_EXPORT extern const char OutstandingNetworkRequestDirectSocket[];
CONTENT_EXPORT extern const char InjectedJavascript[];
CONTENT_EXPORT extern const char InjectedStyleSheet[];
CONTENT_EXPORT extern const char KeepaliveRequest[];
CONTENT_EXPORT extern const char IndexedDBEvent[];
CONTENT_EXPORT extern const char Dummy[];
CONTENT_EXPORT extern const char JsNetworkRequestReceivedCacheControlNoStoreResource[];
CONTENT_EXPORT extern const char WebRTCSticky[];
CONTENT_EXPORT extern const char WebTransportSticky[];
CONTENT_EXPORT extern const char WebSocketSticky[];
CONTENT_EXPORT extern const char SmartCard[];
CONTENT_EXPORT extern const char LiveMediaStreamTrack[];
CONTENT_EXPORT extern const char UnloadHandler[];
CONTENT_EXPORT extern const char ParserAborted[];
CONTENT_EXPORT extern const char ContentSecurityHandler[];
CONTENT_EXPORT extern const char ContentWebAuthenticationAPI[];
CONTENT_EXPORT extern const char ContentFileChooser[];
CONTENT_EXPORT extern const char ContentSerial[];
CONTENT_EXPORT extern const char ContentFileSystemAccess[];
CONTENT_EXPORT extern const char ContentMediaDevicesDispatcherHost[];
CONTENT_EXPORT extern const char ContentWebBluetooth[];
CONTENT_EXPORT extern const char ContentWebUSB[];
CONTENT_EXPORT extern const char ContentMediaSessionService[];
CONTENT_EXPORT extern const char ContentScreenReader[];
CONTENT_EXPORT extern const char ContentDiscarded[];
CONTENT_EXPORT extern const char EmbedderPopupBlockerTabHelper[];
CONTENT_EXPORT extern const char EmbedderSafeBrowsingTriggeredPopupBlocker[];
CONTENT_EXPORT extern const char EmbedderSafeBrowsingThreatDetails[];
CONTENT_EXPORT extern const char EmbedderAppBannerManager[];
CONTENT_EXPORT extern const char EmbedderDomDistillerViewerSource[];
CONTENT_EXPORT extern const char EmbedderDomDistillerSelfDeletingRequestDelegate[];
CONTENT_EXPORT extern const char EmbedderOomInterventionTabHelper[];
CONTENT_EXPORT extern const char EmbedderOfflinePage[];
CONTENT_EXPORT extern const char EmbedderChromePasswordManagerClientBindCredentialManager[];
CONTENT_EXPORT extern const char EmbedderPermissionRequestManager[];
CONTENT_EXPORT extern const char EmbedderModalDialog[];
CONTENT_EXPORT extern const char EmbedderExtensions[];
CONTENT_EXPORT extern const char EmbedderExtensionMessaging[];
CONTENT_EXPORT extern const char EmbedderExtensionMessagingForOpenPort[];
CONTENT_EXPORT extern const char EmbedderExtensionSentMessageToCachedFrame[];
CONTENT_EXPORT extern const char RequestedByWebViewClient[];
} // namespace BackForwardCacheNotRestoredReasonEnum

namespace BackForwardCacheNotRestoredReasonTypeEnum {
CONTENT_EXPORT extern const char SupportPending[];
CONTENT_EXPORT extern const char PageSupportNeeded[];
CONTENT_EXPORT extern const char Circumstantial[];
} // namespace BackForwardCacheNotRestoredReasonTypeEnum

namespace CaptureScreenshot {
namespace FormatEnum {
CONTENT_EXPORT extern const char* Jpeg;
CONTENT_EXPORT extern const char* Png;
CONTENT_EXPORT extern const char* Webp;
} // FormatEnum
} // CaptureScreenshot

namespace CaptureSnapshot {
namespace FormatEnum {
CONTENT_EXPORT extern const char* Mhtml;
} // FormatEnum
} // CaptureSnapshot

namespace PrintToPDF {
namespace TransferModeEnum {
CONTENT_EXPORT extern const char* ReturnAsBase64;
CONTENT_EXPORT extern const char* ReturnAsStream;
} // TransferModeEnum
} // PrintToPDF

namespace SetDownloadBehavior {
namespace BehaviorEnum {
CONTENT_EXPORT extern const char* Deny;
CONTENT_EXPORT extern const char* Allow;
CONTENT_EXPORT extern const char* Default;
} // BehaviorEnum
} // SetDownloadBehavior

namespace SetTouchEmulationEnabled {
namespace ConfigurationEnum {
CONTENT_EXPORT extern const char* Mobile;
CONTENT_EXPORT extern const char* Desktop;
} // ConfigurationEnum
} // SetTouchEmulationEnabled

namespace StartScreencast {
namespace FormatEnum {
CONTENT_EXPORT extern const char* Jpeg;
CONTENT_EXPORT extern const char* Png;
} // FormatEnum
} // StartScreencast

namespace SetWebLifecycleState {
namespace StateEnum {
CONTENT_EXPORT extern const char* Frozen;
CONTENT_EXPORT extern const char* Active;
} // StateEnum
} // SetWebLifecycleState

namespace FileChooserOpened {
namespace ModeEnum {
CONTENT_EXPORT extern const char* SelectSingle;
CONTENT_EXPORT extern const char* SelectMultiple;
} // ModeEnum
} // FileChooserOpened

namespace FrameDetached {
namespace ReasonEnum {
CONTENT_EXPORT extern const char* Remove;
CONTENT_EXPORT extern const char* Swap;
} // ReasonEnum
} // FrameDetached

namespace DownloadProgress {
namespace StateEnum {
CONTENT_EXPORT extern const char* InProgress;
CONTENT_EXPORT extern const char* Completed;
CONTENT_EXPORT extern const char* Canceled;
} // StateEnum
} // DownloadProgress

namespace NavigatedWithinDocument {
namespace NavigationTypeEnum {
CONTENT_EXPORT extern const char* Fragment;
CONTENT_EXPORT extern const char* HistoryApi;
CONTENT_EXPORT extern const char* Other;
} // NavigationTypeEnum
} // NavigatedWithinDocument

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

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

class CONTENT_EXPORT Backend {};

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

class CONTENT_EXPORT Frontend {};

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

class CONTENT_EXPORT Dispatcher {};

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

class CONTENT_EXPORT Metainfo {};

} // namespace Page
} // namespace content
} // namespace protocol

#endif // !defined(content_protocol_Page_h)