SharedStorageAccessParams

@Serializable
data class SharedStorageAccessParams(val scriptSourceUrl: String? = null, val dataOrigin: String? = null, val operationName: String? = null, val operationId: String? = null, val keepAlive: Boolean? = null, val privateAggregationConfig: Storage.SharedStoragePrivateAggregationConfig? = null, val serializedData: String? = null, val urlsWithMetadata: List<Storage.SharedStorageUrlWithMetadata>? = null, val urnUuid: String? = null, val key: String? = null, val value: String? = null, val ignoreIfPresent: Boolean? = null, val workletOrdinal: Int? = null, val workletTargetId: String? = null, val withLock: String? = null, val batchUpdateId: String? = null, val batchSize: Int? = null)

Bundles the parameters for shared storage access events whose presence/absence can vary according to SharedStorageAccessType.

Constructors

Link copied to clipboard
constructor(scriptSourceUrl: String? = null, dataOrigin: String? = null, operationName: String? = null, operationId: String? = null, keepAlive: Boolean? = null, privateAggregationConfig: Storage.SharedStoragePrivateAggregationConfig? = null, serializedData: String? = null, urlsWithMetadata: List<Storage.SharedStorageUrlWithMetadata>? = null, urnUuid: String? = null, key: String? = null, value: String? = null, ignoreIfPresent: Boolean? = null, workletOrdinal: Int? = null, workletTargetId: String? = null, withLock: String? = null, batchUpdateId: String? = null, batchSize: Int? = null)

Properties

Link copied to clipboard
val batchSize: Int? = null

Number of modifier methods sent in batch. Present only for SharedStorageAccessMethod: batchUpdate.

Link copied to clipboard
val batchUpdateId: String? = null

If the method has been called as part of a batchUpdate, then this number identifies the batch to which it belongs. Optionally present only for SharedStorageAccessMethods: batchUpdate (required), set, append, delete, and clear.

Link copied to clipboard
val dataOrigin: String? = null

String denoting "context-origin", "script-origin", or a custom origin to be used as the worklet's data origin. Present only for SharedStorageAccessMethod: createWorklet.

Link copied to clipboard

Whether or not to set an entry for a key if that key is already present. Present only for SharedStorageAccessMethod: set.

Link copied to clipboard
val keepAlive: Boolean? = null

Whether or not to keep the worket alive for future run or selectURL calls. Present only for SharedStorageAccessMethods: run and selectURL.

Link copied to clipboard
val key: String? = null

Key for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set, append, delete, and get.

Link copied to clipboard
val operationId: String? = null

ID of the operation call. Present only for SharedStorageAccessMethods: run and selectURL.

Link copied to clipboard
val operationName: String? = null

Name of the registered operation to be run. Present only for SharedStorageAccessMethods: run and selectURL.

Link copied to clipboard

Configures the private aggregation options. Present only for SharedStorageAccessMethods: run and selectURL.

Link copied to clipboard
val scriptSourceUrl: String? = null

Spec of the module script URL. Present only for SharedStorageAccessMethods: addModule and createWorklet.

Link copied to clipboard
val serializedData: String? = null

The operation's serialized data in bytes (converted to a string). Present only for SharedStorageAccessMethods: run and selectURL. TODO(crbug.com/401011862): Consider updating this parameter to binary.

Link copied to clipboard

Array of candidate URLs' specs, along with any associated metadata. Present only for SharedStorageAccessMethod: selectURL.

Link copied to clipboard
val urnUuid: String? = null

Spec of the URN:UUID generated for a selectURL call. Present only for SharedStorageAccessMethod: selectURL.

Link copied to clipboard
val value: String? = null

Value for a specific entry in an origin's shared storage. Present only for SharedStorageAccessMethods: set and append.

Link copied to clipboard
val withLock: String? = null

Name of the lock to be acquired, if present. Optionally present only for SharedStorageAccessMethods: batchUpdate, set, append, delete, and clear.

Link copied to clipboard
val workletOrdinal: Int? = null

A number denoting the (0-based) order of the worklet's creation relative to all other shared storage worklets created by documents using the current storage partition. Present only for SharedStorageAccessMethods: addModule, createWorklet.

Link copied to clipboard
val workletTargetId: String? = null

Hex representation of the DevTools token used as the TargetID for the associated shared storage worklet. Present only for SharedStorageAccessMethods: addModule, createWorklet, run, selectURL, and any other SharedStorageAccessMethod when the SharedStorageAccessScope is sharedStorageWorklet.