diff --git a/cdproto.go b/cdproto.go index 492ec1d8..eadd75a0 100644 --- a/cdproto.go +++ b/cdproto.go @@ -561,6 +561,7 @@ const ( CommandSecurityDisable = security.CommandDisable CommandSecurityEnable = security.CommandEnable CommandSecuritySetIgnoreCertificateErrors = security.CommandSetIgnoreCertificateErrors + EventSecurityVisibleSecurityStateChanged = "Security.visibleSecurityStateChanged" EventSecuritySecurityStateChanged = "Security.securityStateChanged" CommandServiceWorkerDeliverPushMessage = serviceworker.CommandDeliverPushMessage CommandServiceWorkerDisable = serviceworker.CommandDisable @@ -602,7 +603,6 @@ const ( CommandTargetDisposeBrowserContext = target.CommandDisposeBrowserContext CommandTargetGetTargetInfo = target.CommandGetTargetInfo CommandTargetGetTargets = target.CommandGetTargets - CommandTargetSendMessageToTarget = target.CommandSendMessageToTarget CommandTargetSetAutoAttach = target.CommandSetAutoAttach CommandTargetSetDiscoverTargets = target.CommandSetDiscoverTargets CommandTargetSetRemoteLocations = target.CommandSetRemoteLocations @@ -2140,6 +2140,9 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandSecuritySetIgnoreCertificateErrors: return emptyVal, nil + case EventSecurityVisibleSecurityStateChanged: + v = new(security.EventVisibleSecurityStateChanged) + case EventSecuritySecurityStateChanged: v = new(security.EventSecurityStateChanged) @@ -2263,9 +2266,6 @@ func UnmarshalMessage(msg *Message) (interface{}, error) { case CommandTargetGetTargets: v = new(target.GetTargetsReturns) - case CommandTargetSendMessageToTarget: - return emptyVal, nil - case CommandTargetSetAutoAttach: return emptyVal, nil diff --git a/debugger/debugger.go b/debugger/debugger.go index bf9466a4..9d7a6a39 100644 --- a/debugger/debugger.go +++ b/debugger/debugger.go @@ -68,7 +68,6 @@ func (p *DisableParams) Do(ctx context.Context) (err error) { // is received. type EnableParams struct { MaxScriptsCacheSize float64 `json:"maxScriptsCacheSize,omitempty"` // The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted. - SupportsWasmDwarf bool `json:"supportsWasmDwarf,omitempty"` // Whether to report Wasm modules as raw binaries instead of disassembled functions. } // Enable enables debugger for the given page. Clients should not assume that @@ -89,13 +88,6 @@ func (p EnableParams) WithMaxScriptsCacheSize(maxScriptsCacheSize float64) *Enab return &p } -// WithSupportsWasmDwarf whether to report Wasm modules as raw binaries -// instead of disassembled functions. -func (p EnableParams) WithSupportsWasmDwarf(supportsWasmDwarf bool) *EnableParams { - p.SupportsWasmDwarf = supportsWasmDwarf - return &p -} - // EnableReturns return values. type EnableReturns struct { DebuggerID runtime.UniqueDebuggerID `json:"debuggerId,omitempty"` // Unique identifier of the debugger. diff --git a/debugger/easyjson.go b/debugger/easyjson.go index 00555544..f9990bd9 100644 --- a/debugger/easyjson.go +++ b/debugger/easyjson.go @@ -4335,8 +4335,6 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger48(in *jlexer.Lexer, switch key { case "maxScriptsCacheSize": out.MaxScriptsCacheSize = float64(in.Float64()) - case "supportsWasmDwarf": - out.SupportsWasmDwarf = bool(in.Bool()) default: in.SkipRecursive() } @@ -4357,16 +4355,6 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger48(out *jwriter.Write out.RawString(prefix[1:]) out.Float64(float64(in.MaxScriptsCacheSize)) } - if in.SupportsWasmDwarf { - const prefix string = ",\"supportsWasmDwarf\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.SupportsWasmDwarf)) - } out.RawByte('}') } diff --git a/security/easyjson.go b/security/easyjson.go index 1da94f2f..b22b173f 100644 --- a/security/easyjson.go +++ b/security/easyjson.go @@ -4,6 +4,7 @@ package security import ( json "encoding/json" + cdp "github.com/chromedp/cdproto/cdp" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" @@ -17,7 +18,127 @@ var ( _ easyjson.Marshaler ) -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(in *jlexer.Lexer, out *StateExplanation) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(in *jlexer.Lexer, out *VisibleSecurityState) { + 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 "securityState": + (out.SecurityState).UnmarshalEasyJSON(in) + case "certificateSecurityState": + if in.IsNull() { + in.Skip() + out.CertificateSecurityState = nil + } else { + if out.CertificateSecurityState == nil { + out.CertificateSecurityState = new(CertificateSecurityState) + } + (*out.CertificateSecurityState).UnmarshalEasyJSON(in) + } + case "securityStateIssueIds": + if in.IsNull() { + in.Skip() + out.SecurityStateIssueIds = nil + } else { + in.Delim('[') + if out.SecurityStateIssueIds == nil { + if !in.IsDelim(']') { + out.SecurityStateIssueIds = make([]string, 0, 4) + } else { + out.SecurityStateIssueIds = []string{} + } + } else { + out.SecurityStateIssueIds = (out.SecurityStateIssueIds)[:0] + } + for !in.IsDelim(']') { + var v1 string + v1 = string(in.String()) + out.SecurityStateIssueIds = append(out.SecurityStateIssueIds, v1) + in.WantComma() + } + in.Delim(']') + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(out *jwriter.Writer, in VisibleSecurityState) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"securityState\":" + out.RawString(prefix[1:]) + (in.SecurityState).MarshalEasyJSON(out) + } + if in.CertificateSecurityState != nil { + const prefix string = ",\"certificateSecurityState\":" + out.RawString(prefix) + (*in.CertificateSecurityState).MarshalEasyJSON(out) + } + { + const prefix string = ",\"securityStateIssueIds\":" + out.RawString(prefix) + if in.SecurityStateIssueIds == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v2, v3 := range in.SecurityStateIssueIds { + if v2 > 0 { + out.RawByte(',') + } + out.String(string(v3)) + } + out.RawByte(']') + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v VisibleSecurityState) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v VisibleSecurityState) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *VisibleSecurityState) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *VisibleSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(in *jlexer.Lexer, out *StateExplanation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -62,9 +183,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(in *jlexer.Lexer, ou out.Certificate = (out.Certificate)[:0] } for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Certificate = append(out.Certificate, v1) + var v4 string + v4 = string(in.String()) + out.Certificate = append(out.Certificate, v4) in.WantComma() } in.Delim(']') @@ -85,9 +206,9 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(in *jlexer.Lexer, ou out.Recommendations = (out.Recommendations)[:0] } for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Recommendations = append(out.Recommendations, v2) + var v5 string + v5 = string(in.String()) + out.Recommendations = append(out.Recommendations, v5) in.WantComma() } in.Delim(']') @@ -102,7 +223,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(out *jwriter.Writer, in StateExplanation) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(out *jwriter.Writer, in StateExplanation) { out.RawByte('{') first := true _ = first @@ -138,11 +259,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(out *jwriter.Writer, out.RawString("null") } else { out.RawByte('[') - for v3, v4 := range in.Certificate { - if v3 > 0 { + for v6, v7 := range in.Certificate { + if v6 > 0 { out.RawByte(',') } - out.String(string(v4)) + out.String(string(v7)) } out.RawByte(']') } @@ -152,11 +273,11 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(out *jwriter.Writer, out.RawString(prefix) { out.RawByte('[') - for v5, v6 := range in.Recommendations { - if v5 > 0 { + for v8, v9 := range in.Recommendations { + if v8 > 0 { out.RawByte(',') } - out.String(string(v6)) + out.String(string(v9)) } out.RawByte(']') } @@ -167,27 +288,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v StateExplanation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StateExplanation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StateExplanation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(in *jlexer.Lexer, out *SetIgnoreCertificateErrorsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(in *jlexer.Lexer, out *SetIgnoreCertificateErrorsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -218,7 +339,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(out *jwriter.Writer, in SetIgnoreCertificateErrorsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(out *jwriter.Writer, in SetIgnoreCertificateErrorsParams) { out.RawByte('{') first := true _ = first @@ -233,27 +354,105 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v SetIgnoreCertificateErrorsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SetIgnoreCertificateErrorsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity1(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SetIgnoreCertificateErrorsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SetIgnoreCertificateErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity1(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(in *jlexer.Lexer, out *EventSecurityStateChanged) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(in *jlexer.Lexer, out *EventVisibleSecurityStateChanged) { + 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 "visibleSecurityState": + if in.IsNull() { + in.Skip() + out.VisibleSecurityState = nil + } else { + if out.VisibleSecurityState == nil { + out.VisibleSecurityState = new(VisibleSecurityState) + } + (*out.VisibleSecurityState).UnmarshalEasyJSON(in) + } + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(out *jwriter.Writer, in EventVisibleSecurityStateChanged) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"visibleSecurityState\":" + out.RawString(prefix[1:]) + if in.VisibleSecurityState == nil { + out.RawString("null") + } else { + (*in.VisibleSecurityState).MarshalEasyJSON(out) + } + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v EventVisibleSecurityStateChanged) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v EventVisibleSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *EventVisibleSecurityStateChanged) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *EventVisibleSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(in *jlexer.Lexer, out *EventSecurityStateChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -290,17 +489,17 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(in *jlexer.Lexer, o out.Explanations = (out.Explanations)[:0] } for !in.IsDelim(']') { - var v7 *StateExplanation + var v10 *StateExplanation if in.IsNull() { in.Skip() - v7 = nil + v10 = nil } else { - if v7 == nil { - v7 = new(StateExplanation) + if v10 == nil { + v10 = new(StateExplanation) } - (*v7).UnmarshalEasyJSON(in) + (*v10).UnmarshalEasyJSON(in) } - out.Explanations = append(out.Explanations, v7) + out.Explanations = append(out.Explanations, v10) in.WantComma() } in.Delim(']') @@ -317,7 +516,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(out *jwriter.Writer, in EventSecurityStateChanged) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(out *jwriter.Writer, in EventSecurityStateChanged) { out.RawByte('{') first := true _ = first @@ -333,14 +532,14 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(out *jwriter.Writer out.RawString("null") } else { out.RawByte('[') - for v8, v9 := range in.Explanations { - if v8 > 0 { + for v11, v12 := range in.Explanations { + if v11 > 0 { out.RawByte(',') } - if v9 == nil { + if v12 == nil { out.RawString("null") } else { - (*v9).MarshalEasyJSON(out) + (*v12).MarshalEasyJSON(out) } } out.RawByte(']') @@ -357,27 +556,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity2(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity2(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(in *jlexer.Lexer, out *EnableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity5(in *jlexer.Lexer, out *EnableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -406,7 +605,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(out *jwriter.Writer, in EnableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity5(out *jwriter.Writer, in EnableParams) { out.RawByte('{') first := true _ = first @@ -416,27 +615,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v EnableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity3(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EnableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity3(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(in *jlexer.Lexer, out *DisableParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity6(in *jlexer.Lexer, out *DisableParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -465,7 +664,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(in *jlexer.Lexer, o in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(out *jwriter.Writer, in DisableParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity6(out *jwriter.Writer, in DisableParams) { out.RawByte('{') first := true _ = first @@ -475,23 +674,250 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(out *jwriter.Writer // MarshalJSON supports json.Marshaler interface func (v DisableParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisableParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity6(l, v) +} +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity7(in *jlexer.Lexer, out *CertificateSecurityState) { + 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 "protocol": + out.Protocol = string(in.String()) + case "keyExchange": + out.KeyExchange = string(in.String()) + case "keyExchangeGroup": + out.KeyExchangeGroup = string(in.String()) + case "cipher": + out.Cipher = string(in.String()) + case "mac": + out.Mac = string(in.String()) + case "certificate": + if in.IsNull() { + in.Skip() + out.Certificate = nil + } else { + in.Delim('[') + if out.Certificate == nil { + if !in.IsDelim(']') { + out.Certificate = make([]string, 0, 4) + } else { + out.Certificate = []string{} + } + } else { + out.Certificate = (out.Certificate)[:0] + } + for !in.IsDelim(']') { + var v13 string + v13 = string(in.String()) + out.Certificate = append(out.Certificate, v13) + in.WantComma() + } + in.Delim(']') + } + case "subjectName": + out.SubjectName = string(in.String()) + case "issuer": + out.Issuer = string(in.String()) + case "validFrom": + if in.IsNull() { + in.Skip() + out.ValidFrom = nil + } else { + if out.ValidFrom == nil { + out.ValidFrom = new(cdp.TimeSinceEpoch) + } + (*out.ValidFrom).UnmarshalEasyJSON(in) + } + case "validTo": + if in.IsNull() { + in.Skip() + out.ValidTo = nil + } else { + if out.ValidTo == nil { + out.ValidTo = new(cdp.TimeSinceEpoch) + } + (*out.ValidTo).UnmarshalEasyJSON(in) + } + case "certifcateHasWeakSignature": + out.CertifcateHasWeakSignature = bool(in.Bool()) + case "modernSSL": + out.ModernSSL = bool(in.Bool()) + case "obsoleteSslProtocol": + out.ObsoleteSslProtocol = bool(in.Bool()) + case "obsoleteSslKeyExchange": + out.ObsoleteSslKeyExchange = bool(in.Bool()) + case "obsoleteSslCipher": + out.ObsoleteSslCipher = bool(in.Bool()) + case "obsoleteSslSignature": + out.ObsoleteSslSignature = bool(in.Bool()) + default: + in.SkipRecursive() + } + in.WantComma() + } + in.Delim('}') + if isTopLevel { + in.Consumed() + } +} +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity7(out *jwriter.Writer, in CertificateSecurityState) { + out.RawByte('{') + first := true + _ = first + { + const prefix string = ",\"protocol\":" + out.RawString(prefix[1:]) + out.String(string(in.Protocol)) + } + { + const prefix string = ",\"keyExchange\":" + out.RawString(prefix) + out.String(string(in.KeyExchange)) + } + if in.KeyExchangeGroup != "" { + const prefix string = ",\"keyExchangeGroup\":" + out.RawString(prefix) + out.String(string(in.KeyExchangeGroup)) + } + { + const prefix string = ",\"cipher\":" + out.RawString(prefix) + out.String(string(in.Cipher)) + } + if in.Mac != "" { + const prefix string = ",\"mac\":" + out.RawString(prefix) + out.String(string(in.Mac)) + } + { + const prefix string = ",\"certificate\":" + out.RawString(prefix) + if in.Certificate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { + out.RawString("null") + } else { + out.RawByte('[') + for v14, v15 := range in.Certificate { + if v14 > 0 { + out.RawByte(',') + } + out.String(string(v15)) + } + out.RawByte(']') + } + } + { + const prefix string = ",\"subjectName\":" + out.RawString(prefix) + out.String(string(in.SubjectName)) + } + { + const prefix string = ",\"issuer\":" + out.RawString(prefix) + out.String(string(in.Issuer)) + } + { + const prefix string = ",\"validFrom\":" + out.RawString(prefix) + if in.ValidFrom == nil { + out.RawString("null") + } else { + (*in.ValidFrom).MarshalEasyJSON(out) + } + } + { + const prefix string = ",\"validTo\":" + out.RawString(prefix) + if in.ValidTo == nil { + out.RawString("null") + } else { + (*in.ValidTo).MarshalEasyJSON(out) + } + } + { + const prefix string = ",\"certifcateHasWeakSignature\":" + out.RawString(prefix) + out.Bool(bool(in.CertifcateHasWeakSignature)) + } + { + const prefix string = ",\"modernSSL\":" + out.RawString(prefix) + out.Bool(bool(in.ModernSSL)) + } + { + const prefix string = ",\"obsoleteSslProtocol\":" + out.RawString(prefix) + out.Bool(bool(in.ObsoleteSslProtocol)) + } + { + const prefix string = ",\"obsoleteSslKeyExchange\":" + out.RawString(prefix) + out.Bool(bool(in.ObsoleteSslKeyExchange)) + } + { + const prefix string = ",\"obsoleteSslCipher\":" + out.RawString(prefix) + out.Bool(bool(in.ObsoleteSslCipher)) + } + { + const prefix string = ",\"obsoleteSslSignature\":" + out.RawString(prefix) + out.Bool(bool(in.ObsoleteSslSignature)) + } + out.RawByte('}') +} + +// MarshalJSON supports json.Marshaler interface +func (v CertificateSecurityState) MarshalJSON() ([]byte, error) { + w := jwriter.Writer{} + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity7(&w, v) + return w.Buffer.BuildBytes(), w.Error +} + +// MarshalEasyJSON supports easyjson.Marshaler interface +func (v CertificateSecurityState) MarshalEasyJSON(w *jwriter.Writer) { + easyjsonC5a4559bEncodeGithubComChromedpCdprotoSecurity7(w, v) +} + +// UnmarshalJSON supports json.Unmarshaler interface +func (v *CertificateSecurityState) UnmarshalJSON(data []byte) error { + r := jlexer.Lexer{Data: data} + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity7(&r, v) + return r.Error() +} + +// UnmarshalEasyJSON supports easyjson.Unmarshaler interface +func (v *CertificateSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer) { + easyjsonC5a4559bDecodeGithubComChromedpCdprotoSecurity7(l, v) } diff --git a/security/events.go b/security/events.go index eae0179d..e320cdfc 100644 --- a/security/events.go +++ b/security/events.go @@ -2,6 +2,13 @@ package security // Code generated by cdproto-gen. DO NOT EDIT. +// EventVisibleSecurityStateChanged the security state of the page changed. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#event-visibleSecurityStateChanged +type EventVisibleSecurityStateChanged struct { + VisibleSecurityState *VisibleSecurityState `json:"visibleSecurityState"` // Security state information about the page. +} + // EventSecurityStateChanged the security state of the page changed. // // See: https://chromedevtools.github.io/devtools-protocol/tot/Security#event-securityStateChanged diff --git a/security/types.go b/security/types.go index 78e038d0..83794307 100644 --- a/security/types.go +++ b/security/types.go @@ -5,6 +5,7 @@ package security import ( "errors" + "github.com/chromedp/cdproto/cdp" "github.com/mailru/easyjson" "github.com/mailru/easyjson/jlexer" "github.com/mailru/easyjson/jwriter" @@ -121,6 +122,38 @@ func (t *State) UnmarshalJSON(buf []byte) error { return easyjson.Unmarshal(buf, t) } +// CertificateSecurityState details about the security state of the page +// certificate. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-CertificateSecurityState +type CertificateSecurityState struct { + Protocol string `json:"protocol"` // Protocol name (e.g. "TLS 1.2" or "QUIC"). + KeyExchange string `json:"keyExchange"` // Key Exchange used by the connection, or the empty string if not applicable. + KeyExchangeGroup string `json:"keyExchangeGroup,omitempty"` // (EC)DH group used by the connection, if applicable. + Cipher string `json:"cipher"` // Cipher name. + Mac string `json:"mac,omitempty"` // TLS MAC. Note that AEAD ciphers do not have separate MACs. + Certificate []string `json:"certificate"` // Page certificate. + SubjectName string `json:"subjectName"` // Certificate subject name. + Issuer string `json:"issuer"` // Name of the issuing CA. + ValidFrom *cdp.TimeSinceEpoch `json:"validFrom"` // Certificate valid from date. + ValidTo *cdp.TimeSinceEpoch `json:"validTo"` // Certificate valid to (expiration) date + CertifcateHasWeakSignature bool `json:"certifcateHasWeakSignature"` // True if the certificate uses a weak signature aglorithm. + ModernSSL bool `json:"modernSSL"` // True if modern SSL + ObsoleteSslProtocol bool `json:"obsoleteSslProtocol"` // True if the connection is using an obsolete SSL protocol. + ObsoleteSslKeyExchange bool `json:"obsoleteSslKeyExchange"` // True if the connection is using an obsolete SSL key exchange. + ObsoleteSslCipher bool `json:"obsoleteSslCipher"` // True if the connection is using an obsolete SSL cipher. + ObsoleteSslSignature bool `json:"obsoleteSslSignature"` // True if the connection is using an obsolete SSL signature. +} + +// VisibleSecurityState security state information about the page. +// +// See: https://chromedevtools.github.io/devtools-protocol/tot/Security#type-VisibleSecurityState +type VisibleSecurityState struct { + SecurityState State `json:"securityState"` // The security level of the page. + CertificateSecurityState *CertificateSecurityState `json:"certificateSecurityState,omitempty"` // Security state details about the page certificate. + SecurityStateIssueIds []string `json:"securityStateIssueIds"` // Array of security state issues ids. +} + // StateExplanation an explanation of an factor contributing to the security // state. // diff --git a/target/easyjson.go b/target/easyjson.go index e8c52d81..6d36cc22 100644 --- a/target/easyjson.go +++ b/target/easyjson.go @@ -280,80 +280,7 @@ func (v *SetAutoAttachParams) UnmarshalJSON(data []byte) error { func (v *SetAutoAttachParams) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget2(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(in *jlexer.Lexer, out *SendMessageToTargetParams) { - 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 "message": - out.Message = string(in.String()) - case "sessionId": - out.SessionID = SessionID(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(out *jwriter.Writer, in SendMessageToTargetParams) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"message\":" - out.RawString(prefix[1:]) - out.String(string(in.Message)) - } - if in.SessionID != "" { - const prefix string = ",\"sessionId\":" - out.RawString(prefix) - out.String(string(in.SessionID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SendMessageToTargetParams) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SendMessageToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SendMessageToTargetParams) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SendMessageToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(l, v) -} -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(in *jlexer.Lexer, out *RemoteLocation) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(in *jlexer.Lexer, out *RemoteLocation) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -386,7 +313,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(out *jwriter.Writer, in RemoteLocation) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(out *jwriter.Writer, in RemoteLocation) { out.RawByte('{') first := true _ = first @@ -406,27 +333,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v RemoteLocation) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RemoteLocation) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RemoteLocation) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RemoteLocation) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget3(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(in *jlexer.Lexer, out *Info) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(in *jlexer.Lexer, out *Info) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -469,7 +396,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(out *jwriter.Writer, in Info) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(out *jwriter.Writer, in Info) { out.RawByte('{') first := true _ = first @@ -514,27 +441,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v Info) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Info) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Info) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Info) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget4(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(in *jlexer.Lexer, out *GetTargetsReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(in *jlexer.Lexer, out *GetTargetsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -594,7 +521,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(out *jwriter.Writer, in GetTargetsReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(out *jwriter.Writer, in GetTargetsReturns) { out.RawByte('{') first := true _ = first @@ -623,27 +550,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget5(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(in *jlexer.Lexer, out *GetTargetsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(in *jlexer.Lexer, out *GetTargetsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -672,7 +599,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(out *jwriter.Writer, in GetTargetsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(out *jwriter.Writer, in GetTargetsParams) { out.RawByte('{') first := true _ = first @@ -682,27 +609,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget6(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(in *jlexer.Lexer, out *GetTargetInfoReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(in *jlexer.Lexer, out *GetTargetInfoReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -741,7 +668,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(out *jwriter.Writer, in GetTargetInfoReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(out *jwriter.Writer, in GetTargetInfoReturns) { out.RawByte('{') first := true _ = first @@ -757,27 +684,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetInfoReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetInfoReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetInfoReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetInfoReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget7(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(in *jlexer.Lexer, out *GetTargetInfoParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(in *jlexer.Lexer, out *GetTargetInfoParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -808,7 +735,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(in *jlexer.Lexer, out in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(out *jwriter.Writer, in GetTargetInfoParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(out *jwriter.Writer, in GetTargetInfoParams) { out.RawByte('{') first := true _ = first @@ -824,27 +751,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetTargetInfoParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetTargetInfoParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetTargetInfoParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetTargetInfoParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget8(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(in *jlexer.Lexer, out *GetBrowserContextsReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(in *jlexer.Lexer, out *GetBrowserContextsReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -896,7 +823,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(out *jwriter.Writer, in GetBrowserContextsReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(out *jwriter.Writer, in GetBrowserContextsReturns) { out.RawByte('{') first := true _ = first @@ -921,27 +848,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetBrowserContextsReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBrowserContextsReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget9(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBrowserContextsReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBrowserContextsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget9(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(in *jlexer.Lexer, out *GetBrowserContextsParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(in *jlexer.Lexer, out *GetBrowserContextsParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -970,7 +897,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(out *jwriter.Writer, in GetBrowserContextsParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(out *jwriter.Writer, in GetBrowserContextsParams) { out.RawByte('{') first := true _ = first @@ -980,27 +907,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v GetBrowserContextsParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GetBrowserContextsParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget10(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GetBrowserContextsParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GetBrowserContextsParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget10(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(in *jlexer.Lexer, out *ExposeDevToolsProtocolParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(in *jlexer.Lexer, out *ExposeDevToolsProtocolParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1033,7 +960,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(out *jwriter.Writer, in ExposeDevToolsProtocolParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(out *jwriter.Writer, in ExposeDevToolsProtocolParams) { out.RawByte('{') first := true _ = first @@ -1053,27 +980,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ExposeDevToolsProtocolParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ExposeDevToolsProtocolParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget11(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ExposeDevToolsProtocolParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ExposeDevToolsProtocolParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget11(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(in *jlexer.Lexer, out *EventTargetInfoChanged) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(in *jlexer.Lexer, out *EventTargetInfoChanged) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1112,7 +1039,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(out *jwriter.Writer, in EventTargetInfoChanged) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(out *jwriter.Writer, in EventTargetInfoChanged) { out.RawByte('{') first := true _ = first @@ -1131,27 +1058,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventTargetInfoChanged) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventTargetInfoChanged) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget12(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventTargetInfoChanged) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventTargetInfoChanged) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget12(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(in *jlexer.Lexer, out *EventTargetDestroyed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(in *jlexer.Lexer, out *EventTargetDestroyed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1182,7 +1109,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(out *jwriter.Writer, in EventTargetDestroyed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(out *jwriter.Writer, in EventTargetDestroyed) { out.RawByte('{') first := true _ = first @@ -1197,27 +1124,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventTargetDestroyed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventTargetDestroyed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget13(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventTargetDestroyed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventTargetDestroyed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget13(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(in *jlexer.Lexer, out *EventTargetCreated) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(in *jlexer.Lexer, out *EventTargetCreated) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1256,7 +1183,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(out *jwriter.Writer, in EventTargetCreated) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(out *jwriter.Writer, in EventTargetCreated) { out.RawByte('{') first := true _ = first @@ -1275,27 +1202,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventTargetCreated) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventTargetCreated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventTargetCreated) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventTargetCreated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget14(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(in *jlexer.Lexer, out *EventTargetCrashed) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(in *jlexer.Lexer, out *EventTargetCrashed) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1330,7 +1257,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(out *jwriter.Writer, in EventTargetCrashed) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(out *jwriter.Writer, in EventTargetCrashed) { out.RawByte('{') first := true _ = first @@ -1355,27 +1282,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventTargetCrashed) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventTargetCrashed) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventTargetCrashed) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventTargetCrashed) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget15(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(in *jlexer.Lexer, out *EventReceivedMessageFromTarget) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(in *jlexer.Lexer, out *EventReceivedMessageFromTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1408,7 +1335,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(out *jwriter.Writer, in EventReceivedMessageFromTarget) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(out *jwriter.Writer, in EventReceivedMessageFromTarget) { out.RawByte('{') first := true _ = first @@ -1428,27 +1355,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventReceivedMessageFromTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventReceivedMessageFromTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget16(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventReceivedMessageFromTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventReceivedMessageFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget16(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(in *jlexer.Lexer, out *EventDetachedFromTarget) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(in *jlexer.Lexer, out *EventDetachedFromTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1479,7 +1406,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(out *jwriter.Writer, in EventDetachedFromTarget) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(out *jwriter.Writer, in EventDetachedFromTarget) { out.RawByte('{') first := true _ = first @@ -1494,27 +1421,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventDetachedFromTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventDetachedFromTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget17(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventDetachedFromTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventDetachedFromTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget17(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(in *jlexer.Lexer, out *EventAttachedToTarget) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(in *jlexer.Lexer, out *EventAttachedToTarget) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1557,7 +1484,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(out *jwriter.Writer, in EventAttachedToTarget) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(out *jwriter.Writer, in EventAttachedToTarget) { out.RawByte('{') first := true _ = first @@ -1586,27 +1513,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v EventAttachedToTarget) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v EventAttachedToTarget) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget18(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *EventAttachedToTarget) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *EventAttachedToTarget) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget18(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(in *jlexer.Lexer, out *DisposeBrowserContextParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(in *jlexer.Lexer, out *DisposeBrowserContextParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1637,7 +1564,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(out *jwriter.Writer, in DisposeBrowserContextParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(out *jwriter.Writer, in DisposeBrowserContextParams) { out.RawByte('{') first := true _ = first @@ -1652,27 +1579,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DisposeBrowserContextParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DisposeBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget19(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DisposeBrowserContextParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DisposeBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget19(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(in *jlexer.Lexer, out *DetachFromTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(in *jlexer.Lexer, out *DetachFromTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1703,7 +1630,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(out *jwriter.Writer, in DetachFromTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(out *jwriter.Writer, in DetachFromTargetParams) { out.RawByte('{') first := true _ = first @@ -1719,27 +1646,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v DetachFromTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v DetachFromTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget20(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *DetachFromTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *DetachFromTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget20(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(in *jlexer.Lexer, out *CreateTargetReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(in *jlexer.Lexer, out *CreateTargetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1770,7 +1697,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(out *jwriter.Writer, in CreateTargetReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(out *jwriter.Writer, in CreateTargetReturns) { out.RawByte('{') first := true _ = first @@ -1786,27 +1713,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateTargetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget21(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateTargetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget21(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(in *jlexer.Lexer, out *CreateTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(in *jlexer.Lexer, out *CreateTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1849,7 +1776,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(out *jwriter.Writer, in CreateTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(out *jwriter.Writer, in CreateTargetParams) { out.RawByte('{') first := true _ = first @@ -1894,27 +1821,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget22(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget22(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(in *jlexer.Lexer, out *CreateBrowserContextReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(in *jlexer.Lexer, out *CreateBrowserContextReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -1945,7 +1872,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(out *jwriter.Writer, in CreateBrowserContextReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(out *jwriter.Writer, in CreateBrowserContextReturns) { out.RawByte('{') first := true _ = first @@ -1961,27 +1888,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateBrowserContextReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateBrowserContextReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget23(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateBrowserContextReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateBrowserContextReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget23(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(in *jlexer.Lexer, out *CreateBrowserContextParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(in *jlexer.Lexer, out *CreateBrowserContextParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2010,7 +1937,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(out *jwriter.Writer, in CreateBrowserContextParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(out *jwriter.Writer, in CreateBrowserContextParams) { out.RawByte('{') first := true _ = first @@ -2020,27 +1947,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CreateBrowserContextParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CreateBrowserContextParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget24(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CreateBrowserContextParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CreateBrowserContextParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget24(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(in *jlexer.Lexer, out *CloseTargetReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(in *jlexer.Lexer, out *CloseTargetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2071,7 +1998,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(out *jwriter.Writer, in CloseTargetReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(out *jwriter.Writer, in CloseTargetReturns) { out.RawByte('{') first := true _ = first @@ -2087,27 +2014,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CloseTargetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CloseTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget25(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CloseTargetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CloseTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget25(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(in *jlexer.Lexer, out *CloseTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(in *jlexer.Lexer, out *CloseTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2138,7 +2065,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(out *jwriter.Writer, in CloseTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(out *jwriter.Writer, in CloseTargetParams) { out.RawByte('{') first := true _ = first @@ -2153,27 +2080,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v CloseTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CloseTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CloseTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CloseTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget26(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(in *jlexer.Lexer, out *AttachToTargetReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(in *jlexer.Lexer, out *AttachToTargetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2204,7 +2131,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(out *jwriter.Writer, in AttachToTargetReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(out *jwriter.Writer, in AttachToTargetReturns) { out.RawByte('{') first := true _ = first @@ -2220,27 +2147,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttachToTargetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttachToTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget27(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttachToTargetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttachToTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget27(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(in *jlexer.Lexer, out *AttachToTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(in *jlexer.Lexer, out *AttachToTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2273,7 +2200,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(out *jwriter.Writer, in AttachToTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(out *jwriter.Writer, in AttachToTargetParams) { out.RawByte('{') first := true _ = first @@ -2293,27 +2220,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttachToTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttachToTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget28(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttachToTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttachToTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget28(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(in *jlexer.Lexer, out *AttachToBrowserTargetReturns) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(in *jlexer.Lexer, out *AttachToBrowserTargetReturns) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2344,7 +2271,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(out *jwriter.Writer, in AttachToBrowserTargetReturns) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(out *jwriter.Writer, in AttachToBrowserTargetReturns) { out.RawByte('{') first := true _ = first @@ -2360,27 +2287,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttachToBrowserTargetReturns) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttachToBrowserTargetReturns) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget29(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttachToBrowserTargetReturns) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttachToBrowserTargetReturns) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget29(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(in *jlexer.Lexer, out *AttachToBrowserTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(in *jlexer.Lexer, out *AttachToBrowserTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2409,7 +2336,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(out *jwriter.Writer, in AttachToBrowserTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(out *jwriter.Writer, in AttachToBrowserTargetParams) { out.RawByte('{') first := true _ = first @@ -2419,27 +2346,27 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v AttachToBrowserTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AttachToBrowserTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget30(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AttachToBrowserTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AttachToBrowserTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget30(l, v) } -func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget32(in *jlexer.Lexer, out *ActivateTargetParams) { +func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(in *jlexer.Lexer, out *ActivateTargetParams) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -2470,7 +2397,7 @@ func easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget32(in *jlexer.Lexer, ou in.Consumed() } } -func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget32(out *jwriter.Writer, in ActivateTargetParams) { +func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(out *jwriter.Writer, in ActivateTargetParams) { out.RawByte('{') first := true _ = first @@ -2485,23 +2412,23 @@ func easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget32(out *jwriter.Writer, // MarshalJSON supports json.Marshaler interface func (v ActivateTargetParams) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget32(&w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ActivateTargetParams) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget32(w, v) + easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget31(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ActivateTargetParams) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget32(&r, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ActivateTargetParams) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget32(l, v) + easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31(l, v) } diff --git a/target/target.go b/target/target.go index ab657cb8..f0efc03c 100644 --- a/target/target.go +++ b/target/target.go @@ -458,39 +458,6 @@ func (p *GetTargetsParams) Do(ctx context.Context) (targetInfos []*Info, err err return res.TargetInfos, nil } -// SendMessageToTargetParams sends protocol message over session with given -// id. Consider using flat mode instead; see commands attachToTarget, -// setAutoAttach, and crbug.com/991325. -type SendMessageToTargetParams struct { - Message string `json:"message"` - SessionID SessionID `json:"sessionId,omitempty"` // Identifier of the session. -} - -// SendMessageToTarget sends protocol message over session with given id. -// Consider using flat mode instead; see commands attachToTarget, setAutoAttach, -// and crbug.com/991325. -// -// See: https://chromedevtools.github.io/devtools-protocol/tot/Target#method-sendMessageToTarget -// -// parameters: -// message -func SendMessageToTarget(message string) *SendMessageToTargetParams { - return &SendMessageToTargetParams{ - Message: message, - } -} - -// WithSessionID identifier of the session. -func (p SendMessageToTargetParams) WithSessionID(sessionID SessionID) *SendMessageToTargetParams { - p.SessionID = sessionID - return &p -} - -// Do executes Target.sendMessageToTarget against the provided context. -func (p *SendMessageToTargetParams) Do(ctx context.Context) (err error) { - return cdp.Execute(ctx, CommandSendMessageToTarget, p, nil) -} - // SetAutoAttachParams controls whether to automatically attach to new // targets which are considered to be related to this one. When turned on, // attaches to all existing related targets as well. When turned off, @@ -601,7 +568,6 @@ const ( CommandDisposeBrowserContext = "Target.disposeBrowserContext" CommandGetTargetInfo = "Target.getTargetInfo" CommandGetTargets = "Target.getTargets" - CommandSendMessageToTarget = "Target.sendMessageToTarget" CommandSetAutoAttach = "Target.setAutoAttach" CommandSetDiscoverTargets = "Target.setDiscoverTargets" CommandSetRemoteLocations = "Target.setRemoteLocations"