From b2d9420f0cb0a572d3a93b107c83140d4e4ffccc Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Mon, 21 Aug 2017 06:56:21 +0700 Subject: [PATCH] Updating to latest protocol.json --- cdp/audits/audits.go | 77 ++ cdp/audits/easyjson.go | 204 +++++ cdp/audits/types.go | 56 ++ cdp/cdp.go | 27 +- cdp/cdputil/cdputil.go | 24 +- cdp/dom/dom.go | 29 +- cdp/dom/easyjson.go | 32 +- cdp/input/easyjson.go | 28 +- cdp/input/input.go | 22 +- cdp/input/types.go | 79 +- cdp/network/easyjson.go | 1214 +++++++++++++++++---------- cdp/network/network.go | 120 ++- cdp/network/types.go | 13 + cdp/overlay/easyjson.go | 22 + cdp/overlay/types.go | 1 + cdp/performance/easyjson.go | 143 +++- cdp/performance/events.go | 18 + cdp/runtime/runtime.go | 18 +- cdp/storage/easyjson.go | 312 ++++++- cdp/storage/events.go | 24 + cdp/storage/storage.go | 46 + cmd/chromedp-gen/internal/domain.go | 3 + cmd/chromedp-gen/protocol.json | 325 ++++++- 23 files changed, 2169 insertions(+), 668 deletions(-) create mode 100644 cdp/audits/audits.go create mode 100644 cdp/audits/easyjson.go create mode 100644 cdp/audits/types.go create mode 100644 cdp/performance/events.go create mode 100644 cdp/storage/events.go diff --git a/cdp/audits/audits.go b/cdp/audits/audits.go new file mode 100644 index 0000000..efaf202 --- /dev/null +++ b/cdp/audits/audits.go @@ -0,0 +1,77 @@ +// Package audits provides the Chrome Debugging Protocol +// commands, types, and events for the Audits domain. +// +// Audits domain allows investigation of page violations and possible +// improvements. +// +// Generated by the chromedp-gen command. +package audits + +// Code generated by chromedp-gen. DO NOT EDIT. + +import ( + "context" + + cdp "github.com/knq/chromedp/cdp" + "github.com/knq/chromedp/cdp/network" +) + +// GetEncodedResponseParams returns the response body and size if it were +// re-encoded with the specified settings. Only applies to images. +type GetEncodedResponseParams struct { + RequestID network.RequestID `json:"requestId"` // Identifier of the network request to get content for. + Encoding GetEncodedResponseEncoding `json:"encoding"` // The encoding to use. + Quality float64 `json:"quality,omitempty"` // The quality of the encoding (0-1). (defaults to 1) + SizeOnly bool `json:"sizeOnly,omitempty"` // Whether to only return the size information (defaults to false). +} + +// GetEncodedResponse returns the response body and size if it were +// re-encoded with the specified settings. Only applies to images. +// +// parameters: +// requestID - Identifier of the network request to get content for. +// encoding - The encoding to use. +func GetEncodedResponse(requestID network.RequestID, encoding GetEncodedResponseEncoding) *GetEncodedResponseParams { + return &GetEncodedResponseParams{ + RequestID: requestID, + Encoding: encoding, + } +} + +// WithQuality the quality of the encoding (0-1). (defaults to 1). +func (p GetEncodedResponseParams) WithQuality(quality float64) *GetEncodedResponseParams { + p.Quality = quality + return &p +} + +// WithSizeOnly whether to only return the size information (defaults to +// false). +func (p GetEncodedResponseParams) WithSizeOnly(sizeOnly bool) *GetEncodedResponseParams { + p.SizeOnly = sizeOnly + return &p +} + +// GetEncodedResponseReturns return values. +type GetEncodedResponseReturns struct { + Body string `json:"body,omitempty"` // The encoded body as a base64 string. Omitted if sizeOnly is true. + OriginalSize int64 `json:"originalSize,omitempty"` // Size before re-encoding. + EncodedSize int64 `json:"encodedSize,omitempty"` // Size after re-encoding. +} + +// Do executes Audits.getEncodedResponse against the provided context and +// target handler. +// +// returns: +// body - The encoded body as a base64 string. Omitted if sizeOnly is true. +// originalSize - Size before re-encoding. +// encodedSize - Size after re-encoding. +func (p *GetEncodedResponseParams) Do(ctxt context.Context, h cdp.Handler) (body string, originalSize int64, encodedSize int64, err error) { + // execute + var res GetEncodedResponseReturns + err = h.Execute(ctxt, cdp.CommandAuditsGetEncodedResponse, p, &res) + if err != nil { + return "", 0, 0, err + } + + return res.Body, res.OriginalSize, res.EncodedSize, nil +} diff --git a/cdp/audits/easyjson.go b/cdp/audits/easyjson.go new file mode 100644 index 0000000..8ab91c0 --- /dev/null +++ b/cdp/audits/easyjson.go @@ -0,0 +1,204 @@ +// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. + +package audits + +import ( + json "encoding/json" + network "github.com/knq/chromedp/cdp/network" + easyjson "github.com/mailru/easyjson" + jlexer "github.com/mailru/easyjson/jlexer" + jwriter "github.com/mailru/easyjson/jwriter" +) + +// suppress unused package warning +var ( + _ *json.RawMessage + _ *jlexer.Lexer + _ *jwriter.Writer + _ easyjson.Marshaler +) + +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(in *jlexer.Lexer, out *GetEncodedResponseReturns) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "body": + out.Body = string(in.String()) + case "originalSize": + out.OriginalSize = int64(in.Int64()) + case "encodedSize": + out.EncodedSize = int64(in.Int64()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(out *jwriter.Writer, in GetEncodedResponseReturns) { + out.RawByte('{') + first := true + _ = first + if in.Body != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"body\":") + out.String(string(in.Body)) + } + if in.OriginalSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"originalSize\":") + out.Int64(int64(in.OriginalSize)) + } + if in.EncodedSize != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encodedSize\":") + out.Int64(int64(in.EncodedSize)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetEncodedResponseReturns) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEncodedResponseReturns) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEncodedResponseReturns) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEncodedResponseReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(in *jlexer.Lexer, out *GetEncodedResponseParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "requestId": + out.RequestID = network.RequestID(in.String()) + case "encoding": + (out.Encoding).UnmarshalEasyJSON(in) + case "quality": + out.Quality = float64(in.Float64()) + case "sizeOnly": + out.SizeOnly = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(out *jwriter.Writer, in GetEncodedResponseParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"requestId\":") + out.String(string(in.RequestID)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"encoding\":") + (in.Encoding).MarshalEasyJSON(out) + if in.Quality != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"quality\":") + out.Float64(float64(in.Quality)) + } + if in.SizeOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sizeOnly\":") + out.Bool(bool(in.SizeOnly)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v GetEncodedResponseParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v GetEncodedResponseParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpAudits1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *GetEncodedResponseParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *GetEncodedResponseParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpAudits1(l, v) +} diff --git a/cdp/audits/types.go b/cdp/audits/types.go new file mode 100644 index 0000000..3901168 --- /dev/null +++ b/cdp/audits/types.go @@ -0,0 +1,56 @@ +package audits + +import ( + "errors" + + "github.com/mailru/easyjson" + "github.com/mailru/easyjson/jlexer" + "github.com/mailru/easyjson/jwriter" +) + +// Code generated by chromedp-gen. DO NOT EDIT. + +// GetEncodedResponseEncoding the encoding to use. +type GetEncodedResponseEncoding string + +// String returns the GetEncodedResponseEncoding as string value. +func (t GetEncodedResponseEncoding) String() string { + return string(t) +} + +// GetEncodedResponseEncoding values. +const ( + GetEncodedResponseEncodingWebp GetEncodedResponseEncoding = "webp" + GetEncodedResponseEncodingJpeg GetEncodedResponseEncoding = "jpeg" + GetEncodedResponseEncodingPng GetEncodedResponseEncoding = "png" +) + +// MarshalEasyJSON satisfies easyjson.Marshaler. +func (t GetEncodedResponseEncoding) MarshalEasyJSON(out *jwriter.Writer) { + out.String(string(t)) +} + +// MarshalJSON satisfies json.Marshaler. +func (t GetEncodedResponseEncoding) MarshalJSON() ([]byte, error) { + return easyjson.Marshal(t) +} + +// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. +func (t *GetEncodedResponseEncoding) UnmarshalEasyJSON(in *jlexer.Lexer) { + switch GetEncodedResponseEncoding(in.String()) { + case GetEncodedResponseEncodingWebp: + *t = GetEncodedResponseEncodingWebp + case GetEncodedResponseEncodingJpeg: + *t = GetEncodedResponseEncodingJpeg + case GetEncodedResponseEncodingPng: + *t = GetEncodedResponseEncodingPng + + default: + in.AddError(errors.New("unknown GetEncodedResponseEncoding value")) + } +} + +// UnmarshalJSON satisfies json.Unmarshaler. +func (t *GetEncodedResponseEncoding) UnmarshalJSON(buf []byte) error { + return easyjson.Unmarshal(buf, t) +} diff --git a/cdp/cdp.go b/cdp/cdp.go index ab1bd05..0438428 100644 --- a/cdp/cdp.go +++ b/cdp/cdp.go @@ -56,6 +56,7 @@ const ( CommandMemoryGetDOMCounters MethodType = "Memory.getDOMCounters" CommandMemorySetPressureNotificationsSuppressed MethodType = "Memory.setPressureNotificationsSuppressed" CommandMemorySimulatePressureNotification MethodType = "Memory.simulatePressureNotification" + EventPerformanceMetrics MethodType = "Performance.metrics" CommandPerformanceEnable MethodType = "Performance.enable" CommandPerformanceDisable MethodType = "Performance.disable" CommandPerformanceGetMetrics MethodType = "Performance.getMetrics" @@ -141,6 +142,7 @@ const ( CommandSecurityDisable MethodType = "Security.disable" CommandSecurityHandleCertificateError MethodType = "Security.handleCertificateError" CommandSecuritySetOverrideCertificateErrors MethodType = "Security.setOverrideCertificateErrors" + CommandAuditsGetEncodedResponse MethodType = "Audits.getEncodedResponse" EventNetworkResourceChangedPriority MethodType = "Network.resourceChangedPriority" EventNetworkRequestWillBeSent MethodType = "Network.requestWillBeSent" EventNetworkRequestServedFromCache MethodType = "Network.requestServedFromCache" @@ -170,8 +172,9 @@ const ( CommandNetworkClearBrowserCookies MethodType = "Network.clearBrowserCookies" CommandNetworkGetCookies MethodType = "Network.getCookies" CommandNetworkGetAllCookies MethodType = "Network.getAllCookies" - CommandNetworkDeleteCookie MethodType = "Network.deleteCookie" + CommandNetworkDeleteCookies MethodType = "Network.deleteCookies" CommandNetworkSetCookie MethodType = "Network.setCookie" + CommandNetworkSetCookies MethodType = "Network.setCookies" CommandNetworkCanEmulateNetworkConditions MethodType = "Network.canEmulateNetworkConditions" CommandNetworkEmulateNetworkConditions MethodType = "Network.emulateNetworkConditions" CommandNetworkSetCacheDisabled MethodType = "Network.setCacheDisabled" @@ -379,8 +382,12 @@ const ( CommandAnimationReleaseAnimations MethodType = "Animation.releaseAnimations" CommandAnimationResolveAnimation MethodType = "Animation.resolveAnimation" CommandAccessibilityGetPartialAXTree MethodType = "Accessibility.getPartialAXTree" + EventStorageCacheStorageListUpdated MethodType = "Storage.cacheStorageListUpdated" + EventStorageCacheStorageContentUpdated MethodType = "Storage.cacheStorageContentUpdated" CommandStorageClearDataForOrigin MethodType = "Storage.clearDataForOrigin" CommandStorageGetUsageAndQuota MethodType = "Storage.getUsageAndQuota" + CommandStorageTrackCacheStorageForOrigin MethodType = "Storage.trackCacheStorageForOrigin" + CommandStorageUntrackCacheStorageForOrigin MethodType = "Storage.untrackCacheStorageForOrigin" EventLogEntryAdded MethodType = "Log.entryAdded" CommandLogEnable MethodType = "Log.enable" CommandLogDisable MethodType = "Log.disable" @@ -502,6 +509,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandMemorySetPressureNotificationsSuppressed case CommandMemorySimulatePressureNotification: *t = CommandMemorySimulatePressureNotification + case EventPerformanceMetrics: + *t = EventPerformanceMetrics case CommandPerformanceEnable: *t = CommandPerformanceEnable case CommandPerformanceDisable: @@ -672,6 +681,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandSecurityHandleCertificateError case CommandSecuritySetOverrideCertificateErrors: *t = CommandSecuritySetOverrideCertificateErrors + case CommandAuditsGetEncodedResponse: + *t = CommandAuditsGetEncodedResponse case EventNetworkResourceChangedPriority: *t = EventNetworkResourceChangedPriority case EventNetworkRequestWillBeSent: @@ -730,10 +741,12 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandNetworkGetCookies case CommandNetworkGetAllCookies: *t = CommandNetworkGetAllCookies - case CommandNetworkDeleteCookie: - *t = CommandNetworkDeleteCookie + case CommandNetworkDeleteCookies: + *t = CommandNetworkDeleteCookies case CommandNetworkSetCookie: *t = CommandNetworkSetCookie + case CommandNetworkSetCookies: + *t = CommandNetworkSetCookies case CommandNetworkCanEmulateNetworkConditions: *t = CommandNetworkCanEmulateNetworkConditions case CommandNetworkEmulateNetworkConditions: @@ -1148,10 +1161,18 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = CommandAnimationResolveAnimation case CommandAccessibilityGetPartialAXTree: *t = CommandAccessibilityGetPartialAXTree + case EventStorageCacheStorageListUpdated: + *t = EventStorageCacheStorageListUpdated + case EventStorageCacheStorageContentUpdated: + *t = EventStorageCacheStorageContentUpdated case CommandStorageClearDataForOrigin: *t = CommandStorageClearDataForOrigin case CommandStorageGetUsageAndQuota: *t = CommandStorageGetUsageAndQuota + case CommandStorageTrackCacheStorageForOrigin: + *t = CommandStorageTrackCacheStorageForOrigin + case CommandStorageUntrackCacheStorageForOrigin: + *t = CommandStorageUntrackCacheStorageForOrigin case EventLogEntryAdded: *t = EventLogEntryAdded case CommandLogEnable: diff --git a/cdp/cdputil/cdputil.go b/cdp/cdputil/cdputil.go index 5ef56d6..0f6e58f 100644 --- a/cdp/cdputil/cdputil.go +++ b/cdp/cdputil/cdputil.go @@ -9,6 +9,7 @@ import ( "github.com/knq/chromedp/cdp/accessibility" "github.com/knq/chromedp/cdp/animation" "github.com/knq/chromedp/cdp/applicationcache" + "github.com/knq/chromedp/cdp/audits" "github.com/knq/chromedp/cdp/browser" "github.com/knq/chromedp/cdp/cachestorage" "github.com/knq/chromedp/cdp/css" @@ -81,6 +82,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandPerformanceGetMetrics: v = new(performance.GetMetricsReturns) + case cdp.EventPerformanceMetrics: + v = new(performance.EventMetrics) + case cdp.CommandPageEnable: return emptyVal, nil @@ -327,6 +331,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.EventSecurityCertificateError: v = new(security.EventCertificateError) + case cdp.CommandAuditsGetEncodedResponse: + v = new(audits.GetEncodedResponseReturns) + case cdp.CommandNetworkEnable: return emptyVal, nil @@ -366,12 +373,15 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandNetworkGetAllCookies: v = new(network.GetAllCookiesReturns) - case cdp.CommandNetworkDeleteCookie: + case cdp.CommandNetworkDeleteCookies: return emptyVal, nil case cdp.CommandNetworkSetCookie: v = new(network.SetCookieReturns) + case cdp.CommandNetworkSetCookies: + return emptyVal, nil + case cdp.CommandNetworkCanEmulateNetworkConditions: v = new(network.CanEmulateNetworkConditionsReturns) @@ -1047,6 +1057,18 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) { case cdp.CommandStorageGetUsageAndQuota: v = new(storage.GetUsageAndQuotaReturns) + case cdp.CommandStorageTrackCacheStorageForOrigin: + return emptyVal, nil + + case cdp.CommandStorageUntrackCacheStorageForOrigin: + return emptyVal, nil + + case cdp.EventStorageCacheStorageListUpdated: + v = new(storage.EventCacheStorageListUpdated) + + case cdp.EventStorageCacheStorageContentUpdated: + v = new(storage.EventCacheStorageContentUpdated) + case cdp.CommandLogEnable: return emptyVal, nil diff --git a/cdp/dom/dom.go b/cdp/dom/dom.go index 146661d..5f73ad9 100644 --- a/cdp/dom/dom.go +++ b/cdp/dom/dom.go @@ -488,17 +488,34 @@ func (p *RemoveAttributeParams) Do(ctxt context.Context, h cdp.Handler) (err err // GetOuterHTMLParams returns node's HTML markup. type GetOuterHTMLParams struct { - NodeID cdp.NodeID `json:"nodeId"` // Id of the node to get markup for. + NodeID cdp.NodeID `json:"nodeId,omitempty"` // Identifier of the node. + BackendNodeID cdp.BackendNodeID `json:"backendNodeId,omitempty"` // Identifier of the backend node. + ObjectID runtime.RemoteObjectID `json:"objectId,omitempty"` // JavaScript object id of the node wrapper. } // GetOuterHTML returns node's HTML markup. // // parameters: -// nodeID - Id of the node to get markup for. -func GetOuterHTML(nodeID cdp.NodeID) *GetOuterHTMLParams { - return &GetOuterHTMLParams{ - NodeID: nodeID, - } +func GetOuterHTML() *GetOuterHTMLParams { + return &GetOuterHTMLParams{} +} + +// WithNodeID identifier of the node. +func (p GetOuterHTMLParams) WithNodeID(nodeID cdp.NodeID) *GetOuterHTMLParams { + p.NodeID = nodeID + return &p +} + +// WithBackendNodeID identifier of the backend node. +func (p GetOuterHTMLParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetOuterHTMLParams { + p.BackendNodeID = backendNodeID + return &p +} + +// WithObjectID javaScript object id of the node wrapper. +func (p GetOuterHTMLParams) WithObjectID(objectID runtime.RemoteObjectID) *GetOuterHTMLParams { + p.ObjectID = objectID + return &p } // GetOuterHTMLReturns return values. diff --git a/cdp/dom/easyjson.go b/cdp/dom/easyjson.go index 04c57f2..d5e02b4 100644 --- a/cdp/dom/easyjson.go +++ b/cdp/dom/easyjson.go @@ -3035,6 +3035,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpDom37(in *jlexer.Lexer, out *G switch key { case "nodeId": (out.NodeID).UnmarshalEasyJSON(in) + case "backendNodeId": + (out.BackendNodeID).UnmarshalEasyJSON(in) + case "objectId": + out.ObjectID = runtime.RemoteObjectID(in.String()) default: in.SkipRecursive() } @@ -3049,12 +3053,30 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpDom37(out *jwriter.Writer, in out.RawByte('{') first := true _ = first - if !first { - out.RawByte(',') + if in.NodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"nodeId\":") + out.Int64(int64(in.NodeID)) + } + if in.BackendNodeID != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"backendNodeId\":") + out.Int64(int64(in.BackendNodeID)) + } + if in.ObjectID != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"objectId\":") + out.String(string(in.ObjectID)) } - first = false - out.RawString("\"nodeId\":") - out.Int64(int64(in.NodeID)) out.RawByte('}') } diff --git a/cdp/input/easyjson.go b/cdp/input/easyjson.go index d2ce401..2e862d5 100644 --- a/cdp/input/easyjson.go +++ b/cdp/input/easyjson.go @@ -36,8 +36,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInput(in *jlexer.Lexer, out *T continue } switch key { - case "state": - (out.State).UnmarshalEasyJSON(in) case "x": out.X = int64(in.Int64()) case "y": @@ -70,12 +68,6 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput(out *jwriter.Writer, in out.RawByte(',') } first = false - out.RawString("\"state\":") - (in.State).MarshalEasyJSON(out) - if !first { - out.RawByte(',') - } - first = false out.RawString("\"x\":") out.Int64(int64(in.X)) if !first { @@ -943,6 +935,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpInput7(in *jlexer.Lexer, out * (out.Button).UnmarshalEasyJSON(in) case "clickCount": out.ClickCount = int64(in.Int64()) + case "deltaX": + out.DeltaX = float64(in.Float64()) + case "deltaY": + out.DeltaY = float64(in.Float64()) default: in.SkipRecursive() } @@ -1011,6 +1007,22 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpInput7(out *jwriter.Writer, in out.RawString("\"clickCount\":") out.Int64(int64(in.ClickCount)) } + if in.DeltaX != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"deltaX\":") + out.Float64(float64(in.DeltaX)) + } + if in.DeltaY != 0 { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"deltaY\":") + out.Float64(float64(in.DeltaY)) + } out.RawByte('}') } diff --git a/cdp/input/input.go b/cdp/input/input.go index 32cea51..8755b68 100644 --- a/cdp/input/input.go +++ b/cdp/input/input.go @@ -158,6 +158,8 @@ type DispatchMouseEventParams struct { Timestamp *TimeSinceEpoch `json:"timestamp,omitempty"` // Time at which the event occurred. Button ButtonType `json:"button,omitempty"` // Mouse button (default: "none"). ClickCount int64 `json:"clickCount,omitempty"` // Number of times the mouse button was clicked (default: 0). + DeltaX float64 `json:"deltaX,omitempty"` // X delta in CSS pixels for mouse wheel event (default: 0). + DeltaY float64 `json:"deltaY,omitempty"` // Y delta in CSS pixels for mouse wheel event (default: 0). } // DispatchMouseEvent dispatches a mouse event to the page. @@ -199,6 +201,18 @@ func (p DispatchMouseEventParams) WithClickCount(clickCount int64) *DispatchMous return &p } +// WithDeltaX x delta in CSS pixels for mouse wheel event (default: 0). +func (p DispatchMouseEventParams) WithDeltaX(deltaX float64) *DispatchMouseEventParams { + p.DeltaX = deltaX + return &p +} + +// WithDeltaY y delta in CSS pixels for mouse wheel event (default: 0). +func (p DispatchMouseEventParams) WithDeltaY(deltaY float64) *DispatchMouseEventParams { + p.DeltaY = deltaY + return &p +} + // Do executes Input.dispatchMouseEvent against the provided context and // target handler. func (p *DispatchMouseEventParams) Do(ctxt context.Context, h cdp.Handler) (err error) { @@ -207,8 +221,8 @@ func (p *DispatchMouseEventParams) Do(ctxt context.Context, h cdp.Handler) (err // DispatchTouchEventParams dispatches a touch event to the page. type DispatchTouchEventParams struct { - Type TouchType `json:"type"` // Type of the touch event. - TouchPoints []*TouchPoint `json:"touchPoints"` // Touch points. + Type TouchType `json:"type"` // Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. + TouchPoints []*TouchPoint `json:"touchPoints"` // Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one. Modifiers Modifier `json:"modifiers,omitempty"` // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0). Timestamp *TimeSinceEpoch `json:"timestamp,omitempty"` // Time at which the event occurred. } @@ -216,8 +230,8 @@ type DispatchTouchEventParams struct { // DispatchTouchEvent dispatches a touch event to the page. // // parameters: -// type - Type of the touch event. -// touchPoints - Touch points. +// type - Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one. +// touchPoints - Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one. func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams { return &DispatchTouchEventParams{ Type: typeVal, diff --git a/cdp/input/types.go b/cdp/input/types.go index 4a28c57..a21cb4a 100644 --- a/cdp/input/types.go +++ b/cdp/input/types.go @@ -15,14 +15,13 @@ import ( // TouchPoint [no description]. type TouchPoint struct { - State TouchState `json:"state"` // State of the touch point. - X int64 `json:"x"` // X coordinate of the event relative to the main frame's viewport. - Y int64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. - RadiusX int64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1). - RadiusY int64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1). - RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0). - Force float64 `json:"force,omitempty"` // Force (default: 1.0). - ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. + X int64 `json:"x"` // X coordinate of the event relative to the main frame's viewport in CSS pixels. + Y int64 `json:"y"` // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. + RadiusX int64 `json:"radiusX,omitempty"` // X radius of the touch area (default: 1). + RadiusY int64 `json:"radiusY,omitempty"` // Y radius of the touch area (default: 1). + RotationAngle float64 `json:"rotationAngle,omitempty"` // Rotation angle (default: 0.0). + Force float64 `json:"force,omitempty"` // Force (default: 1.0). + ID float64 `json:"id,omitempty"` // Identifier used to track touch sources between events, must be unique within an event. } // GestureType [no description]. @@ -173,57 +172,6 @@ func (t *Modifier) UnmarshalJSON(buf []byte) error { // ModifierCommand is an alias for ModifierMeta. const ModifierCommand Modifier = ModifierMeta -// TouchState state of the touch point. -type TouchState string - -// String returns the TouchState as string value. -func (t TouchState) String() string { - return string(t) -} - -// TouchState values. -const ( - TouchPressed TouchState = "touchPressed" - TouchReleased TouchState = "touchReleased" - TouchMoved TouchState = "touchMoved" - TouchStationary TouchState = "touchStationary" - TouchCanceled TouchState = "touchCancelled" -) - -// MarshalEasyJSON satisfies easyjson.Marshaler. -func (t TouchState) MarshalEasyJSON(out *jwriter.Writer) { - out.String(string(t)) -} - -// MarshalJSON satisfies json.Marshaler. -func (t TouchState) MarshalJSON() ([]byte, error) { - return easyjson.Marshal(t) -} - -// UnmarshalEasyJSON satisfies easyjson.Unmarshaler. -func (t *TouchState) UnmarshalEasyJSON(in *jlexer.Lexer) { - switch TouchState(in.String()) { - case TouchPressed: - *t = TouchPressed - case TouchReleased: - *t = TouchReleased - case TouchMoved: - *t = TouchMoved - case TouchStationary: - *t = TouchStationary - case TouchCanceled: - *t = TouchCanceled - - default: - in.AddError(errors.New("unknown TouchState value")) - } -} - -// UnmarshalJSON satisfies json.Unmarshaler. -func (t *TouchState) UnmarshalJSON(buf []byte) error { - return easyjson.Unmarshal(buf, t) -} - // KeyType type of the key event. type KeyType string @@ -368,7 +316,9 @@ func (t *ButtonType) UnmarshalJSON(buf []byte) error { return easyjson.Unmarshal(buf, t) } -// TouchType type of the touch event. +// TouchType type of the touch event. TouchEnd and TouchCancel must not +// contain any touch points, while TouchStart and TouchMove must contains at +// least one. type TouchType string // String returns the TouchType as string value. @@ -378,9 +328,10 @@ func (t TouchType) String() string { // TouchType values. const ( - TouchStart TouchType = "touchStart" - TouchEnd TouchType = "touchEnd" - TouchMove TouchType = "touchMove" + TouchStart TouchType = "touchStart" + TouchEnd TouchType = "touchEnd" + TouchMove TouchType = "touchMove" + TouchCancel TouchType = "touchCancel" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -402,6 +353,8 @@ func (t *TouchType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = TouchEnd case TouchMove: *t = TouchMove + case TouchCancel: + *t = TouchCancel default: in.AddError(errors.New("unknown TouchType value")) diff --git a/cdp/network/easyjson.go b/cdp/network/easyjson.go index 170fa61..73cbfc3 100644 --- a/cdp/network/easyjson.go +++ b/cdp/network/easyjson.go @@ -874,7 +874,118 @@ func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error { func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork7(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookieReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out *SetCookiesParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "cookies": + if in.IsNull() { + in.Skip() + out.Cookies = nil + } else { + in.Delim('[') + if out.Cookies == nil { + if !in.IsDelim(']') { + out.Cookies = make([]*CookieParam, 0, 8) + } else { + out.Cookies = []*CookieParam{} + } + } else { + out.Cookies = (out.Cookies)[:0] + } + for !in.IsDelim(']') { + var v9 *CookieParam + if in.IsNull() { + in.Skip() + v9 = nil + } else { + if v9 == nil { + v9 = new(CookieParam) + } + (*v9).UnmarshalEasyJSON(in) + } + out.Cookies = append(out.Cookies, v9) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookiesParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cookies\":") + if in.Cookies == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v10, v11 := range in.Cookies { + if v10 > 0 { + out.RawByte(',') + } + if v11 == nil { + out.RawString("null") + } else { + (*v11).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v SetCookiesParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *SetCookiesParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -905,7 +1016,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, in SetCookieReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieReturns) { out.RawByte('{') first := true _ = first @@ -923,27 +1034,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork8(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork8(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out *SetCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCookieParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -962,12 +1073,12 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out continue } switch key { - case "url": - out.URL = string(in.String()) case "name": out.Name = string(in.String()) case "value": out.Value = string(in.String()) + case "url": + out.URL = string(in.String()) case "domain": out.Domain = string(in.String()) case "path": @@ -978,15 +1089,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out out.HTTPOnly = bool(in.Bool()) case "sameSite": (out.SameSite).UnmarshalEasyJSON(in) - case "expirationDate": + case "expires": if in.IsNull() { in.Skip() - out.ExpirationDate = nil + out.Expires = nil } else { - if out.ExpirationDate == nil { - out.ExpirationDate = new(cdp.TimeSinceEpoch) + if out.Expires == nil { + out.Expires = new(cdp.TimeSinceEpoch) } - (*out.ExpirationDate).UnmarshalEasyJSON(in) + (*out.Expires).UnmarshalEasyJSON(in) } default: in.SkipRecursive() @@ -998,7 +1109,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, in SetCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCookieParams) { out.RawByte('{') first := true _ = first @@ -1006,12 +1117,6 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, out.RawByte(',') } first = false - out.RawString("\"url\":") - out.String(string(in.URL)) - if !first { - out.RawByte(',') - } - first = false out.RawString("\"name\":") out.String(string(in.Name)) if !first { @@ -1020,6 +1125,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, first = false out.RawString("\"value\":") out.String(string(in.Value)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } if in.Domain != "" { if !first { out.RawByte(',') @@ -1060,16 +1173,16 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, out.RawString("\"sameSite\":") (in.SameSite).MarshalEasyJSON(out) } - if in.ExpirationDate != nil { + if in.Expires != nil { if !first { out.RawByte(',') } first = false - out.RawString("\"expirationDate\":") - if in.ExpirationDate == nil { + out.RawString("\"expires\":") + if in.Expires == nil { out.RawString("null") } else { - (*in.ExpirationDate).MarshalEasyJSON(out) + (*in.Expires).MarshalEasyJSON(out) } } out.RawByte('}') @@ -1078,27 +1191,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCookieParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork9(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCookieParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork9(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, out *SetCacheDisabledParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetCacheDisabledParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1129,7 +1242,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, in SetCacheDisabledParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetCacheDisabledParams) { out.RawByte('{') first := true _ = first @@ -1145,27 +1258,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork10(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork10(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBypassServiceWorkerParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1196,7 +1309,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, in SetBypassServiceWorkerParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBypassServiceWorkerParams) { out.RawByte('{') first := true _ = first @@ -1212,27 +1325,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork11(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBlockedURLSParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SetBlockedURLSParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1267,9 +1380,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou out.Urls = (out.Urls)[:0] } for !in.IsDelim(']') { - var v9 string - v9 = string(in.String()) - out.Urls = append(out.Urls, v9) + var v12 string + v12 = string(in.String()) + out.Urls = append(out.Urls, v12) in.WantComma() } in.Delim(']') @@ -1284,7 +1397,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBlockedURLSParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SetBlockedURLSParams) { out.RawByte('{') first := true _ = first @@ -1297,11 +1410,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v10, v11 := range in.Urls { - if v10 > 0 { + for v13, v14 := range in.Urls { + if v13 > 0 { out.RawByte(',') } - out.String(string(v11)) + out.String(string(v14)) } out.RawByte(']') } @@ -1311,27 +1424,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SecurityDetails) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *SecurityDetails) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1380,9 +1493,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, ou out.SanList = (out.SanList)[:0] } for !in.IsDelim(']') { - var v12 string - v12 = string(in.String()) - out.SanList = append(out.SanList, v12) + var v15 string + v15 = string(in.String()) + out.SanList = append(out.SanList, v15) in.WantComma() } in.Delim(']') @@ -1425,17 +1538,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, ou out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0] } for !in.IsDelim(']') { - var v13 *SignedCertificateTimestamp + var v16 *SignedCertificateTimestamp if in.IsNull() { in.Skip() - v13 = nil + v16 = nil } else { - if v13 == nil { - v13 = new(SignedCertificateTimestamp) + if v16 == nil { + v16 = new(SignedCertificateTimestamp) } - (*v13).UnmarshalEasyJSON(in) + (*v16).UnmarshalEasyJSON(in) } - out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v13) + out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v16) in.WantComma() } in.Delim(']') @@ -1450,7 +1563,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SecurityDetails) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in SecurityDetails) { out.RawByte('{') first := true _ = first @@ -1509,11 +1622,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v14, v15 := range in.SanList { - if v14 > 0 { + for v17, v18 := range in.SanList { + if v17 > 0 { out.RawByte(',') } - out.String(string(v15)) + out.String(string(v18)) } out.RawByte(']') } @@ -1552,14 +1665,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v16, v17 := range in.SignedCertificateTimestampList { - if v16 > 0 { + for v19, v20 := range in.SignedCertificateTimestampList { + if v19 > 0 { out.RawByte(',') } - if v17 == nil { + if v20 == nil { out.RawString("null") } else { - (*v17).MarshalEasyJSON(out) + (*v20).MarshalEasyJSON(out) } } out.RawByte(']') @@ -1570,27 +1683,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v SecurityDetails) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SecurityDetails) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *Response) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *Response) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1628,15 +1741,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, ou for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v18 interface{} - if m, ok := v18.(easyjson.Unmarshaler); ok { + var v21 interface{} + if m, ok := v21.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v18.(json.Unmarshaler); ok { + } else if m, ok := v21.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v18 = in.Interface() + v21 = in.Interface() } - (out.Headers)[key] = v18 + (out.Headers)[key] = v21 in.WantComma() } in.Delim('}') @@ -1658,15 +1771,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, ou for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v19 interface{} - if m, ok := v19.(easyjson.Unmarshaler); ok { + var v22 interface{} + if m, ok := v22.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v19.(json.Unmarshaler); ok { + } else if m, ok := v22.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v19 = in.Interface() + v22 = in.Interface() } - (out.RequestHeaders)[key] = v19 + (out.RequestHeaders)[key] = v22 in.WantComma() } in.Delim('}') @@ -1721,7 +1834,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in Response) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Response) { out.RawByte('{') first := true _ = first @@ -1752,20 +1865,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, out.RawString(`null`) } else { out.RawByte('{') - v20First := true - for v20Name, v20Value := range in.Headers { - if !v20First { + v23First := true + for v23Name, v23Value := range in.Headers { + if !v23First { out.RawByte(',') } - v20First = false - out.String(string(v20Name)) + v23First = false + out.String(string(v23Name)) out.RawByte(':') - if m, ok := v20Value.(easyjson.Marshaler); ok { + if m, ok := v23Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v20Value.(json.Marshaler); ok { + } else if m, ok := v23Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v20Value)) + out.Raw(json.Marshal(v23Value)) } } out.RawByte('}') @@ -1794,20 +1907,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, out.RawString(`null`) } else { out.RawByte('{') - v21First := true - for v21Name, v21Value := range in.RequestHeaders { - if !v21First { + v24First := true + for v24Name, v24Value := range in.RequestHeaders { + if !v24First { out.RawByte(',') } - v21First = false - out.String(string(v21Name)) + v24First = false + out.String(string(v24Name)) out.RawByte(':') - if m, ok := v21Value.(easyjson.Marshaler); ok { + if m, ok := v24Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v21Value.(json.Marshaler); ok { + } else if m, ok := v24Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v21Value)) + out.Raw(json.Marshal(v24Value)) } } out.RawByte('}') @@ -1915,27 +2028,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Response) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Response) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Response) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *ResourceTiming) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *ResourceTiming) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1996,7 +2109,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in ResourceTiming) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in ResourceTiming) { out.RawByte('{') first := true _ = first @@ -2102,27 +2215,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ResourceTiming) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ResourceTiming) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *Request) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *Request) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2158,15 +2271,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, ou for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v22 interface{} - if m, ok := v22.(easyjson.Unmarshaler); ok { + var v25 interface{} + if m, ok := v25.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v22.(json.Unmarshaler); ok { + } else if m, ok := v25.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v22 = in.Interface() + v25 = in.Interface() } - (out.Headers)[key] = v22 + (out.Headers)[key] = v25 in.WantComma() } in.Delim('}') @@ -2191,7 +2304,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in Request) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in Request) { out.RawByte('{') first := true _ = first @@ -2216,20 +2329,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, out.RawString(`null`) } else { out.RawByte('{') - v23First := true - for v23Name, v23Value := range in.Headers { - if !v23First { + v26First := true + for v26Name, v26Value := range in.Headers { + if !v26First { out.RawByte(',') } - v23First = false - out.String(string(v23Name)) + v26First = false + out.String(string(v26Name)) out.RawByte(':') - if m, ok := v23Value.(easyjson.Marshaler); ok { + if m, ok := v26Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v23Value.(json.Marshaler); ok { + } else if m, ok := v26Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v23Value)) + out.Raw(json.Marshal(v26Value)) } } out.RawByte('}') @@ -2276,27 +2389,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Request) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Request) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Request) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *ReplayXHRParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *ReplayXHRParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2327,7 +2440,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in ReplayXHRParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in ReplayXHRParams) { out.RawByte('{') first := true _ = first @@ -2343,27 +2456,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ReplayXHRParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Initiator) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *Initiator) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2408,7 +2521,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, in Initiator) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in Initiator) { out.RawByte('{') first := true _ = first @@ -2452,27 +2565,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Initiator) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Initiator) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork18(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Initiator) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, out *GetResponseBodyReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2505,7 +2618,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, in GetResponseBodyReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyReturns) { out.RawByte('{') first := true _ = first @@ -2531,27 +2644,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork19(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork19(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, out *GetResponseBodyParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetResponseBodyParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2582,7 +2695,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, in GetResponseBodyParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetResponseBodyParams) { out.RawByte('{') first := true _ = first @@ -2598,27 +2711,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetResponseBodyParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork20(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork20(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, out *GetCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2653,17 +2766,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, ou out.Cookies = (out.Cookies)[:0] } for !in.IsDelim(']') { - var v24 *Cookie + var v27 *Cookie if in.IsNull() { in.Skip() - v24 = nil + v27 = nil } else { - if v24 == nil { - v24 = new(Cookie) + if v27 == nil { + v27 = new(Cookie) } - (*v24).UnmarshalEasyJSON(in) + (*v27).UnmarshalEasyJSON(in) } - out.Cookies = append(out.Cookies, v24) + out.Cookies = append(out.Cookies, v27) in.WantComma() } in.Delim(']') @@ -2678,7 +2791,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, in GetCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesReturns) { out.RawByte('{') first := true _ = first @@ -2692,14 +2805,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v25, v26 := range in.Cookies { - if v25 > 0 { + for v28, v29 := range in.Cookies { + if v28 > 0 { out.RawByte(',') } - if v26 == nil { + if v29 == nil { out.RawString("null") } else { - (*v26).MarshalEasyJSON(out) + (*v29).MarshalEasyJSON(out) } } out.RawByte(']') @@ -2711,27 +2824,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork21(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork21(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, out *GetCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2766,9 +2879,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, ou out.Urls = (out.Urls)[:0] } for !in.IsDelim(']') { - var v27 string - v27 = string(in.String()) - out.Urls = append(out.Urls, v27) + var v30 string + v30 = string(in.String()) + out.Urls = append(out.Urls, v30) in.WantComma() } in.Delim(']') @@ -2783,7 +2896,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, in GetCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCookiesParams) { out.RawByte('{') first := true _ = first @@ -2797,11 +2910,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v28, v29 := range in.Urls { - if v28 > 0 { + for v31, v32 := range in.Urls { + if v31 > 0 { out.RawByte(',') } - out.String(string(v29)) + out.String(string(v32)) } out.RawByte(']') } @@ -2812,27 +2925,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, out *GetCertificateReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2867,9 +2980,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, ou out.TableNames = (out.TableNames)[:0] } for !in.IsDelim(']') { - var v30 string - v30 = string(in.String()) - out.TableNames = append(out.TableNames, v30) + var v33 string + v33 = string(in.String()) + out.TableNames = append(out.TableNames, v33) in.WantComma() } in.Delim(']') @@ -2884,7 +2997,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, in GetCertificateReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateReturns) { out.RawByte('{') first := true _ = first @@ -2898,11 +3011,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v31, v32 := range in.TableNames { - if v31 > 0 { + for v34, v35 := range in.TableNames { + if v34 > 0 { out.RawByte(',') } - out.String(string(v32)) + out.String(string(v35)) } out.RawByte(']') } @@ -2913,27 +3026,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCertificateReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, out *GetCertificateParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetCertificateParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2964,7 +3077,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, in GetCertificateParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetCertificateParams) { out.RawByte('{') first := true _ = first @@ -2980,27 +3093,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetCertificateParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetCertificateParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, out *GetAllCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3035,17 +3148,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, ou out.Cookies = (out.Cookies)[:0] } for !in.IsDelim(']') { - var v33 *Cookie + var v36 *Cookie if in.IsNull() { in.Skip() - v33 = nil + v36 = nil } else { - if v33 == nil { - v33 = new(Cookie) + if v36 == nil { + v36 = new(Cookie) } - (*v33).UnmarshalEasyJSON(in) + (*v36).UnmarshalEasyJSON(in) } - out.Cookies = append(out.Cookies, v33) + out.Cookies = append(out.Cookies, v36) in.WantComma() } in.Delim(']') @@ -3060,7 +3173,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, in GetAllCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesReturns) { out.RawByte('{') first := true _ = first @@ -3074,14 +3187,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v34, v35 := range in.Cookies { - if v34 > 0 { + for v37, v38 := range in.Cookies { + if v37 > 0 { out.RawByte(',') } - if v35 == nil { + if v38 == nil { out.RawString("null") } else { - (*v35).MarshalEasyJSON(out) + (*v38).MarshalEasyJSON(out) } } out.RawByte(']') @@ -3093,27 +3206,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork25(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork25(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, out *GetAllCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *GetAllCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3142,7 +3255,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, in GetAllCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in GetAllCookiesParams) { out.RawByte('{') first := true _ = first @@ -3152,27 +3265,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetAllCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketWillSendHandshakeRequest) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3233,7 +3346,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketWillSendHandshakeRequest) { out.RawByte('{') first := true _ = first @@ -3279,27 +3392,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork27(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork27(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketHandshakeResponseReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3350,7 +3463,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketHandshakeResponseReceived) { out.RawByte('{') first := true _ = first @@ -3386,27 +3499,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork28(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork28(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, out *EventWebSocketFrameSent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameSent) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3457,7 +3570,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, in EventWebSocketFrameSent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameSent) { out.RawByte('{') first := true _ = first @@ -3493,27 +3606,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork29(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork29(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3564,7 +3677,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, in EventWebSocketFrameReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameReceived) { out.RawByte('{') first := true _ = first @@ -3600,27 +3713,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork30(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork30(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, out *EventWebSocketFrameError) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketFrameError) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3663,7 +3776,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, in EventWebSocketFrameError) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketFrameError) { out.RawByte('{') first := true _ = first @@ -3695,27 +3808,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork31(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork31(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, out *EventWebSocketCreated) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3758,7 +3871,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, in EventWebSocketCreated) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketCreated) { out.RawByte('{') first := true _ = first @@ -3792,27 +3905,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork32(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork32(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, out *EventWebSocketClosed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventWebSocketClosed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3853,7 +3966,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, in EventWebSocketClosed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventWebSocketClosed) { out.RawByte('{') first := true _ = first @@ -3879,27 +3992,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventWebSocketClosed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, out *EventResponseReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResponseReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -3956,7 +4069,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, in EventResponseReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResponseReceived) { out.RawByte('{') first := true _ = first @@ -4012,27 +4125,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventResponseReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork34(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventResponseReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork34(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, out *EventResourceChangedPriority) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventResourceChangedPriority) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4075,7 +4188,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, in EventResourceChangedPriority) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventResourceChangedPriority) { out.RawByte('{') first := true _ = first @@ -4107,27 +4220,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, out *EventRequestWillBeSent) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestWillBeSent) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4216,7 +4329,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, in EventRequestWillBeSent) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestWillBeSent) { out.RawByte('{') first := true _ = first @@ -4312,27 +4425,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork36(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork36(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, out *EventRequestServedFromCache) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestServedFromCache) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4363,7 +4476,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, in EventRequestServedFromCache) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestServedFromCache) { out.RawByte('{') first := true _ = first @@ -4379,27 +4492,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork37(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork37(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, out *EventRequestIntercepted) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventRequestIntercepted) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4447,15 +4560,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, ou for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v36 interface{} - if m, ok := v36.(easyjson.Unmarshaler); ok { + var v39 interface{} + if m, ok := v39.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v36.(json.Unmarshaler); ok { + } else if m, ok := v39.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v36 = in.Interface() + v39 = in.Interface() } - (out.RedirectHeaders)[key] = v36 + (out.RedirectHeaders)[key] = v39 in.WantComma() } in.Delim('}') @@ -4484,7 +4597,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, in EventRequestIntercepted) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventRequestIntercepted) { out.RawByte('{') first := true _ = first @@ -4526,20 +4639,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, out.RawString(`null`) } else { out.RawByte('{') - v37First := true - for v37Name, v37Value := range in.RedirectHeaders { - if !v37First { + v40First := true + for v40Name, v40Value := range in.RedirectHeaders { + if !v40First { out.RawByte(',') } - v37First = false - out.String(string(v37Name)) + v40First = false + out.String(string(v40Name)) out.RawByte(':') - if m, ok := v37Value.(easyjson.Marshaler); ok { + if m, ok := v40Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v37Value.(json.Marshaler); ok { + } else if m, ok := v40Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v37Value)) + out.Raw(json.Marshal(v40Value)) } } out.RawByte('}') @@ -4579,27 +4692,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventRequestIntercepted) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventRequestIntercepted) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork38(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventRequestIntercepted) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventRequestIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork38(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, out *EventLoadingFinished) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFinished) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4642,7 +4755,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, in EventLoadingFinished) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFinished) { out.RawByte('{') first := true _ = first @@ -4674,27 +4787,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventLoadingFinished) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork39(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork39(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, out *EventLoadingFailed) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventLoadingFailed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4743,7 +4856,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, in EventLoadingFailed) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventLoadingFailed) { out.RawByte('{') first := true _ = first @@ -4797,27 +4910,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventLoadingFailed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork40(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork40(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventEventSourceMessageReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4864,7 +4977,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, in EventEventSourceMessageReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventEventSourceMessageReceived) { out.RawByte('{') first := true _ = first @@ -4908,27 +5021,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork41(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork41(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, out *EventDataReceived) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EventDataReceived) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -4973,7 +5086,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, in EventDataReceived) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EventDataReceived) { out.RawByte('{') first := true _ = first @@ -5011,27 +5124,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventDataReceived) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork42(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDataReceived) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork42(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5064,7 +5177,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -5090,27 +5203,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork43(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork43(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *EmulateNetworkConditionsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5149,7 +5262,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, in EmulateNetworkConditionsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in EmulateNetworkConditionsParams) { out.RawByte('{') first := true _ = first @@ -5191,27 +5304,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork44(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork44(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5240,7 +5353,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -5250,27 +5363,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork45(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork45(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, out *DeleteCookieParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *DeleteCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5289,10 +5402,14 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, ou continue } switch key { - case "cookieName": - out.CookieName = string(in.String()) + case "name": + out.Name = string(in.String()) case "url": out.URL = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) default: in.SkipRecursive() } @@ -5303,7 +5420,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, in DeleteCookieParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in DeleteCookiesParams) { out.RawByte('{') first := true _ = first @@ -5311,41 +5428,216 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(out *jwriter.Writer, out.RawByte(',') } first = false - out.RawString("\"cookieName\":") - out.String(string(in.CookieName)) - if !first { - out.RawByte(',') + out.RawString("\"name\":") + out.String(string(in.Name)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Path != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) } - first = false - out.RawString("\"url\":") - out.String(string(in.URL)) out.RawByte('}') } // MarshalJSON supports json.Marshaler interface -func (v DeleteCookieParams) MarshalJSON() ([]byte, error) { +func (v DeleteCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteCookieParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork46(w, v) +func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) } // UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteCookieParams) UnmarshalJSON(data []byte) error { +func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork46(l, v) +func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, out *Cookie) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *CookieParam) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "name": + out.Name = string(in.String()) + case "value": + out.Value = string(in.String()) + case "url": + out.URL = string(in.String()) + case "domain": + out.Domain = string(in.String()) + case "path": + out.Path = string(in.String()) + case "secure": + out.Secure = bool(in.Bool()) + case "httpOnly": + out.HTTPOnly = bool(in.Bool()) + case "sameSite": + (out.SameSite).UnmarshalEasyJSON(in) + case "expires": + if in.IsNull() { + in.Skip() + out.Expires = nil + } else { + if out.Expires == nil { + out.Expires = new(cdp.TimeSinceEpoch) + } + (*out.Expires).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in CookieParam) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"name\":") + out.String(string(in.Name)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"value\":") + out.String(string(in.Value)) + if in.URL != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"url\":") + out.String(string(in.URL)) + } + if in.Domain != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"domain\":") + out.String(string(in.Domain)) + } + if in.Path != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"path\":") + out.String(string(in.Path)) + } + if in.Secure { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"secure\":") + out.Bool(bool(in.Secure)) + } + if in.HTTPOnly { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"httpOnly\":") + out.Bool(bool(in.HTTPOnly)) + } + if in.SameSite != "" { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"sameSite\":") + (in.SameSite).MarshalEasyJSON(out) + } + if in.Expires != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"expires\":") + if in.Expires == nil { + out.RawString("null") + } else { + (*in.Expires).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CookieParam) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CookieParam) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *Cookie) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5394,7 +5686,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, in Cookie) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in Cookie) { out.RawByte('{') first := true _ = first @@ -5466,27 +5758,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Cookie) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Cookie) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork47(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Cookie) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork47(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, out *ContinueInterceptedRequestParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *ContinueInterceptedRequestParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5530,15 +5822,15 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, ou for !in.IsDelim('}') { key := string(in.String()) in.WantColon() - var v38 interface{} - if m, ok := v38.(easyjson.Unmarshaler); ok { + var v41 interface{} + if m, ok := v41.(easyjson.Unmarshaler); ok { m.UnmarshalEasyJSON(in) - } else if m, ok := v38.(json.Unmarshaler); ok { + } else if m, ok := v41.(json.Unmarshaler); ok { _ = m.UnmarshalJSON(in.Raw()) } else { - v38 = in.Interface() + v41 = in.Interface() } - (out.Headers)[key] = v38 + (out.Headers)[key] = v41 in.WantComma() } in.Delim('}') @@ -5563,7 +5855,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, in ContinueInterceptedRequestParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in ContinueInterceptedRequestParams) { out.RawByte('{') first := true _ = first @@ -5623,20 +5915,20 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, out.RawString(`null`) } else { out.RawByte('{') - v39First := true - for v39Name, v39Value := range in.Headers { - if !v39First { + v42First := true + for v42Name, v42Value := range in.Headers { + if !v42First { out.RawByte(',') } - v39First = false - out.String(string(v39Name)) + v42First = false + out.String(string(v42Name)) out.RawByte(':') - if m, ok := v39Value.(easyjson.Marshaler); ok { + if m, ok := v42Value.(easyjson.Marshaler); ok { m.MarshalEasyJSON(out) - } else if m, ok := v39Value.(json.Marshaler); ok { + } else if m, ok := v42Value.(json.Marshaler); ok { out.Raw(m.MarshalJSON()) } else { - out.Raw(json.Marshal(v39Value)) + out.Raw(json.Marshal(v42Value)) } } out.RawByte('}') @@ -5660,27 +5952,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork48(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork48(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *ClearBrowserCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5709,7 +6001,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, in ClearBrowserCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in ClearBrowserCookiesParams) { out.RawByte('{') first := true _ = first @@ -5719,27 +6011,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork49(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork49(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, out *ClearBrowserCacheParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *ClearBrowserCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5768,7 +6060,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, in ClearBrowserCacheParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in ClearBrowserCacheParams) { out.RawByte('{') first := true _ = first @@ -5778,27 +6070,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork50(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork50(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanEmulateNetworkConditionsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5829,7 +6121,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanEmulateNetworkConditionsReturns) { out.RawByte('{') first := true _ = first @@ -5847,27 +6139,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanEmulateNetworkConditionsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateNetworkConditionsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork51(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateNetworkConditionsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork51(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanEmulateNetworkConditionsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5896,7 +6188,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanEmulateNetworkConditionsParams) { out.RawByte('{') first := true _ = first @@ -5906,27 +6198,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanEmulateNetworkConditionsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanEmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork52(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanEmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanEmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork52(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCookiesReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -5957,7 +6249,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, in CanClearBrowserCookiesReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCookiesReturns) { out.RawByte('{') first := true _ = first @@ -5975,27 +6267,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCookiesReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCookiesReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork53(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCookiesReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork53(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CanClearBrowserCookiesParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6024,7 +6316,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, in CanClearBrowserCookiesParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CanClearBrowserCookiesParams) { out.RawByte('{') first := true _ = first @@ -6034,27 +6326,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCookiesParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork54(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCookiesParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork54(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *CanClearBrowserCacheReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6085,7 +6377,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, in CanClearBrowserCacheReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in CanClearBrowserCacheReturns) { out.RawByte('{') first := true _ = first @@ -6103,27 +6395,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCacheReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCacheReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork55(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCacheReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCacheReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork55(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, out *CanClearBrowserCacheParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, out *CanClearBrowserCacheParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6152,7 +6444,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, in CanClearBrowserCacheParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, in CanClearBrowserCacheParams) { out.RawByte('{') first := true _ = first @@ -6162,27 +6454,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CanClearBrowserCacheParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CanClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork56(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CanClearBrowserCacheParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CanClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *CachedResource) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, out *CachedResource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6227,7 +6519,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in CachedResource) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, in CachedResource) { out.RawByte('{') first := true _ = first @@ -6267,27 +6559,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CachedResource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CachedResource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, out *AuthChallengeResponse) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(in *jlexer.Lexer, out *AuthChallengeResponse) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6322,7 +6614,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, in AuthChallengeResponse) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(out *jwriter.Writer, in AuthChallengeResponse) { out.RawByte('{') first := true _ = first @@ -6354,27 +6646,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AuthChallengeResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork58(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork60(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork58(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork60(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, out *AuthChallenge) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(in *jlexer.Lexer, out *AuthChallenge) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -6411,7 +6703,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, in AuthChallenge) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(out *jwriter.Writer, in AuthChallenge) { out.RawByte('{') first := true _ = first @@ -6447,23 +6739,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AuthChallenge) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork59(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork61(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AuthChallenge) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork59(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork61(l, v) } diff --git a/cdp/network/network.go b/cdp/network/network.go index 4b01e4e..ab05a74 100644 --- a/cdp/network/network.go +++ b/cdp/network/network.go @@ -371,93 +371,118 @@ func (p *GetAllCookiesParams) Do(ctxt context.Context, h cdp.Handler) (cookies [ return res.Cookies, nil } -// DeleteCookieParams deletes browser cookie with given name, domain and -// path. -type DeleteCookieParams struct { - CookieName string `json:"cookieName"` // Name of the cookie to remove. - URL string `json:"url"` // URL to match cooke domain and path. +// DeleteCookiesParams deletes browser cookies with matching name and url or +// domain/path pair. +type DeleteCookiesParams struct { + Name string `json:"name"` // Name of the cookies to remove. + URL string `json:"url,omitempty"` // If specified, deletes all the cookies with the given name where domain and path match provided URL. + Domain string `json:"domain,omitempty"` // If specified, deletes only cookies with the exact domain. + Path string `json:"path,omitempty"` // If specified, deletes only cookies with the exact path. } -// DeleteCookie deletes browser cookie with given name, domain and path. +// DeleteCookies deletes browser cookies with matching name and url or +// domain/path pair. // // parameters: -// cookieName - Name of the cookie to remove. -// url - URL to match cooke domain and path. -func DeleteCookie(cookieName string, url string) *DeleteCookieParams { - return &DeleteCookieParams{ - CookieName: cookieName, - URL: url, +// name - Name of the cookies to remove. +func DeleteCookies(name string) *DeleteCookiesParams { + return &DeleteCookiesParams{ + Name: name, } } -// Do executes Network.deleteCookie against the provided context and +// WithURL if specified, deletes all the cookies with the given name where +// domain and path match provided URL. +func (p DeleteCookiesParams) WithURL(url string) *DeleteCookiesParams { + p.URL = url + return &p +} + +// WithDomain if specified, deletes only cookies with the exact domain. +func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams { + p.Domain = domain + return &p +} + +// WithPath if specified, deletes only cookies with the exact path. +func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams { + p.Path = path + return &p +} + +// Do executes Network.deleteCookies against the provided context and // target handler. -func (p *DeleteCookieParams) Do(ctxt context.Context, h cdp.Handler) (err error) { - return h.Execute(ctxt, cdp.CommandNetworkDeleteCookie, p, nil) +func (p *DeleteCookiesParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandNetworkDeleteCookies, p, nil) } // SetCookieParams sets a cookie with the given cookie data; may overwrite // equivalent cookies if they exist. type SetCookieParams struct { - URL string `json:"url"` // The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. - Name string `json:"name"` // The name of the cookie. - Value string `json:"value"` // The value of the cookie. - Domain string `json:"domain,omitempty"` // If omitted, the cookie becomes a host-only cookie. - Path string `json:"path,omitempty"` // Defaults to the path portion of the url parameter. - Secure bool `json:"secure,omitempty"` // Defaults ot false. - HTTPOnly bool `json:"httpOnly,omitempty"` // Defaults to false. - SameSite CookieSameSite `json:"sameSite,omitempty"` // Defaults to browser default behavior. - ExpirationDate *cdp.TimeSinceEpoch `json:"expirationDate,omitempty"` // If omitted, the cookie becomes a session cookie. + Name string `json:"name"` // Cookie name. + Value string `json:"value"` // Cookie value. + URL string `json:"url,omitempty"` // The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. + Domain string `json:"domain,omitempty"` // Cookie domain. + Path string `json:"path,omitempty"` // Cookie path. + Secure bool `json:"secure,omitempty"` // True if cookie is secure. + HTTPOnly bool `json:"httpOnly,omitempty"` // True if cookie is http-only. + SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. + Expires *cdp.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set } // SetCookie sets a cookie with the given cookie data; may overwrite // equivalent cookies if they exist. // // parameters: -// url - The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. -// name - The name of the cookie. -// value - The value of the cookie. -func SetCookie(url string, name string, value string) *SetCookieParams { +// name - Cookie name. +// value - Cookie value. +func SetCookie(name string, value string) *SetCookieParams { return &SetCookieParams{ - URL: url, Name: name, Value: value, } } -// WithDomain if omitted, the cookie becomes a host-only cookie. +// WithURL the request-URI to associate with the setting of the cookie. This +// value can affect the default domain and path values of the created cookie. +func (p SetCookieParams) WithURL(url string) *SetCookieParams { + p.URL = url + return &p +} + +// WithDomain cookie domain. func (p SetCookieParams) WithDomain(domain string) *SetCookieParams { p.Domain = domain return &p } -// WithPath defaults to the path portion of the url parameter. +// WithPath cookie path. func (p SetCookieParams) WithPath(path string) *SetCookieParams { p.Path = path return &p } -// WithSecure defaults ot false. +// WithSecure true if cookie is secure. func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams { p.Secure = secure return &p } -// WithHTTPOnly defaults to false. +// WithHTTPOnly true if cookie is http-only. func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams { p.HTTPOnly = httpOnly return &p } -// WithSameSite defaults to browser default behavior. +// WithSameSite cookie SameSite type. func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams { p.SameSite = sameSite return &p } -// WithExpirationDate if omitted, the cookie becomes a session cookie. -func (p SetCookieParams) WithExpirationDate(expirationDate *cdp.TimeSinceEpoch) *SetCookieParams { - p.ExpirationDate = expirationDate +// WithExpires cookie expiration date, session cookie if not set. +func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams { + p.Expires = expires return &p } @@ -482,6 +507,27 @@ func (p *SetCookieParams) Do(ctxt context.Context, h cdp.Handler) (success bool, return res.Success, nil } +// SetCookiesParams sets given cookies. +type SetCookiesParams struct { + Cookies []*CookieParam `json:"cookies"` // Cookies to be set. +} + +// SetCookies sets given cookies. +// +// parameters: +// cookies - Cookies to be set. +func SetCookies(cookies []*CookieParam) *SetCookiesParams { + return &SetCookiesParams{ + Cookies: cookies, + } +} + +// Do executes Network.setCookies against the provided context and +// target handler. +func (p *SetCookiesParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandNetworkSetCookies, p, nil) +} + // CanEmulateNetworkConditionsParams tells whether emulation of network // conditions is supported. type CanEmulateNetworkConditionsParams struct{} diff --git a/cdp/network/types.go b/cdp/network/types.go index b5165b4..92ce784 100644 --- a/cdp/network/types.go +++ b/cdp/network/types.go @@ -452,6 +452,19 @@ type Cookie struct { SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. } +// CookieParam cookie parameter object. +type CookieParam struct { + Name string `json:"name"` // Cookie name. + Value string `json:"value"` // Cookie value. + URL string `json:"url,omitempty"` // The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. + Domain string `json:"domain,omitempty"` // Cookie domain. + Path string `json:"path,omitempty"` // Cookie path. + Secure bool `json:"secure,omitempty"` // True if cookie is secure. + HTTPOnly bool `json:"httpOnly,omitempty"` // True if cookie is http-only. + SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. + Expires *cdp.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set +} + // AuthChallenge authorization challenge for HTTP status code 401 or 407. type AuthChallenge struct { Source AuthChallengeSource `json:"source,omitempty"` // Source of the authentication challenge. diff --git a/cdp/overlay/easyjson.go b/cdp/overlay/easyjson.go index 4c56f52..0838a04 100644 --- a/cdp/overlay/easyjson.go +++ b/cdp/overlay/easyjson.go @@ -1178,6 +1178,16 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpOverlay12(in *jlexer.Lexer, ou } case "selectorList": out.SelectorList = string(in.String()) + case "cssGridColor": + if in.IsNull() { + in.Skip() + out.CSSGridColor = nil + } else { + if out.CSSGridColor == nil { + out.CSSGridColor = new(cdp.RGBA) + } + (*out.CSSGridColor).UnmarshalEasyJSON(in) + } default: in.SkipRecursive() } @@ -1316,6 +1326,18 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpOverlay12(out *jwriter.Writer, out.RawString("\"selectorList\":") out.String(string(in.SelectorList)) } + if in.CSSGridColor != nil { + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cssGridColor\":") + if in.CSSGridColor == nil { + out.RawString("null") + } else { + (*in.CSSGridColor).MarshalEasyJSON(out) + } + } out.RawByte('}') } diff --git a/cdp/overlay/types.go b/cdp/overlay/types.go index a249cfc..6065f56 100644 --- a/cdp/overlay/types.go +++ b/cdp/overlay/types.go @@ -25,6 +25,7 @@ type HighlightConfig struct { ShapeColor *cdp.RGBA `json:"shapeColor,omitempty"` // The shape outside fill color (default: transparent). ShapeMarginColor *cdp.RGBA `json:"shapeMarginColor,omitempty"` // The shape margin fill color (default: transparent). SelectorList string `json:"selectorList,omitempty"` // Selectors to highlight relevant nodes. + CSSGridColor *cdp.RGBA `json:"cssGridColor,omitempty"` // The grid layout color (default: transparent). } // InspectMode [no description]. diff --git a/cdp/performance/easyjson.go b/cdp/performance/easyjson.go index 8f3fabb..daa4f61 100644 --- a/cdp/performance/easyjson.go +++ b/cdp/performance/easyjson.go @@ -264,7 +264,126 @@ func (v *GetMetricsParams) UnmarshalJSON(data []byte) error { func (v *GetMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance2(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(in *jlexer.Lexer, out *EventMetrics) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "metrics": + if in.IsNull() { + in.Skip() + out.Metrics = nil + } else { + in.Delim('[') + if out.Metrics == nil { + if !in.IsDelim(']') { + out.Metrics = make([]*Metric, 0, 8) + } else { + out.Metrics = []*Metric{} + } + } else { + out.Metrics = (out.Metrics)[:0] + } + for !in.IsDelim(']') { + var v4 *Metric + if in.IsNull() { + in.Skip() + v4 = nil + } else { + if v4 == nil { + v4 = new(Metric) + } + (*v4).UnmarshalEasyJSON(in) + } + out.Metrics = append(out.Metrics, v4) + in.WantComma() + } + in.Delim(']') + } + case "title": + out.Title = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(out *jwriter.Writer, in EventMetrics) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"metrics\":") + if in.Metrics == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v5, v6 := range in.Metrics { + if v5 > 0 { + out.RawByte(',') + } + if v6 == nil { + out.RawString("null") + } else { + (*v6).MarshalEasyJSON(out) + } + } + out.RawByte(']') + } + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"title\":") + out.String(string(in.Title)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventMetrics) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventMetrics) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventMetrics) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventMetrics) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -293,7 +412,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -303,27 +422,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance5(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -352,7 +471,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(in *jlexer.Lexer, in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance5(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -362,23 +481,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(out *jwriter.Writ // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance4(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPerformance5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance4(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPerformance5(l, v) } diff --git a/cdp/performance/events.go b/cdp/performance/events.go new file mode 100644 index 0000000..7183735 --- /dev/null +++ b/cdp/performance/events.go @@ -0,0 +1,18 @@ +package performance + +// Code generated by chromedp-gen. DO NOT EDIT. + +import ( + cdp "github.com/knq/chromedp/cdp" +) + +// EventMetrics current values of the metrics. +type EventMetrics struct { + Metrics []*Metric `json:"metrics"` // Current values of the metrics. + Title string `json:"title"` // Timestamp title. +} + +// EventTypes all event types in the domain. +var EventTypes = []cdp.MethodType{ + cdp.EventPerformanceMetrics, +} diff --git a/cdp/runtime/runtime.go b/cdp/runtime/runtime.go index e799bff..024cda1 100644 --- a/cdp/runtime/runtime.go +++ b/cdp/runtime/runtime.go @@ -29,7 +29,7 @@ type EvaluateParams struct { ReturnByValue bool `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object that should be sent by value. GeneratePreview bool `json:"generatePreview,omitempty"` // Whether preview should be generated for the result. UserGesture bool `json:"userGesture,omitempty"` // Whether execution should be treated as initiated by user in the UI. - AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should await for resulting value and return once awaited promise is resolved. } // Evaluate evaluates expression on global object. @@ -91,8 +91,8 @@ func (p EvaluateParams) WithUserGesture(userGesture bool) *EvaluateParams { return &p } -// WithAwaitPromise whether execution should wait for promise to be resolved. -// If the result of evaluation is not a Promise, it's considered to be an error. +// WithAwaitPromise whether execution should await for resulting value and +// return once awaited promise is resolved. func (p EvaluateParams) WithAwaitPromise(awaitPromise bool) *EvaluateParams { p.AwaitPromise = awaitPromise return &p @@ -184,7 +184,7 @@ type CallFunctionOnParams struct { ReturnByValue bool `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object which should be sent by value. GeneratePreview bool `json:"generatePreview,omitempty"` // Whether preview should be generated for the result. UserGesture bool `json:"userGesture,omitempty"` // Whether execution should be treated as initiated by user in the UI. - AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should await for resulting value and return once awaited promise is resolved. } // CallFunctionOn calls function with given declaration on the given object. @@ -234,8 +234,8 @@ func (p CallFunctionOnParams) WithUserGesture(userGesture bool) *CallFunctionOnP return &p } -// WithAwaitPromise whether execution should wait for promise to be resolved. -// If the result of evaluation is not a Promise, it's considered to be an error. +// WithAwaitPromise whether execution should await for resulting value and +// return once awaited promise is resolved. func (p CallFunctionOnParams) WithAwaitPromise(awaitPromise bool) *CallFunctionOnParams { p.AwaitPromise = awaitPromise return &p @@ -519,7 +519,7 @@ type RunScriptParams struct { IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"` // Determines whether Command Line API should be available during the evaluation. ReturnByValue bool `json:"returnByValue,omitempty"` // Whether the result is expected to be a JSON object which should be sent by value. GeneratePreview bool `json:"generatePreview,omitempty"` // Whether preview should be generated for the result. - AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + AwaitPromise bool `json:"awaitPromise,omitempty"` // Whether execution should await for resulting value and return once awaited promise is resolved. } // RunScript runs script with given id in a given context. @@ -574,8 +574,8 @@ func (p RunScriptParams) WithGeneratePreview(generatePreview bool) *RunScriptPar return &p } -// WithAwaitPromise whether execution should wait for promise to be resolved. -// If the result of evaluation is not a Promise, it's considered to be an error. +// WithAwaitPromise whether execution should await for resulting value and +// return once awaited promise is resolved. func (p RunScriptParams) WithAwaitPromise(awaitPromise bool) *RunScriptParams { p.AwaitPromise = awaitPromise return &p diff --git a/cdp/storage/easyjson.go b/cdp/storage/easyjson.go index ea37e09..ff7efb1 100644 --- a/cdp/storage/easyjson.go +++ b/cdp/storage/easyjson.go @@ -92,7 +92,141 @@ func (v *UsageForType) UnmarshalJSON(data []byte) error { func (v *UsageForType) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(in *jlexer.Lexer, out *GetUsageAndQuotaReturns) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(in *jlexer.Lexer, out *UntrackCacheStorageForOriginParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "origin": + out.Origin = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(out *jwriter.Writer, in UntrackCacheStorageForOriginParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v UntrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v UntrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *UntrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *UntrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(in *jlexer.Lexer, out *TrackCacheStorageForOriginParams) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "origin": + out.Origin = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(out *jwriter.Writer, in TrackCacheStorageForOriginParams) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v TrackCacheStorageForOriginParams) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v TrackCacheStorageForOriginParams) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *TrackCacheStorageForOriginParams) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *TrackCacheStorageForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(in *jlexer.Lexer, out *GetUsageAndQuotaReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -156,7 +290,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(out *jwriter.Writer, in GetUsageAndQuotaReturns) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(out *jwriter.Writer, in GetUsageAndQuotaReturns) { out.RawByte('{') first := true _ = first @@ -205,27 +339,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetUsageAndQuotaReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetUsageAndQuotaReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage1(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetUsageAndQuotaReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetUsageAndQuotaReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage1(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(in *jlexer.Lexer, out *GetUsageAndQuotaParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(in *jlexer.Lexer, out *GetUsageAndQuotaParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -256,7 +390,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(out *jwriter.Writer, in GetUsageAndQuotaParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(out *jwriter.Writer, in GetUsageAndQuotaParams) { out.RawByte('{') first := true _ = first @@ -272,27 +406,169 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetUsageAndQuotaParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetUsageAndQuotaParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage2(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetUsageAndQuotaParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetUsageAndQuotaParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage2(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage4(l, v) } -func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(in *jlexer.Lexer, out *ClearDataForOriginParams) { +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(in *jlexer.Lexer, out *EventCacheStorageListUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "origin": + out.Origin = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(out *jwriter.Writer, in EventCacheStorageListUpdated) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventCacheStorageListUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventCacheStorageListUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage5(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventCacheStorageListUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventCacheStorageListUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage5(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(in *jlexer.Lexer, out *EventCacheStorageContentUpdated) { + isTopLevel := in.IsStart() + if in.IsNull() { + if isTopLevel { + in.Consumed() + } + in.Skip() + return + } + in.Delim('{') + for !in.IsDelim('}') { + key := in.UnsafeString() + in.WantColon() + if in.IsNull() { + in.Skip() + in.WantComma() + continue + } + switch key { + case "origin": + out.Origin = string(in.String()) + case "cacheName": + out.CacheName = string(in.String()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(out *jwriter.Writer, in EventCacheStorageContentUpdated) { + out.RawByte('{') + first := true + _ = first + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"origin\":") + out.String(string(in.Origin)) + if !first { + out.RawByte(',') + } + first = false + out.RawString("\"cacheName\":") + out.String(string(in.CacheName)) + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventCacheStorageContentUpdated) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventCacheStorageContentUpdated) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage6(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventCacheStorageContentUpdated) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventCacheStorageContentUpdated) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage6(l, v) +} +func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(in *jlexer.Lexer, out *ClearDataForOriginParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -325,7 +601,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(out *jwriter.Writer, in ClearDataForOriginParams) { +func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(out *jwriter.Writer, in ClearDataForOriginParams) { out.RawByte('{') first := true _ = first @@ -347,23 +623,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ClearDataForOriginParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(&w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ClearDataForOriginParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage3(w, v) + easyjsonC5a4559bEncodeGithubComKnqChromedpCdpStorage7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ClearDataForOriginParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(&r, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ClearDataForOriginParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage3(l, v) + easyjsonC5a4559bDecodeGithubComKnqChromedpCdpStorage7(l, v) } diff --git a/cdp/storage/events.go b/cdp/storage/events.go new file mode 100644 index 0000000..916a4f9 --- /dev/null +++ b/cdp/storage/events.go @@ -0,0 +1,24 @@ +package storage + +// Code generated by chromedp-gen. DO NOT EDIT. + +import ( + cdp "github.com/knq/chromedp/cdp" +) + +// EventCacheStorageListUpdated a cache has been added/deleted. +type EventCacheStorageListUpdated struct { + Origin string `json:"origin"` // Origin to update. +} + +// EventCacheStorageContentUpdated a cache's contents have been modified. +type EventCacheStorageContentUpdated struct { + Origin string `json:"origin"` // Origin to update. + CacheName string `json:"cacheName"` // Name of cache in origin. +} + +// EventTypes all event types in the domain. +var EventTypes = []cdp.MethodType{ + cdp.EventStorageCacheStorageListUpdated, + cdp.EventStorageCacheStorageContentUpdated, +} diff --git a/cdp/storage/storage.go b/cdp/storage/storage.go index d3330d3..ad35ebd 100644 --- a/cdp/storage/storage.go +++ b/cdp/storage/storage.go @@ -75,3 +75,49 @@ func (p *GetUsageAndQuotaParams) Do(ctxt context.Context, h cdp.Handler) (usage return res.Usage, res.Quota, res.UsageBreakdown, 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. +// +// parameters: +// origin - Security origin. +func TrackCacheStorageForOrigin(origin string) *TrackCacheStorageForOriginParams { + return &TrackCacheStorageForOriginParams{ + Origin: origin, + } +} + +// Do executes Storage.trackCacheStorageForOrigin against the provided context and +// target handler. +func (p *TrackCacheStorageForOriginParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandStorageTrackCacheStorageForOrigin, p, 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. +// +// parameters: +// origin - Security origin. +func UntrackCacheStorageForOrigin(origin string) *UntrackCacheStorageForOriginParams { + return &UntrackCacheStorageForOriginParams{ + Origin: origin, + } +} + +// Do executes Storage.untrackCacheStorageForOrigin against the provided context and +// target handler. +func (p *UntrackCacheStorageForOriginParams) Do(ctxt context.Context, h cdp.Handler) (err error) { + return h.Execute(ctxt, cdp.CommandStorageUntrackCacheStorageForOrigin, p, nil) +} diff --git a/cmd/chromedp-gen/internal/domain.go b/cmd/chromedp-gen/internal/domain.go index 5001917..8475301 100644 --- a/cmd/chromedp-gen/internal/domain.go +++ b/cmd/chromedp-gen/internal/domain.go @@ -15,6 +15,7 @@ const ( DomainAccessibility DomainType = "Accessibility" DomainAnimation DomainType = "Animation" DomainApplicationCache DomainType = "ApplicationCache" + DomainAudits DomainType = "Audits" DomainBrowser DomainType = "Browser" DomainCSS DomainType = "CSS" DomainCacheStorage DomainType = "CacheStorage" @@ -76,6 +77,8 @@ func (dt *DomainType) UnmarshalJSON(buf []byte) error { *dt = DomainAnimation case DomainApplicationCache: *dt = DomainApplicationCache + case DomainAudits: + *dt = DomainAudits case DomainBrowser: *dt = DomainBrowser case DomainCSS: diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 78a18ed..8e7cd78 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -137,6 +137,27 @@ ], "description": "Retrieve current values of run-time metrics." } + ], + "events": [ + { + "name": "metrics", + "description": "Current values of the metrics.", + "parameters": [ + { + "name": "metrics", + "type": "array", + "items": { + "$ref": "Metric" + }, + "description": "Current values of the metrics." + }, + { + "name": "title", + "type": "string", + "description": "Timestamp title." + } + ] + } ] }, { @@ -1645,6 +1666,12 @@ "type": "string", "optional": true, "description": "Selectors to highlight relevant nodes." + }, + { + "name": "cssGridColor", + "$ref": "DOM.RGBA", + "optional": true, + "description": "The grid layout color (default: transparent)." } ], "description": "Configuration data for the highlighting of page elements." @@ -2457,6 +2484,67 @@ } ] }, + { + "domain": "Audits", + "description": "Audits domain allows investigation of page violations and possible improvements.", + "dependencies": [ + "Network" + ], + "experimental": true, + "commands": [ + { + "name": "getEncodedResponse", + "description": "Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.", + "parameters": [ + { + "name": "requestId", + "$ref": "Network.RequestId", + "description": "Identifier of the network request to get content for." + }, + { + "name": "encoding", + "type": "string", + "enum": [ + "webp", + "jpeg", + "png" + ], + "description": "The encoding to use." + }, + { + "name": "quality", + "type": "number", + "optional": true, + "description": "The quality of the encoding (0-1). (defaults to 1)" + }, + { + "name": "sizeOnly", + "type": "boolean", + "optional": true, + "description": "Whether to only return the size information (defaults to false)." + } + ], + "returns": [ + { + "name": "body", + "type": "string", + "optional": true, + "description": "The encoded body as a base64 string. Omitted if sizeOnly is true." + }, + { + "name": "originalSize", + "type": "integer", + "description": "Size before re-encoding." + }, + { + "name": "encodedSize", + "type": "integer", + "description": "Size after re-encoding." + } + ] + } + ] + }, { "domain": "Network", "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.", @@ -3153,6 +3241,66 @@ ], "experimental": true }, + { + "id": "CookieParam", + "type": "object", + "description": "Cookie parameter object", + "properties": [ + { + "name": "name", + "type": "string", + "description": "Cookie name." + }, + { + "name": "value", + "type": "string", + "description": "Cookie value." + }, + { + "name": "url", + "type": "string", + "optional": true, + "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie." + }, + { + "name": "domain", + "type": "string", + "optional": true, + "description": "Cookie domain." + }, + { + "name": "path", + "type": "string", + "optional": true, + "description": "Cookie path." + }, + { + "name": "secure", + "type": "boolean", + "optional": true, + "description": "True if cookie is secure." + }, + { + "name": "httpOnly", + "type": "boolean", + "optional": true, + "description": "True if cookie is http-only." + }, + { + "name": "sameSite", + "$ref": "CookieSameSite", + "optional": true, + "description": "Cookie SameSite type." + }, + { + "name": "expires", + "$ref": "TimeSinceEpoch", + "optional": true, + "description": "Cookie expiration date, session cookie if not set" + } + ], + "experimental": true + }, { "id": "AuthChallenge", "type": "object", @@ -3386,75 +3534,89 @@ "experimental": true }, { - "name": "deleteCookie", + "name": "deleteCookies", "parameters": [ { - "name": "cookieName", + "name": "name", "type": "string", - "description": "Name of the cookie to remove." + "description": "Name of the cookies to remove." }, { "name": "url", "type": "string", - "description": "URL to match cooke domain and path." + "optional": true, + "description": "If specified, deletes all the cookies with the given name where domain and path match provided URL." + }, + { + "name": "domain", + "type": "string", + "optional": true, + "description": "If specified, deletes only cookies with the exact domain." + }, + { + "name": "path", + "type": "string", + "optional": true, + "description": "If specified, deletes only cookies with the exact path." } ], - "description": "Deletes browser cookie with given name, domain and path.", + "description": "Deletes browser cookies with matching name and url or domain/path pair.", "experimental": true }, { "name": "setCookie", "parameters": [ - { - "name": "url", - "type": "string", - "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie." - }, { "name": "name", "type": "string", - "description": "The name of the cookie." + "description": "Cookie name." }, { "name": "value", "type": "string", - "description": "The value of the cookie." + "description": "Cookie value." + }, + { + "name": "url", + "type": "string", + "optional": true, + "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie." }, { "name": "domain", "type": "string", "optional": true, - "description": "If omitted, the cookie becomes a host-only cookie." + "description": "Cookie domain." }, { "name": "path", "type": "string", "optional": true, - "description": "Defaults to the path portion of the url parameter." + "description": "Cookie path." }, { "name": "secure", "type": "boolean", "optional": true, - "description": "Defaults ot false." + "description": "True if cookie is secure." }, { "name": "httpOnly", "type": "boolean", "optional": true, - "description": "Defaults to false." + "description": "True if cookie is http-only." }, { "name": "sameSite", "$ref": "CookieSameSite", "optional": true, - "description": "Defaults to browser default behavior." + "description": "Cookie SameSite type." }, { - "name": "expirationDate", + "name": "expires", "$ref": "TimeSinceEpoch", "optional": true, - "description": "If omitted, the cookie becomes a session cookie." + "description": "Cookie expiration date, session cookie if not set" } ], "returns": [ @@ -3467,6 +3629,21 @@ "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.", "experimental": true }, + { + "name": "setCookies", + "parameters": [ + { + "name": "cookies", + "type": "array", + "items": { + "$ref": "CookieParam" + }, + "description": "Cookies to be set." + } + ], + "description": "Sets given cookies.", + "experimental": true + }, { "name": "canEmulateNetworkConditions", "description": "Tells whether emulation of network conditions is supported.", @@ -5797,7 +5974,20 @@ { "name": "nodeId", "$ref": "NodeId", - "description": "Id of the node to get markup for." + "optional": true, + "description": "Identifier of the node." + }, + { + "name": "backendNodeId", + "$ref": "BackendNodeId", + "optional": true, + "description": "Identifier of the backend node." + }, + { + "name": "objectId", + "$ref": "Runtime.RemoteObjectId", + "optional": true, + "description": "JavaScript object id of the node wrapper." } ], "returns": [ @@ -8912,27 +9102,15 @@ "type": "object", "experimental": true, "properties": [ - { - "name": "state", - "type": "string", - "enum": [ - "touchPressed", - "touchReleased", - "touchMoved", - "touchStationary", - "touchCancelled" - ], - "description": "State of the touch point." - }, { "name": "x", "type": "integer", - "description": "X coordinate of the event relative to the main frame's viewport." + "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels." }, { "name": "y", "type": "integer", - "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport." + "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport." }, { "name": "radiusX", @@ -9092,7 +9270,8 @@ "enum": [ "mousePressed", "mouseReleased", - "mouseMoved" + "mouseMoved", + "mouseWheel" ], "description": "Type of the mouse event." }, @@ -9135,6 +9314,18 @@ "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." + }, + { + "name": "deltaX", + "type": "number", + "optional": true, + "description": "X delta in CSS pixels for mouse wheel event (default: 0)." + }, + { + "name": "deltaY", + "type": "number", + "optional": true, + "description": "Y delta in CSS pixels for mouse wheel event (default: 0)." } ], "description": "Dispatches a mouse event to the page." @@ -9149,9 +9340,10 @@ "enum": [ "touchStart", "touchEnd", - "touchMove" + "touchMove", + "touchCancel" ], - "description": "Type of the touch event." + "description": "Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one." }, { "name": "touchPoints", @@ -9159,7 +9351,7 @@ "items": { "$ref": "TouchPoint" }, - "description": "Touch points." + "description": "Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one." }, { "name": "modifiers", @@ -10869,6 +11061,57 @@ } ], "description": "Returns usage and quota in bytes." + }, + { + "name": "trackCacheStorageForOrigin", + "parameters": [ + { + "name": "origin", + "type": "string", + "description": "Security origin." + } + ], + "description": "Registers origin to be notified when an update occurs to its cache storage list." + }, + { + "name": "untrackCacheStorageForOrigin", + "parameters": [ + { + "name": "origin", + "type": "string", + "description": "Security origin." + } + ], + "description": "Unregisters origin from receiving notifications for cache storage." + } + ], + "events": [ + { + "name": "cacheStorageListUpdated", + "parameters": [ + { + "name": "origin", + "type": "string", + "description": "Origin to update." + } + ], + "description": "A cache has been added/deleted." + }, + { + "name": "cacheStorageContentUpdated", + "parameters": [ + { + "name": "origin", + "type": "string", + "description": "Origin to update." + }, + { + "name": "cacheName", + "type": "string", + "description": "Name of cache in origin." + } + ], + "description": "A cache's contents have been modified." } ] }, @@ -11980,7 +12223,7 @@ "name": "awaitPromise", "type": "boolean", "optional": true, - "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." + "description": "Whether execution should await for resulting value and return once awaited promise is resolved." } ], "returns": [ @@ -12087,7 +12330,7 @@ "name": "awaitPromise", "type": "boolean", "optional": true, - "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." + "description": "Whether execution should await for resulting value and return once awaited promise is resolved." } ], "returns": [ @@ -12298,7 +12541,7 @@ "name": "awaitPromise", "type": "boolean", "optional": true, - "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." + "description": "Whether execution should await for resulting value and return once awaited promise is resolved." } ], "returns": [