b5032069e3
- Refactored chromedp-gen and cdp code so that Execute no longer returns a channel - Fixing potential race problems in handler - Eliminated some dead code - Updated examples to include new logging parameters
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
// Package storage provides the Chrome Debugging Protocol
|
|
// commands, types, and events for the Storage domain.
|
|
//
|
|
// Generated by the chromedp-gen command.
|
|
package storage
|
|
|
|
// AUTOGENERATED. DO NOT EDIT.
|
|
|
|
import (
|
|
"context"
|
|
|
|
cdp "github.com/knq/chromedp/cdp"
|
|
)
|
|
|
|
// ClearDataForOriginParams clears storage for origin.
|
|
type ClearDataForOriginParams struct {
|
|
Origin string `json:"origin"` // Security origin.
|
|
StorageTypes string `json:"storageTypes"` // Comma separated origin names.
|
|
}
|
|
|
|
// ClearDataForOrigin clears storage for origin.
|
|
//
|
|
// parameters:
|
|
// origin - Security origin.
|
|
// storageTypes - Comma separated origin names.
|
|
func ClearDataForOrigin(origin string, storageTypes string) *ClearDataForOriginParams {
|
|
return &ClearDataForOriginParams{
|
|
Origin: origin,
|
|
StorageTypes: storageTypes,
|
|
}
|
|
}
|
|
|
|
// Do executes Storage.clearDataForOrigin against the provided context and
|
|
// target handler.
|
|
func (p *ClearDataForOriginParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
|
return h.Execute(ctxt, cdp.CommandStorageClearDataForOrigin, p, nil)
|
|
}
|