// Package storage provides the Chrome DevTools Protocol // commands, types, and events for the Storage domain. // // Generated by the cdproto-gen command.
package storage // Code generated by cdproto-gen. DO NOT EDIT. import ( ) // GetStorageKeyForFrameParams returns a storage key given a frame id. type GetStorageKeyForFrameParams struct { FrameID cdp.FrameID `json:"frameId"` } // GetStorageKeyForFrame returns a storage key given a frame id. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getStorageKeyForFrame // // parameters: // // frameID func ( cdp.FrameID) *GetStorageKeyForFrameParams { return &GetStorageKeyForFrameParams{ FrameID: , } } // GetStorageKeyForFrameReturns return values. type GetStorageKeyForFrameReturns struct { StorageKey SerializedStorageKey `json:"storageKey,omitempty"` } // Do executes Storage.getStorageKeyForFrame against the provided context. // // returns: // // storageKey func ( *GetStorageKeyForFrameParams) ( context.Context) ( SerializedStorageKey, error) { // execute var GetStorageKeyForFrameReturns = cdp.Execute(, CommandGetStorageKeyForFrame, , &) if != nil { return "", } return .StorageKey, nil } // ClearDataForOriginParams clears storage for origin. type ClearDataForOriginParams struct { Origin string `json:"origin"` // Security origin. StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear. } // ClearDataForOrigin clears storage for origin. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearDataForOrigin // // parameters: // // origin - Security origin. // storageTypes - Comma separated list of StorageType to clear. func ( string, string) *ClearDataForOriginParams { return &ClearDataForOriginParams{ Origin: , StorageTypes: , } } // Do executes Storage.clearDataForOrigin against the provided context. func ( *ClearDataForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandClearDataForOrigin, , nil) } // ClearDataForStorageKeyParams clears storage for storage key. type ClearDataForStorageKeyParams struct { StorageKey string `json:"storageKey"` // Storage key. StorageTypes string `json:"storageTypes"` // Comma separated list of StorageType to clear. } // ClearDataForStorageKey clears storage for storage key. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearDataForStorageKey // // parameters: // // storageKey - Storage key. // storageTypes - Comma separated list of StorageType to clear. func ( string, string) *ClearDataForStorageKeyParams { return &ClearDataForStorageKeyParams{ StorageKey: , StorageTypes: , } } // Do executes Storage.clearDataForStorageKey against the provided context. func ( *ClearDataForStorageKeyParams) ( context.Context) ( error) { return cdp.Execute(, CommandClearDataForStorageKey, , nil) } // GetCookiesParams returns all browser cookies. type GetCookiesParams struct { BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint. } // GetCookies returns all browser cookies. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getCookies // // parameters: func () *GetCookiesParams { return &GetCookiesParams{} } // WithBrowserContextID browser context to use when called on the browser // endpoint. func ( GetCookiesParams) ( cdp.BrowserContextID) *GetCookiesParams { .BrowserContextID = return & } // GetCookiesReturns return values. type GetCookiesReturns struct { Cookies []*network.Cookie `json:"cookies,omitempty"` // Array of cookie objects. } // Do executes Storage.getCookies against the provided context. // // returns: // // cookies - Array of cookie objects. func ( *GetCookiesParams) ( context.Context) ( []*network.Cookie, error) { // execute var GetCookiesReturns = cdp.Execute(, CommandGetCookies, , &) if != nil { return nil, } return .Cookies, nil } // SetCookiesParams sets given cookies. type SetCookiesParams struct { Cookies []*network.CookieParam `json:"cookies"` // Cookies to be set. BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint. } // SetCookies sets given cookies. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setCookies // // parameters: // // cookies - Cookies to be set. func ( []*network.CookieParam) *SetCookiesParams { return &SetCookiesParams{ Cookies: , } } // WithBrowserContextID browser context to use when called on the browser // endpoint. func ( SetCookiesParams) ( cdp.BrowserContextID) *SetCookiesParams { .BrowserContextID = return & } // Do executes Storage.setCookies against the provided context. func ( *SetCookiesParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetCookies, , nil) } // ClearCookiesParams clears cookies. type ClearCookiesParams struct { BrowserContextID cdp.BrowserContextID `json:"browserContextId,omitempty"` // Browser context to use when called on the browser endpoint. } // ClearCookies clears cookies. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearCookies // // parameters: func () *ClearCookiesParams { return &ClearCookiesParams{} } // WithBrowserContextID browser context to use when called on the browser // endpoint. func ( ClearCookiesParams) ( cdp.BrowserContextID) *ClearCookiesParams { .BrowserContextID = return & } // Do executes Storage.clearCookies against the provided context. func ( *ClearCookiesParams) ( context.Context) ( error) { return cdp.Execute(, CommandClearCookies, , nil) } // GetUsageAndQuotaParams returns usage and quota in bytes. type GetUsageAndQuotaParams struct { Origin string `json:"origin"` // Security origin. } // GetUsageAndQuota returns usage and quota in bytes. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getUsageAndQuota // // parameters: // // origin - Security origin. func ( string) *GetUsageAndQuotaParams { return &GetUsageAndQuotaParams{ Origin: , } } // GetUsageAndQuotaReturns return values. type GetUsageAndQuotaReturns struct { Usage float64 `json:"usage,omitempty"` // Storage usage (bytes). Quota float64 `json:"quota,omitempty"` // Storage quota (bytes). OverrideActive bool `json:"overrideActive,omitempty"` // Whether or not the origin has an active storage quota override UsageBreakdown []*UsageForType `json:"usageBreakdown,omitempty"` // Storage usage per type (bytes). } // Do executes Storage.getUsageAndQuota against the provided context. // // returns: // // usage - Storage usage (bytes). // quota - Storage quota (bytes). // overrideActive - Whether or not the origin has an active storage quota override // usageBreakdown - Storage usage per type (bytes). func ( *GetUsageAndQuotaParams) ( context.Context) ( float64, float64, bool, []*UsageForType, error) { // execute var GetUsageAndQuotaReturns = cdp.Execute(, CommandGetUsageAndQuota, , &) if != nil { return 0, 0, false, nil, } return .Usage, .Quota, .OverrideActive, .UsageBreakdown, nil } // OverrideQuotaForOriginParams override quota for the specified origin. type OverrideQuotaForOriginParams struct { Origin string `json:"origin"` // Security origin. QuotaSize float64 `json:"quotaSize,omitempty"` // The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize). } // OverrideQuotaForOrigin override quota for the specified origin. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-overrideQuotaForOrigin // // parameters: // // origin - Security origin. func ( string) *OverrideQuotaForOriginParams { return &OverrideQuotaForOriginParams{ Origin: , } } // WithQuotaSize the quota size (in bytes) to override the original quota // with. If this is called multiple times, the overridden quota will be equal to // the quotaSize provided in the final call. If this is called without // specifying a quotaSize, the quota will be reset to the default value for the // specified origin. If this is called multiple times with different origins, // the override will be maintained for each origin until it is disabled (called // without a quotaSize). func ( OverrideQuotaForOriginParams) ( float64) *OverrideQuotaForOriginParams { .QuotaSize = return & } // Do executes Storage.overrideQuotaForOrigin against the provided context. func ( *OverrideQuotaForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandOverrideQuotaForOrigin, , nil) } // TrackCacheStorageForOriginParams registers origin to be notified when an // update occurs to its cache storage list. type TrackCacheStorageForOriginParams struct { Origin string `json:"origin"` // Security origin. } // TrackCacheStorageForOrigin registers origin to be notified when an update // occurs to its cache storage list. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackCacheStorageForOrigin // // parameters: // // origin - Security origin. func ( string) *TrackCacheStorageForOriginParams { return &TrackCacheStorageForOriginParams{ Origin: , } } // Do executes Storage.trackCacheStorageForOrigin against the provided context. func ( *TrackCacheStorageForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandTrackCacheStorageForOrigin, , nil) } // TrackCacheStorageForStorageKeyParams registers storage key to be notified // when an update occurs to its cache storage list. type TrackCacheStorageForStorageKeyParams struct { StorageKey string `json:"storageKey"` // Storage key. } // TrackCacheStorageForStorageKey registers storage key to be notified when // an update occurs to its cache storage list. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackCacheStorageForStorageKey // // parameters: // // storageKey - Storage key. func ( string) *TrackCacheStorageForStorageKeyParams { return &TrackCacheStorageForStorageKeyParams{ StorageKey: , } } // Do executes Storage.trackCacheStorageForStorageKey against the provided context. func ( *TrackCacheStorageForStorageKeyParams) ( context.Context) ( error) { return cdp.Execute(, CommandTrackCacheStorageForStorageKey, , nil) } // TrackIndexedDBForOriginParams registers origin to be notified when an // update occurs to its IndexedDB. type TrackIndexedDBForOriginParams struct { Origin string `json:"origin"` // Security origin. } // TrackIndexedDBForOrigin registers origin to be notified when an update // occurs to its IndexedDB. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackIndexedDBForOrigin // // parameters: // // origin - Security origin. func ( string) *TrackIndexedDBForOriginParams { return &TrackIndexedDBForOriginParams{ Origin: , } } // Do executes Storage.trackIndexedDBForOrigin against the provided context. func ( *TrackIndexedDBForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandTrackIndexedDBForOrigin, , nil) } // TrackIndexedDBForStorageKeyParams registers storage key to be notified // when an update occurs to its IndexedDB. type TrackIndexedDBForStorageKeyParams struct { StorageKey string `json:"storageKey"` // Storage key. } // TrackIndexedDBForStorageKey registers storage key to be notified when an // update occurs to its IndexedDB. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-trackIndexedDBForStorageKey // // parameters: // // storageKey - Storage key. func ( string) *TrackIndexedDBForStorageKeyParams { return &TrackIndexedDBForStorageKeyParams{ StorageKey: , } } // Do executes Storage.trackIndexedDBForStorageKey against the provided context. func ( *TrackIndexedDBForStorageKeyParams) ( context.Context) ( error) { return cdp.Execute(, CommandTrackIndexedDBForStorageKey, , nil) } // UntrackCacheStorageForOriginParams unregisters origin from receiving // notifications for cache storage. type UntrackCacheStorageForOriginParams struct { Origin string `json:"origin"` // Security origin. } // UntrackCacheStorageForOrigin unregisters origin from receiving // notifications for cache storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackCacheStorageForOrigin // // parameters: // // origin - Security origin. func ( string) *UntrackCacheStorageForOriginParams { return &UntrackCacheStorageForOriginParams{ Origin: , } } // Do executes Storage.untrackCacheStorageForOrigin against the provided context. func ( *UntrackCacheStorageForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandUntrackCacheStorageForOrigin, , nil) } // UntrackCacheStorageForStorageKeyParams unregisters storage key from // receiving notifications for cache storage. type UntrackCacheStorageForStorageKeyParams struct { StorageKey string `json:"storageKey"` // Storage key. } // UntrackCacheStorageForStorageKey unregisters storage key from receiving // notifications for cache storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackCacheStorageForStorageKey // // parameters: // // storageKey - Storage key. func ( string) *UntrackCacheStorageForStorageKeyParams { return &UntrackCacheStorageForStorageKeyParams{ StorageKey: , } } // Do executes Storage.untrackCacheStorageForStorageKey against the provided context. func ( *UntrackCacheStorageForStorageKeyParams) ( context.Context) ( error) { return cdp.Execute(, CommandUntrackCacheStorageForStorageKey, , nil) } // UntrackIndexedDBForOriginParams unregisters origin from receiving // notifications for IndexedDB. type UntrackIndexedDBForOriginParams struct { Origin string `json:"origin"` // Security origin. } // UntrackIndexedDBForOrigin unregisters origin from receiving notifications // for IndexedDB. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackIndexedDBForOrigin // // parameters: // // origin - Security origin. func ( string) *UntrackIndexedDBForOriginParams { return &UntrackIndexedDBForOriginParams{ Origin: , } } // Do executes Storage.untrackIndexedDBForOrigin against the provided context. func ( *UntrackIndexedDBForOriginParams) ( context.Context) ( error) { return cdp.Execute(, CommandUntrackIndexedDBForOrigin, , nil) } // UntrackIndexedDBForStorageKeyParams unregisters storage key from receiving // notifications for IndexedDB. type UntrackIndexedDBForStorageKeyParams struct { StorageKey string `json:"storageKey"` // Storage key. } // UntrackIndexedDBForStorageKey unregisters storage key from receiving // notifications for IndexedDB. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-untrackIndexedDBForStorageKey // // parameters: // // storageKey - Storage key. func ( string) *UntrackIndexedDBForStorageKeyParams { return &UntrackIndexedDBForStorageKeyParams{ StorageKey: , } } // Do executes Storage.untrackIndexedDBForStorageKey against the provided context. func ( *UntrackIndexedDBForStorageKeyParams) ( context.Context) ( error) { return cdp.Execute(, CommandUntrackIndexedDBForStorageKey, , nil) } // GetTrustTokensParams returns the number of stored Trust Tokens per issuer // for the current browsing context. type GetTrustTokensParams struct{} // GetTrustTokens returns the number of stored Trust Tokens per issuer for // the current browsing context. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getTrustTokens func () *GetTrustTokensParams { return &GetTrustTokensParams{} } // GetTrustTokensReturns return values. type GetTrustTokensReturns struct { Tokens []*TrustTokens `json:"tokens,omitempty"` } // Do executes Storage.getTrustTokens against the provided context. // // returns: // // tokens func ( *GetTrustTokensParams) ( context.Context) ( []*TrustTokens, error) { // execute var GetTrustTokensReturns = cdp.Execute(, CommandGetTrustTokens, nil, &) if != nil { return nil, } return .Tokens, nil } // ClearTrustTokensParams removes all Trust Tokens issued by the provided // issuerOrigin. Leaves other stored data, including the issuer's Redemption // Records, intact. type ClearTrustTokensParams struct { IssuerOrigin string `json:"issuerOrigin"` } // ClearTrustTokens removes all Trust Tokens issued by the provided // issuerOrigin. Leaves other stored data, including the issuer's Redemption // Records, intact. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearTrustTokens // // parameters: // // issuerOrigin func ( string) *ClearTrustTokensParams { return &ClearTrustTokensParams{ IssuerOrigin: , } } // ClearTrustTokensReturns return values. type ClearTrustTokensReturns struct { DidDeleteTokens bool `json:"didDeleteTokens,omitempty"` // True if any tokens were deleted, false otherwise. } // Do executes Storage.clearTrustTokens against the provided context. // // returns: // // didDeleteTokens - True if any tokens were deleted, false otherwise. func ( *ClearTrustTokensParams) ( context.Context) ( bool, error) { // execute var ClearTrustTokensReturns = cdp.Execute(, CommandClearTrustTokens, , &) if != nil { return false, } return .DidDeleteTokens, nil } // GetInterestGroupDetailsParams gets details for a named interest group. type GetInterestGroupDetailsParams struct { OwnerOrigin string `json:"ownerOrigin"` Name string `json:"name"` } // GetInterestGroupDetails gets details for a named interest group. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getInterestGroupDetails // // parameters: // // ownerOrigin // name func ( string, string) *GetInterestGroupDetailsParams { return &GetInterestGroupDetailsParams{ OwnerOrigin: , Name: , } } // GetInterestGroupDetailsReturns return values. type GetInterestGroupDetailsReturns struct { Details *InterestGroupDetails `json:"details,omitempty"` } // Do executes Storage.getInterestGroupDetails against the provided context. // // returns: // // details func ( *GetInterestGroupDetailsParams) ( context.Context) ( *InterestGroupDetails, error) { // execute var GetInterestGroupDetailsReturns = cdp.Execute(, CommandGetInterestGroupDetails, , &) if != nil { return nil, } return .Details, nil } // SetInterestGroupTrackingParams enables/Disables issuing of // interestGroupAccessed events. type SetInterestGroupTrackingParams struct { Enable bool `json:"enable"` } // SetInterestGroupTracking enables/Disables issuing of interestGroupAccessed // events. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setInterestGroupTracking // // parameters: // // enable func ( bool) *SetInterestGroupTrackingParams { return &SetInterestGroupTrackingParams{ Enable: , } } // Do executes Storage.setInterestGroupTracking against the provided context. func ( *SetInterestGroupTrackingParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetInterestGroupTracking, , nil) } // GetSharedStorageMetadataParams gets metadata for an origin's shared // storage. type GetSharedStorageMetadataParams struct { OwnerOrigin string `json:"ownerOrigin"` } // GetSharedStorageMetadata gets metadata for an origin's shared storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getSharedStorageMetadata // // parameters: // // ownerOrigin func ( string) *GetSharedStorageMetadataParams { return &GetSharedStorageMetadataParams{ OwnerOrigin: , } } // GetSharedStorageMetadataReturns return values. type GetSharedStorageMetadataReturns struct { Metadata *SharedStorageMetadata `json:"metadata,omitempty"` } // Do executes Storage.getSharedStorageMetadata against the provided context. // // returns: // // metadata func ( *GetSharedStorageMetadataParams) ( context.Context) ( *SharedStorageMetadata, error) { // execute var GetSharedStorageMetadataReturns = cdp.Execute(, CommandGetSharedStorageMetadata, , &) if != nil { return nil, } return .Metadata, nil } // GetSharedStorageEntriesParams gets the entries in an given origin's shared // storage. type GetSharedStorageEntriesParams struct { OwnerOrigin string `json:"ownerOrigin"` } // GetSharedStorageEntries gets the entries in an given origin's shared // storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-getSharedStorageEntries // // parameters: // // ownerOrigin func ( string) *GetSharedStorageEntriesParams { return &GetSharedStorageEntriesParams{ OwnerOrigin: , } } // GetSharedStorageEntriesReturns return values. type GetSharedStorageEntriesReturns struct { Entries []*SharedStorageEntry `json:"entries,omitempty"` } // Do executes Storage.getSharedStorageEntries against the provided context. // // returns: // // entries func ( *GetSharedStorageEntriesParams) ( context.Context) ( []*SharedStorageEntry, error) { // execute var GetSharedStorageEntriesReturns = cdp.Execute(, CommandGetSharedStorageEntries, , &) if != nil { return nil, } return .Entries, nil } // SetSharedStorageEntryParams sets entry with key and value for a given // origin's shared storage. type SetSharedStorageEntryParams struct { OwnerOrigin string `json:"ownerOrigin"` Key string `json:"key"` Value string `json:"value"` IgnoreIfPresent bool `json:"ignoreIfPresent,omitempty"` // If ignoreIfPresent is included and true, then only sets the entry if key doesn't already exist. } // SetSharedStorageEntry sets entry with key and value for a given origin's // shared storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setSharedStorageEntry // // parameters: // // ownerOrigin // key // value func ( string, string, string) *SetSharedStorageEntryParams { return &SetSharedStorageEntryParams{ OwnerOrigin: , Key: , Value: , } } // WithIgnoreIfPresent if ignoreIfPresent is included and true, then only // sets the entry if key doesn't already exist. func ( SetSharedStorageEntryParams) ( bool) *SetSharedStorageEntryParams { .IgnoreIfPresent = return & } // Do executes Storage.setSharedStorageEntry against the provided context. func ( *SetSharedStorageEntryParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetSharedStorageEntry, , nil) } // DeleteSharedStorageEntryParams deletes entry for key (if it exists) for a // given origin's shared storage. type DeleteSharedStorageEntryParams struct { OwnerOrigin string `json:"ownerOrigin"` Key string `json:"key"` } // DeleteSharedStorageEntry deletes entry for key (if it exists) for a given // origin's shared storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-deleteSharedStorageEntry // // parameters: // // ownerOrigin // key func ( string, string) *DeleteSharedStorageEntryParams { return &DeleteSharedStorageEntryParams{ OwnerOrigin: , Key: , } } // Do executes Storage.deleteSharedStorageEntry against the provided context. func ( *DeleteSharedStorageEntryParams) ( context.Context) ( error) { return cdp.Execute(, CommandDeleteSharedStorageEntry, , nil) } // ClearSharedStorageEntriesParams clears all entries for a given origin's // shared storage. type ClearSharedStorageEntriesParams struct { OwnerOrigin string `json:"ownerOrigin"` } // ClearSharedStorageEntries clears all entries for a given origin's shared // storage. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-clearSharedStorageEntries // // parameters: // // ownerOrigin func ( string) *ClearSharedStorageEntriesParams { return &ClearSharedStorageEntriesParams{ OwnerOrigin: , } } // Do executes Storage.clearSharedStorageEntries against the provided context. func ( *ClearSharedStorageEntriesParams) ( context.Context) ( error) { return cdp.Execute(, CommandClearSharedStorageEntries, , nil) } // ResetSharedStorageBudgetParams resets the budget for ownerOrigin by // clearing all budget withdrawals. type ResetSharedStorageBudgetParams struct { OwnerOrigin string `json:"ownerOrigin"` } // ResetSharedStorageBudget resets the budget for ownerOrigin by clearing all // budget withdrawals. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-resetSharedStorageBudget // // parameters: // // ownerOrigin func ( string) *ResetSharedStorageBudgetParams { return &ResetSharedStorageBudgetParams{ OwnerOrigin: , } } // Do executes Storage.resetSharedStorageBudget against the provided context. func ( *ResetSharedStorageBudgetParams) ( context.Context) ( error) { return cdp.Execute(, CommandResetSharedStorageBudget, , nil) } // SetSharedStorageTrackingParams enables/disables issuing of // sharedStorageAccessed events. type SetSharedStorageTrackingParams struct { Enable bool `json:"enable"` } // SetSharedStorageTracking enables/disables issuing of sharedStorageAccessed // events. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setSharedStorageTracking // // parameters: // // enable func ( bool) *SetSharedStorageTrackingParams { return &SetSharedStorageTrackingParams{ Enable: , } } // Do executes Storage.setSharedStorageTracking against the provided context. func ( *SetSharedStorageTrackingParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetSharedStorageTracking, , nil) } // SetStorageBucketTrackingParams set tracking for a storage key's buckets. type SetStorageBucketTrackingParams struct { StorageKey string `json:"storageKey"` Enable bool `json:"enable"` } // SetStorageBucketTracking set tracking for a storage key's buckets. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setStorageBucketTracking // // parameters: // // storageKey // enable func ( string, bool) *SetStorageBucketTrackingParams { return &SetStorageBucketTrackingParams{ StorageKey: , Enable: , } } // Do executes Storage.setStorageBucketTracking against the provided context. func ( *SetStorageBucketTrackingParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetStorageBucketTracking, , nil) } // DeleteStorageBucketParams deletes the Storage Bucket with the given // storage key and bucket name. type DeleteStorageBucketParams struct { Bucket *Bucket `json:"bucket"` } // DeleteStorageBucket deletes the Storage Bucket with the given storage key // and bucket name. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-deleteStorageBucket // // parameters: // // bucket func ( *Bucket) *DeleteStorageBucketParams { return &DeleteStorageBucketParams{ Bucket: , } } // Do executes Storage.deleteStorageBucket against the provided context. func ( *DeleteStorageBucketParams) ( context.Context) ( error) { return cdp.Execute(, CommandDeleteStorageBucket, , nil) } // RunBounceTrackingMitigationsParams deletes state for sites identified as // potential bounce trackers, immediately. type RunBounceTrackingMitigationsParams struct{} // RunBounceTrackingMitigations deletes state for sites identified as // potential bounce trackers, immediately. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-runBounceTrackingMitigations func () *RunBounceTrackingMitigationsParams { return &RunBounceTrackingMitigationsParams{} } // RunBounceTrackingMitigationsReturns return values. type RunBounceTrackingMitigationsReturns struct { DeletedSites []string `json:"deletedSites,omitempty"` } // Do executes Storage.runBounceTrackingMitigations against the provided context. // // returns: // // deletedSites func ( *RunBounceTrackingMitigationsParams) ( context.Context) ( []string, error) { // execute var RunBounceTrackingMitigationsReturns = cdp.Execute(, CommandRunBounceTrackingMitigations, nil, &) if != nil { return nil, } return .DeletedSites, nil } // SetAttributionReportingLocalTestingModeParams // https://wicg.github.io/attribution-reporting-api/. type SetAttributionReportingLocalTestingModeParams struct { Enabled bool `json:"enabled"` // If enabled, noise is suppressed and reports are sent immediately. } // SetAttributionReportingLocalTestingMode // https://wicg.github.io/attribution-reporting-api/. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setAttributionReportingLocalTestingMode // // parameters: // // enabled - If enabled, noise is suppressed and reports are sent immediately. func ( bool) *SetAttributionReportingLocalTestingModeParams { return &SetAttributionReportingLocalTestingModeParams{ Enabled: , } } // Do executes Storage.setAttributionReportingLocalTestingMode against the provided context. func ( *SetAttributionReportingLocalTestingModeParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetAttributionReportingLocalTestingMode, , nil) } // SetAttributionReportingTrackingParams enables/disables issuing of // Attribution Reporting events. type SetAttributionReportingTrackingParams struct { Enable bool `json:"enable"` } // SetAttributionReportingTracking enables/disables issuing of Attribution // Reporting events. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Storage#method-setAttributionReportingTracking // // parameters: // // enable func ( bool) *SetAttributionReportingTrackingParams { return &SetAttributionReportingTrackingParams{ Enable: , } } // Do executes Storage.setAttributionReportingTracking against the provided context. func ( *SetAttributionReportingTrackingParams) ( context.Context) ( error) { return cdp.Execute(, CommandSetAttributionReportingTracking, , nil) } // Command names. const ( CommandGetStorageKeyForFrame = "Storage.getStorageKeyForFrame" CommandClearDataForOrigin = "Storage.clearDataForOrigin" CommandClearDataForStorageKey = "Storage.clearDataForStorageKey" CommandGetCookies = "Storage.getCookies" CommandSetCookies = "Storage.setCookies" CommandClearCookies = "Storage.clearCookies" CommandGetUsageAndQuota = "Storage.getUsageAndQuota" CommandOverrideQuotaForOrigin = "Storage.overrideQuotaForOrigin" CommandTrackCacheStorageForOrigin = "Storage.trackCacheStorageForOrigin" CommandTrackCacheStorageForStorageKey = "Storage.trackCacheStorageForStorageKey" CommandTrackIndexedDBForOrigin = "Storage.trackIndexedDBForOrigin" CommandTrackIndexedDBForStorageKey = "Storage.trackIndexedDBForStorageKey" CommandUntrackCacheStorageForOrigin = "Storage.untrackCacheStorageForOrigin" CommandUntrackCacheStorageForStorageKey = "Storage.untrackCacheStorageForStorageKey" CommandUntrackIndexedDBForOrigin = "Storage.untrackIndexedDBForOrigin" CommandUntrackIndexedDBForStorageKey = "Storage.untrackIndexedDBForStorageKey" CommandGetTrustTokens = "Storage.getTrustTokens" CommandClearTrustTokens = "Storage.clearTrustTokens" CommandGetInterestGroupDetails = "Storage.getInterestGroupDetails" CommandSetInterestGroupTracking = "Storage.setInterestGroupTracking" CommandGetSharedStorageMetadata = "Storage.getSharedStorageMetadata" CommandGetSharedStorageEntries = "Storage.getSharedStorageEntries" CommandSetSharedStorageEntry = "Storage.setSharedStorageEntry" CommandDeleteSharedStorageEntry = "Storage.deleteSharedStorageEntry" CommandClearSharedStorageEntries = "Storage.clearSharedStorageEntries" CommandResetSharedStorageBudget = "Storage.resetSharedStorageBudget" CommandSetSharedStorageTracking = "Storage.setSharedStorageTracking" CommandSetStorageBucketTracking = "Storage.setStorageBucketTracking" CommandDeleteStorageBucket = "Storage.deleteStorageBucket" CommandRunBounceTrackingMitigations = "Storage.runBounceTrackingMitigations" CommandSetAttributionReportingLocalTestingMode = "Storage.setAttributionReportingLocalTestingMode" CommandSetAttributionReportingTracking = "Storage.setAttributionReportingTracking" )