Types

Link copied to clipboard
@Serializable
data class PrefetchStatusUpdated(val key: PreloadingAttemptKey, val initiatingFrameId: FrameId, val prefetchUrl: String, val status: PreloadingStatus, val prefetchStatus: PrefetchStatus, val requestId: RequestId) : PreloadEvent

Fired when a prefetch attempt is updated.

Link copied to clipboard
@Serializable
data class PreloadEnabledStateUpdated(val disabledByPreference: Boolean, val disabledByDataSaver: Boolean, val disabledByBatterySaver: Boolean, val disabledByHoldbackPrefetchSpeculationRules: Boolean, val disabledByHoldbackPrerenderSpeculationRules: Boolean) : PreloadEvent

Fired when a preload enabled state is updated.

Link copied to clipboard
@Serializable
data class PreloadingAttemptSourcesUpdated(val loaderId: LoaderId, val preloadingAttemptSources: List<PreloadingAttemptSource>) : PreloadEvent

Send a list of sources for all preloading attempts in a document.

Link copied to clipboard
@Serializable
data class PrerenderStatusUpdated(val key: PreloadingAttemptKey, val status: PreloadingStatus, val prerenderStatus: PrerenderFinalStatus? = null, val disallowedMojoInterface: String? = null, val mismatchedHeaders: List<PrerenderMismatchedHeaders>? = null) : PreloadEvent

Fired when a prerender attempt is updated.

Link copied to clipboard
@Serializable
data class RuleSetRemoved(val id: RuleSetId) : PreloadEvent

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class RuleSetUpdated(val ruleSet: RuleSet) : PreloadEvent

Upsert. Currently, it is only emitted when a rule set added.