Updating to latest protocol.json
This commit is contained in:
parent
c823db34d5
commit
23221e4265
12
cdp/cdp.go
12
cdp/cdp.go
|
@ -147,8 +147,7 @@ const (
|
||||||
CommandNetworkSetUserAgentOverride MethodType = "Network.setUserAgentOverride"
|
CommandNetworkSetUserAgentOverride MethodType = "Network.setUserAgentOverride"
|
||||||
CommandNetworkSetExtraHTTPHeaders MethodType = "Network.setExtraHTTPHeaders"
|
CommandNetworkSetExtraHTTPHeaders MethodType = "Network.setExtraHTTPHeaders"
|
||||||
CommandNetworkGetResponseBody MethodType = "Network.getResponseBody"
|
CommandNetworkGetResponseBody MethodType = "Network.getResponseBody"
|
||||||
CommandNetworkAddBlockedURL MethodType = "Network.addBlockedURL"
|
CommandNetworkSetBlockedURLS MethodType = "Network.setBlockedURLs"
|
||||||
CommandNetworkRemoveBlockedURL MethodType = "Network.removeBlockedURL"
|
|
||||||
CommandNetworkReplayXHR MethodType = "Network.replayXHR"
|
CommandNetworkReplayXHR MethodType = "Network.replayXHR"
|
||||||
CommandNetworkSetMonitoringXHREnabled MethodType = "Network.setMonitoringXHREnabled"
|
CommandNetworkSetMonitoringXHREnabled MethodType = "Network.setMonitoringXHREnabled"
|
||||||
CommandNetworkCanClearBrowserCache MethodType = "Network.canClearBrowserCache"
|
CommandNetworkCanClearBrowserCache MethodType = "Network.canClearBrowserCache"
|
||||||
|
@ -418,6 +417,7 @@ const (
|
||||||
CommandDebuggerStepInto MethodType = "Debugger.stepInto"
|
CommandDebuggerStepInto MethodType = "Debugger.stepInto"
|
||||||
CommandDebuggerStepOut MethodType = "Debugger.stepOut"
|
CommandDebuggerStepOut MethodType = "Debugger.stepOut"
|
||||||
CommandDebuggerPause MethodType = "Debugger.pause"
|
CommandDebuggerPause MethodType = "Debugger.pause"
|
||||||
|
CommandDebuggerScheduleStepIntoAsync MethodType = "Debugger.scheduleStepIntoAsync"
|
||||||
CommandDebuggerResume MethodType = "Debugger.resume"
|
CommandDebuggerResume MethodType = "Debugger.resume"
|
||||||
CommandDebuggerSearchInContent MethodType = "Debugger.searchInContent"
|
CommandDebuggerSearchInContent MethodType = "Debugger.searchInContent"
|
||||||
CommandDebuggerSetScriptSource MethodType = "Debugger.setScriptSource"
|
CommandDebuggerSetScriptSource MethodType = "Debugger.setScriptSource"
|
||||||
|
@ -667,10 +667,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = CommandNetworkSetExtraHTTPHeaders
|
*t = CommandNetworkSetExtraHTTPHeaders
|
||||||
case CommandNetworkGetResponseBody:
|
case CommandNetworkGetResponseBody:
|
||||||
*t = CommandNetworkGetResponseBody
|
*t = CommandNetworkGetResponseBody
|
||||||
case CommandNetworkAddBlockedURL:
|
case CommandNetworkSetBlockedURLS:
|
||||||
*t = CommandNetworkAddBlockedURL
|
*t = CommandNetworkSetBlockedURLS
|
||||||
case CommandNetworkRemoveBlockedURL:
|
|
||||||
*t = CommandNetworkRemoveBlockedURL
|
|
||||||
case CommandNetworkReplayXHR:
|
case CommandNetworkReplayXHR:
|
||||||
*t = CommandNetworkReplayXHR
|
*t = CommandNetworkReplayXHR
|
||||||
case CommandNetworkSetMonitoringXHREnabled:
|
case CommandNetworkSetMonitoringXHREnabled:
|
||||||
|
@ -1209,6 +1207,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = CommandDebuggerStepOut
|
*t = CommandDebuggerStepOut
|
||||||
case CommandDebuggerPause:
|
case CommandDebuggerPause:
|
||||||
*t = CommandDebuggerPause
|
*t = CommandDebuggerPause
|
||||||
|
case CommandDebuggerScheduleStepIntoAsync:
|
||||||
|
*t = CommandDebuggerScheduleStepIntoAsync
|
||||||
case CommandDebuggerResume:
|
case CommandDebuggerResume:
|
||||||
*t = CommandDebuggerResume
|
*t = CommandDebuggerResume
|
||||||
case CommandDebuggerSearchInContent:
|
case CommandDebuggerSearchInContent:
|
||||||
|
|
|
@ -295,10 +295,7 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.CommandNetworkGetResponseBody:
|
case cdp.CommandNetworkGetResponseBody:
|
||||||
v = new(network.GetResponseBodyReturns)
|
v = new(network.GetResponseBodyReturns)
|
||||||
|
|
||||||
case cdp.CommandNetworkAddBlockedURL:
|
case cdp.CommandNetworkSetBlockedURLS:
|
||||||
return emptyVal, nil
|
|
||||||
|
|
||||||
case cdp.CommandNetworkRemoveBlockedURL:
|
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
case cdp.CommandNetworkReplayXHR:
|
case cdp.CommandNetworkReplayXHR:
|
||||||
|
@ -1138,6 +1135,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.CommandDebuggerPause:
|
case cdp.CommandDebuggerPause:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
|
case cdp.CommandDebuggerScheduleStepIntoAsync:
|
||||||
|
return emptyVal, nil
|
||||||
|
|
||||||
case cdp.CommandDebuggerResume:
|
case cdp.CommandDebuggerResume:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
|
|
|
@ -152,6 +152,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss1(in *jlexer.Lexer, out *St
|
||||||
out.StartLine = float64(in.Float64())
|
out.StartLine = float64(in.Float64())
|
||||||
case "startColumn":
|
case "startColumn":
|
||||||
out.StartColumn = float64(in.Float64())
|
out.StartColumn = float64(in.Float64())
|
||||||
|
case "length":
|
||||||
|
out.Length = float64(in.Float64())
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -262,6 +264,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss1(out *jwriter.Writer, in S
|
||||||
out.RawString("\"startColumn\":")
|
out.RawString("\"startColumn\":")
|
||||||
out.Float64(float64(in.StartColumn))
|
out.Float64(float64(in.StartColumn))
|
||||||
}
|
}
|
||||||
|
if in.Length != 0 {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"length\":")
|
||||||
|
out.Float64(float64(in.Length))
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2140,16 +2150,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpCss21(in *jlexer.Lexer, out *R
|
||||||
switch key {
|
switch key {
|
||||||
case "styleSheetId":
|
case "styleSheetId":
|
||||||
out.StyleSheetID = StyleSheetID(in.String())
|
out.StyleSheetID = StyleSheetID(in.String())
|
||||||
case "range":
|
case "startOffset":
|
||||||
if in.IsNull() {
|
out.StartOffset = float64(in.Float64())
|
||||||
in.Skip()
|
case "endOffset":
|
||||||
out.Range = nil
|
out.EndOffset = float64(in.Float64())
|
||||||
} else {
|
|
||||||
if out.Range == nil {
|
|
||||||
out.Range = new(SourceRange)
|
|
||||||
}
|
|
||||||
(*out.Range).UnmarshalEasyJSON(in)
|
|
||||||
}
|
|
||||||
case "used":
|
case "used":
|
||||||
out.Used = bool(in.Bool())
|
out.Used = bool(in.Bool())
|
||||||
default:
|
default:
|
||||||
|
@ -2174,17 +2178,21 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpCss21(out *jwriter.Writer, in
|
||||||
out.RawString("\"styleSheetId\":")
|
out.RawString("\"styleSheetId\":")
|
||||||
out.String(string(in.StyleSheetID))
|
out.String(string(in.StyleSheetID))
|
||||||
}
|
}
|
||||||
if in.Range != nil {
|
if in.StartOffset != 0 {
|
||||||
if !first {
|
if !first {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"range\":")
|
out.RawString("\"startOffset\":")
|
||||||
if in.Range == nil {
|
out.Float64(float64(in.StartOffset))
|
||||||
out.RawString("null")
|
|
||||||
} else {
|
|
||||||
(*in.Range).MarshalEasyJSON(out)
|
|
||||||
}
|
}
|
||||||
|
if in.EndOffset != 0 {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"endOffset\":")
|
||||||
|
out.Float64(float64(in.EndOffset))
|
||||||
}
|
}
|
||||||
if in.Used {
|
if in.Used {
|
||||||
if !first {
|
if !first {
|
||||||
|
|
|
@ -116,6 +116,7 @@ type StyleSheetHeader struct {
|
||||||
IsInline bool `json:"isInline,omitempty"` // Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
|
IsInline bool `json:"isInline,omitempty"` // Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.
|
||||||
StartLine float64 `json:"startLine,omitempty"` // Line offset of the stylesheet within the resource (zero based).
|
StartLine float64 `json:"startLine,omitempty"` // Line offset of the stylesheet within the resource (zero based).
|
||||||
StartColumn float64 `json:"startColumn,omitempty"` // Column offset of the stylesheet within the resource (zero based).
|
StartColumn float64 `json:"startColumn,omitempty"` // Column offset of the stylesheet within the resource (zero based).
|
||||||
|
Length float64 `json:"length,omitempty"` // Size of the content (in characters).
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rule cSS rule representation.
|
// Rule cSS rule representation.
|
||||||
|
@ -130,7 +131,8 @@ type Rule struct {
|
||||||
// RuleUsage cSS rule usage information.
|
// RuleUsage cSS rule usage information.
|
||||||
type RuleUsage struct {
|
type RuleUsage struct {
|
||||||
StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
|
StyleSheetID StyleSheetID `json:"styleSheetId,omitempty"` // The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
|
||||||
Range *SourceRange `json:"range,omitempty"` // Style declaration range in the enclosing stylesheet (if available).
|
StartOffset float64 `json:"startOffset,omitempty"` // Offset of the start of the rule (including selector) from the beginning of the stylesheet.
|
||||||
|
EndOffset float64 `json:"endOffset,omitempty"` // Offset of the end of the rule body from the beginning of the stylesheet.
|
||||||
Used bool `json:"used,omitempty"` // Indicates whether the rule was actually used by some element in the page.
|
Used bool `json:"used,omitempty"` // Indicates whether the rule was actually used by some element in the page.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ func (p GetPossibleBreakpointsParams) WithRestrictToFunction(restrictToFunction
|
||||||
|
|
||||||
// GetPossibleBreakpointsReturns return values.
|
// GetPossibleBreakpointsReturns return values.
|
||||||
type GetPossibleBreakpointsReturns struct {
|
type GetPossibleBreakpointsReturns struct {
|
||||||
Locations []*Location `json:"locations,omitempty"` // List of the possible breakpoint locations.
|
Locations []*BreakLocation `json:"locations,omitempty"` // List of the possible breakpoint locations.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do executes Debugger.getPossibleBreakpoints against the provided context and
|
// Do executes Debugger.getPossibleBreakpoints against the provided context and
|
||||||
|
@ -282,7 +282,7 @@ type GetPossibleBreakpointsReturns struct {
|
||||||
//
|
//
|
||||||
// returns:
|
// returns:
|
||||||
// locations - List of the possible breakpoint locations.
|
// locations - List of the possible breakpoint locations.
|
||||||
func (p *GetPossibleBreakpointsParams) Do(ctxt context.Context, h cdp.Handler) (locations []*Location, err error) {
|
func (p *GetPossibleBreakpointsParams) Do(ctxt context.Context, h cdp.Handler) (locations []*BreakLocation, err error) {
|
||||||
// execute
|
// execute
|
||||||
var res GetPossibleBreakpointsReturns
|
var res GetPossibleBreakpointsReturns
|
||||||
err = h.Execute(ctxt, cdp.CommandDebuggerGetPossibleBreakpoints, p, &res)
|
err = h.Execute(ctxt, cdp.CommandDebuggerGetPossibleBreakpoints, p, &res)
|
||||||
|
@ -371,6 +371,26 @@ func (p *PauseParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||||
return h.Execute(ctxt, cdp.CommandDebuggerPause, nil, nil)
|
return h.Execute(ctxt, cdp.CommandDebuggerPause, nil, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ScheduleStepIntoAsyncParams steps into next scheduled async task if any is
|
||||||
|
// scheduled before next pause. Returns success when async task is actually
|
||||||
|
// scheduled, returns error if no task were scheduled or another
|
||||||
|
// scheduleStepIntoAsync was called.
|
||||||
|
type ScheduleStepIntoAsyncParams struct{}
|
||||||
|
|
||||||
|
// ScheduleStepIntoAsync steps into next scheduled async task if any is
|
||||||
|
// scheduled before next pause. Returns success when async task is actually
|
||||||
|
// scheduled, returns error if no task were scheduled or another
|
||||||
|
// scheduleStepIntoAsync was called.
|
||||||
|
func ScheduleStepIntoAsync() *ScheduleStepIntoAsyncParams {
|
||||||
|
return &ScheduleStepIntoAsyncParams{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do executes Debugger.scheduleStepIntoAsync against the provided context and
|
||||||
|
// target handler.
|
||||||
|
func (p *ScheduleStepIntoAsyncParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||||
|
return h.Execute(ctxt, cdp.CommandDebuggerScheduleStepIntoAsync, nil, nil)
|
||||||
|
}
|
||||||
|
|
||||||
// ResumeParams resumes JavaScript execution.
|
// ResumeParams resumes JavaScript execution.
|
||||||
type ResumeParams struct{}
|
type ResumeParams struct{}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -24,6 +24,7 @@ type EventScriptParsed struct {
|
||||||
SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
|
SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
|
||||||
HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
|
HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
|
||||||
IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module.
|
IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module.
|
||||||
|
Length int64 `json:"length,omitempty"` // This script length.
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventScriptFailedToParse fired when virtual machine fails to parse the
|
// EventScriptFailedToParse fired when virtual machine fails to parse the
|
||||||
|
@ -41,6 +42,7 @@ type EventScriptFailedToParse struct {
|
||||||
SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
|
SourceMapURL string `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
|
||||||
HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
|
HasSourceURL bool `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
|
||||||
IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module.
|
IsModule bool `json:"isModule,omitempty"` // True, if this script is ES6 module.
|
||||||
|
Length int64 `json:"length,omitempty"` // This script length.
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventBreakpointResolved fired when breakpoint is resolved to an actual
|
// EventBreakpointResolved fired when breakpoint is resolved to an actual
|
||||||
|
|
|
@ -66,6 +66,14 @@ type SearchMatch struct {
|
||||||
LineContent string `json:"lineContent,omitempty"` // Line with match content.
|
LineContent string `json:"lineContent,omitempty"` // Line with match content.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BreakLocation [no description].
|
||||||
|
type BreakLocation struct {
|
||||||
|
ScriptID runtime.ScriptID `json:"scriptId,omitempty"` // Script identifier as reported in the Debugger.scriptParsed.
|
||||||
|
LineNumber int64 `json:"lineNumber,omitempty"` // Line number in the script (0-based).
|
||||||
|
ColumnNumber int64 `json:"columnNumber,omitempty"` // Column number in the script (0-based).
|
||||||
|
Type BreakLocationType `json:"type,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
// ScopeType scope type.
|
// ScopeType scope type.
|
||||||
type ScopeType string
|
type ScopeType string
|
||||||
|
|
||||||
|
@ -129,6 +137,51 @@ func (t *ScopeType) UnmarshalJSON(buf []byte) error {
|
||||||
return easyjson.Unmarshal(buf, t)
|
return easyjson.Unmarshal(buf, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BreakLocationType [no description].
|
||||||
|
type BreakLocationType string
|
||||||
|
|
||||||
|
// String returns the BreakLocationType as string value.
|
||||||
|
func (t BreakLocationType) String() string {
|
||||||
|
return string(t)
|
||||||
|
}
|
||||||
|
|
||||||
|
// BreakLocationType values.
|
||||||
|
const (
|
||||||
|
BreakLocationTypeDebuggerStatement BreakLocationType = "debuggerStatement"
|
||||||
|
BreakLocationTypeCall BreakLocationType = "call"
|
||||||
|
BreakLocationTypeReturn BreakLocationType = "return"
|
||||||
|
)
|
||||||
|
|
||||||
|
// MarshalEasyJSON satisfies easyjson.Marshaler.
|
||||||
|
func (t BreakLocationType) MarshalEasyJSON(out *jwriter.Writer) {
|
||||||
|
out.String(string(t))
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalJSON satisfies json.Marshaler.
|
||||||
|
func (t BreakLocationType) MarshalJSON() ([]byte, error) {
|
||||||
|
return easyjson.Marshal(t)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
|
||||||
|
func (t *BreakLocationType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
|
switch BreakLocationType(in.String()) {
|
||||||
|
case BreakLocationTypeDebuggerStatement:
|
||||||
|
*t = BreakLocationTypeDebuggerStatement
|
||||||
|
case BreakLocationTypeCall:
|
||||||
|
*t = BreakLocationTypeCall
|
||||||
|
case BreakLocationTypeReturn:
|
||||||
|
*t = BreakLocationTypeReturn
|
||||||
|
|
||||||
|
default:
|
||||||
|
in.AddError(errors.New("unknown BreakLocationType value"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalJSON satisfies json.Unmarshaler.
|
||||||
|
func (t *BreakLocationType) UnmarshalJSON(buf []byte) error {
|
||||||
|
return easyjson.Unmarshal(buf, t)
|
||||||
|
}
|
||||||
|
|
||||||
// PausedReason pause reason.
|
// PausedReason pause reason.
|
||||||
type PausedReason string
|
type PausedReason string
|
||||||
|
|
||||||
|
|
|
@ -1106,7 +1106,106 @@ func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error {
|
||||||
func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork11(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SecurityDetails) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, out *SetBlockedURLSParams) {
|
||||||
|
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 "urls":
|
||||||
|
if in.IsNull() {
|
||||||
|
in.Skip()
|
||||||
|
out.Urls = nil
|
||||||
|
} else {
|
||||||
|
in.Delim('[')
|
||||||
|
if out.Urls == nil {
|
||||||
|
if !in.IsDelim(']') {
|
||||||
|
out.Urls = make([]string, 0, 4)
|
||||||
|
} else {
|
||||||
|
out.Urls = []string{}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Urls = (out.Urls)[:0]
|
||||||
|
}
|
||||||
|
for !in.IsDelim(']') {
|
||||||
|
var v1 string
|
||||||
|
v1 = string(in.String())
|
||||||
|
out.Urls = append(out.Urls, v1)
|
||||||
|
in.WantComma()
|
||||||
|
}
|
||||||
|
in.Delim(']')
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
in.SkipRecursive()
|
||||||
|
}
|
||||||
|
in.WantComma()
|
||||||
|
}
|
||||||
|
in.Delim('}')
|
||||||
|
if isTopLevel {
|
||||||
|
in.Consumed()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SetBlockedURLSParams) {
|
||||||
|
out.RawByte('{')
|
||||||
|
first := true
|
||||||
|
_ = first
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"urls\":")
|
||||||
|
if in.Urls == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
||||||
|
out.RawString("null")
|
||||||
|
} else {
|
||||||
|
out.RawByte('[')
|
||||||
|
for v2, v3 := range in.Urls {
|
||||||
|
if v2 > 0 {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
out.String(string(v3))
|
||||||
|
}
|
||||||
|
out.RawByte(']')
|
||||||
|
}
|
||||||
|
out.RawByte('}')
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalJSON supports json.Marshaler interface
|
||||||
|
func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error) {
|
||||||
|
w := jwriter.Writer{}
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v)
|
||||||
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
|
func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
|
func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error {
|
||||||
|
r := jlexer.Lexer{Data: data}
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v)
|
||||||
|
return r.Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
|
func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v)
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *SecurityDetails) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -1155,9 +1254,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou
|
||||||
out.SanList = (out.SanList)[:0]
|
out.SanList = (out.SanList)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v1 string
|
var v4 string
|
||||||
v1 = string(in.String())
|
v4 = string(in.String())
|
||||||
out.SanList = append(out.SanList, v1)
|
out.SanList = append(out.SanList, v4)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -1184,17 +1283,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou
|
||||||
out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
|
out.SignedCertificateTimestampList = (out.SignedCertificateTimestampList)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v2 *SignedCertificateTimestamp
|
var v5 *SignedCertificateTimestamp
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
in.Skip()
|
in.Skip()
|
||||||
v2 = nil
|
v5 = nil
|
||||||
} else {
|
} else {
|
||||||
if v2 == nil {
|
if v5 == nil {
|
||||||
v2 = new(SignedCertificateTimestamp)
|
v5 = new(SignedCertificateTimestamp)
|
||||||
}
|
}
|
||||||
(*v2).UnmarshalEasyJSON(in)
|
(*v5).UnmarshalEasyJSON(in)
|
||||||
}
|
}
|
||||||
out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v2)
|
out.SignedCertificateTimestampList = append(out.SignedCertificateTimestampList, v5)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -1209,7 +1308,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer, in SecurityDetails) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in SecurityDetails) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -1279,11 +1378,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v3, v4 := range in.SanList {
|
for v6, v7 := range in.SanList {
|
||||||
if v3 > 0 {
|
if v6 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
out.String(string(v4))
|
out.String(string(v7))
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
}
|
}
|
||||||
|
@ -1322,14 +1421,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v5, v6 := range in.SignedCertificateTimestampList {
|
for v8, v9 := range in.SignedCertificateTimestampList {
|
||||||
if v5 > 0 {
|
if v8 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
if v6 == nil {
|
if v9 == nil {
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
(*v6).MarshalEasyJSON(out)
|
(*v9).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
|
@ -1341,27 +1440,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v SecurityDetails) MarshalJSON() ([]byte, error) {
|
func (v SecurityDetails) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork12(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
|
func (v *SecurityDetails) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork12(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, out *Response) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *Response) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -1460,7 +1559,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer, in Response) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in Response) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -1638,27 +1737,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v Response) MarshalJSON() ([]byte, error) {
|
func (v Response) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v Response) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork13(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *Response) UnmarshalJSON(data []byte) error {
|
func (v *Response) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork13(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, out *ResourceTiming) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *ResourceTiming) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -1719,7 +1818,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer, in ResourceTiming) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in ResourceTiming) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -1857,27 +1956,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v ResourceTiming) MarshalJSON() ([]byte, error) {
|
func (v ResourceTiming) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork14(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
|
func (v *ResourceTiming) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork14(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, out *Request) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *Request) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -1928,7 +2027,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer, in Request) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in Request) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -1998,27 +2097,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v Request) MarshalJSON() ([]byte, error) {
|
func (v Request) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v Request) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork15(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *Request) UnmarshalJSON(data []byte) error {
|
func (v *Request) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork15(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, out *ReplayXHRParams) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *ReplayXHRParams) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -2049,7 +2148,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer, in ReplayXHRParams) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in ReplayXHRParams) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -2064,92 +2163,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(out *jwriter.Writer,
|
||||||
|
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
|
func (v ReplayXHRParams) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(&w, v)
|
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
||||||
func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork16(w, v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
|
||||||
func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
|
|
||||||
r := jlexer.Lexer{Data: data}
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(&r, v)
|
|
||||||
return r.Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
||||||
func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork16(l, v)
|
|
||||||
}
|
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(in *jlexer.Lexer, out *RemoveBlockedURLParams) {
|
|
||||||
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 "url":
|
|
||||||
out.URL = string(in.String())
|
|
||||||
default:
|
|
||||||
in.SkipRecursive()
|
|
||||||
}
|
|
||||||
in.WantComma()
|
|
||||||
}
|
|
||||||
in.Delim('}')
|
|
||||||
if isTopLevel {
|
|
||||||
in.Consumed()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(out *jwriter.Writer, in RemoveBlockedURLParams) {
|
|
||||||
out.RawByte('{')
|
|
||||||
first := true
|
|
||||||
_ = first
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"url\":")
|
|
||||||
out.String(string(in.URL))
|
|
||||||
out.RawByte('}')
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalJSON supports json.Marshaler interface
|
|
||||||
func (v RemoveBlockedURLParams) MarshalJSON() ([]byte, error) {
|
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(&w, v)
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
func (v RemoveBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork17(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *RemoveBlockedURLParams) UnmarshalJSON(data []byte) error {
|
func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *RemoveBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork17(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Initiator) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork18(in *jlexer.Lexer, out *Initiator) {
|
||||||
|
@ -2503,17 +2535,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork22(in *jlexer.Lexer, ou
|
||||||
out.Cookies = (out.Cookies)[:0]
|
out.Cookies = (out.Cookies)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v7 *Cookie
|
var v10 *Cookie
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
in.Skip()
|
in.Skip()
|
||||||
v7 = nil
|
v10 = nil
|
||||||
} else {
|
} else {
|
||||||
if v7 == nil {
|
if v10 == nil {
|
||||||
v7 = new(Cookie)
|
v10 = new(Cookie)
|
||||||
}
|
}
|
||||||
(*v7).UnmarshalEasyJSON(in)
|
(*v10).UnmarshalEasyJSON(in)
|
||||||
}
|
}
|
||||||
out.Cookies = append(out.Cookies, v7)
|
out.Cookies = append(out.Cookies, v10)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -2542,14 +2574,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork22(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v8, v9 := range in.Cookies {
|
for v11, v12 := range in.Cookies {
|
||||||
if v8 > 0 {
|
if v11 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
if v9 == nil {
|
if v12 == nil {
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
(*v9).MarshalEasyJSON(out)
|
(*v12).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
|
@ -2616,9 +2648,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork23(in *jlexer.Lexer, ou
|
||||||
out.Urls = (out.Urls)[:0]
|
out.Urls = (out.Urls)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v10 string
|
var v13 string
|
||||||
v10 = string(in.String())
|
v13 = string(in.String())
|
||||||
out.Urls = append(out.Urls, v10)
|
out.Urls = append(out.Urls, v13)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -2647,11 +2679,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork23(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v11, v12 := range in.Urls {
|
for v14, v15 := range in.Urls {
|
||||||
if v11 > 0 {
|
if v14 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
out.String(string(v12))
|
out.String(string(v15))
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
}
|
}
|
||||||
|
@ -2717,9 +2749,9 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork24(in *jlexer.Lexer, ou
|
||||||
out.TableNames = (out.TableNames)[:0]
|
out.TableNames = (out.TableNames)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v13 string
|
var v16 string
|
||||||
v13 = string(in.String())
|
v16 = string(in.String())
|
||||||
out.TableNames = append(out.TableNames, v13)
|
out.TableNames = append(out.TableNames, v16)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -2748,11 +2780,11 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork24(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v14, v15 := range in.TableNames {
|
for v17, v18 := range in.TableNames {
|
||||||
if v14 > 0 {
|
if v17 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
out.String(string(v15))
|
out.String(string(v18))
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
}
|
}
|
||||||
|
@ -2885,17 +2917,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork26(in *jlexer.Lexer, ou
|
||||||
out.Cookies = (out.Cookies)[:0]
|
out.Cookies = (out.Cookies)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v16 *Cookie
|
var v19 *Cookie
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
in.Skip()
|
in.Skip()
|
||||||
v16 = nil
|
v19 = nil
|
||||||
} else {
|
} else {
|
||||||
if v16 == nil {
|
if v19 == nil {
|
||||||
v16 = new(Cookie)
|
v19 = new(Cookie)
|
||||||
}
|
}
|
||||||
(*v16).UnmarshalEasyJSON(in)
|
(*v19).UnmarshalEasyJSON(in)
|
||||||
}
|
}
|
||||||
out.Cookies = append(out.Cookies, v16)
|
out.Cookies = append(out.Cookies, v19)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -2924,14 +2956,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork26(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v17, v18 := range in.Cookies {
|
for v20, v21 := range in.Cookies {
|
||||||
if v17 > 0 {
|
if v20 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
if v18 == nil {
|
if v21 == nil {
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
(*v18).MarshalEasyJSON(out)
|
(*v21).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
|
@ -5691,70 +5723,3 @@ func (v *CachedResource) UnmarshalJSON(data []byte) error {
|
||||||
func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork56(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(in *jlexer.Lexer, out *AddBlockedURLParams) {
|
|
||||||
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 "url":
|
|
||||||
out.URL = string(in.String())
|
|
||||||
default:
|
|
||||||
in.SkipRecursive()
|
|
||||||
}
|
|
||||||
in.WantComma()
|
|
||||||
}
|
|
||||||
in.Delim('}')
|
|
||||||
if isTopLevel {
|
|
||||||
in.Consumed()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(out *jwriter.Writer, in AddBlockedURLParams) {
|
|
||||||
out.RawByte('{')
|
|
||||||
first := true
|
|
||||||
_ = first
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"url\":")
|
|
||||||
out.String(string(in.URL))
|
|
||||||
out.RawByte('}')
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalJSON supports json.Marshaler interface
|
|
||||||
func (v AddBlockedURLParams) MarshalJSON() ([]byte, error) {
|
|
||||||
w := jwriter.Writer{}
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(&w, v)
|
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
||||||
func (v AddBlockedURLParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork57(w, v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
|
||||||
func (v *AddBlockedURLParams) UnmarshalJSON(data []byte) error {
|
|
||||||
r := jlexer.Lexer{Data: data}
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(&r, v)
|
|
||||||
return r.Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
||||||
func (v *AddBlockedURLParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork57(l, v)
|
|
||||||
}
|
|
||||||
|
|
|
@ -160,46 +160,25 @@ func (p *GetResponseBodyParams) Do(ctxt context.Context, h cdp.Handler) (body []
|
||||||
return dec, nil
|
return dec, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddBlockedURLParams blocks specific URL from loading.
|
// SetBlockedURLSParams blocks specific URL from loading.
|
||||||
type AddBlockedURLParams struct {
|
type SetBlockedURLSParams struct {
|
||||||
URL string `json:"url"` // URL to block.
|
Urls []string `json:"urls"` // URLs to block.
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddBlockedURL blocks specific URL from loading.
|
// SetBlockedURLS blocks specific URL from loading.
|
||||||
//
|
//
|
||||||
// parameters:
|
// parameters:
|
||||||
// url - URL to block.
|
// urls - URLs to block.
|
||||||
func AddBlockedURL(url string) *AddBlockedURLParams {
|
func SetBlockedURLS(urls []string) *SetBlockedURLSParams {
|
||||||
return &AddBlockedURLParams{
|
return &SetBlockedURLSParams{
|
||||||
URL: url,
|
Urls: urls,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do executes Network.addBlockedURL against the provided context and
|
// Do executes Network.setBlockedURLs against the provided context and
|
||||||
// target handler.
|
// target handler.
|
||||||
func (p *AddBlockedURLParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
func (p *SetBlockedURLSParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||||
return h.Execute(ctxt, cdp.CommandNetworkAddBlockedURL, p, nil)
|
return h.Execute(ctxt, cdp.CommandNetworkSetBlockedURLS, p, nil)
|
||||||
}
|
|
||||||
|
|
||||||
// RemoveBlockedURLParams cancels blocking of a specific URL from loading.
|
|
||||||
type RemoveBlockedURLParams struct {
|
|
||||||
URL string `json:"url"` // URL to stop blocking.
|
|
||||||
}
|
|
||||||
|
|
||||||
// RemoveBlockedURL cancels blocking of a specific URL from loading.
|
|
||||||
//
|
|
||||||
// parameters:
|
|
||||||
// url - URL to stop blocking.
|
|
||||||
func RemoveBlockedURL(url string) *RemoveBlockedURLParams {
|
|
||||||
return &RemoveBlockedURLParams{
|
|
||||||
URL: url,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do executes Network.removeBlockedURL against the provided context and
|
|
||||||
// target handler.
|
|
||||||
func (p *RemoveBlockedURLParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
|
||||||
return h.Execute(ctxt, cdp.CommandNetworkRemoveBlockedURL, p, nil)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReplayXHRParams this method sends a new XMLHttpRequest which is identical
|
// ReplayXHRParams this method sends a new XMLHttpRequest which is identical
|
||||||
|
|
|
@ -4737,6 +4737,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpPage58(in *jlexer.Lexer, out *
|
||||||
(out.Format).UnmarshalEasyJSON(in)
|
(out.Format).UnmarshalEasyJSON(in)
|
||||||
case "quality":
|
case "quality":
|
||||||
out.Quality = int64(in.Int64())
|
out.Quality = int64(in.Int64())
|
||||||
|
case "fromSurface":
|
||||||
|
out.FromSurface = bool(in.Bool())
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -4767,6 +4769,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpPage58(out *jwriter.Writer, in
|
||||||
out.RawString("\"quality\":")
|
out.RawString("\"quality\":")
|
||||||
out.Int64(int64(in.Quality))
|
out.Int64(int64(in.Quality))
|
||||||
}
|
}
|
||||||
|
if in.FromSurface {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"fromSurface\":")
|
||||||
|
out.Bool(bool(in.FromSurface))
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -435,6 +435,7 @@ func (p *SetDocumentContentParams) Do(ctxt context.Context, h cdp.Handler) (err
|
||||||
type CaptureScreenshotParams struct {
|
type CaptureScreenshotParams struct {
|
||||||
Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png).
|
Format CaptureScreenshotFormat `json:"format,omitempty"` // Image compression format (defaults to png).
|
||||||
Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only).
|
Quality int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only).
|
||||||
|
FromSurface bool `json:"fromSurface,omitempty"` // Capture the screenshot from the surface, rather than the view. Defaults to false.
|
||||||
}
|
}
|
||||||
|
|
||||||
// CaptureScreenshot capture page screenshot.
|
// CaptureScreenshot capture page screenshot.
|
||||||
|
@ -456,6 +457,13 @@ func (p CaptureScreenshotParams) WithQuality(quality int64) *CaptureScreenshotPa
|
||||||
return &p
|
return &p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WithFromSurface capture the screenshot from the surface, rather than the
|
||||||
|
// view. Defaults to false.
|
||||||
|
func (p CaptureScreenshotParams) WithFromSurface(fromSurface bool) *CaptureScreenshotParams {
|
||||||
|
p.FromSurface = fromSurface
|
||||||
|
return &p
|
||||||
|
}
|
||||||
|
|
||||||
// CaptureScreenshotReturns return values.
|
// CaptureScreenshotReturns return values.
|
||||||
type CaptureScreenshotReturns struct {
|
type CaptureScreenshotReturns struct {
|
||||||
Data string `json:"data,omitempty"` // Base64-encoded image data.
|
Data string `json:"data,omitempty"` // Base64-encoded image data.
|
||||||
|
|
|
@ -1867,14 +1867,10 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpProfiler19(in *jlexer.Lexer, o
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
switch key {
|
switch key {
|
||||||
case "startLineNumber":
|
case "startOffset":
|
||||||
out.StartLineNumber = int64(in.Int64())
|
out.StartOffset = int64(in.Int64())
|
||||||
case "startColumnNumber":
|
case "endOffset":
|
||||||
out.StartColumnNumber = int64(in.Int64())
|
out.EndOffset = int64(in.Int64())
|
||||||
case "endLineNumber":
|
|
||||||
out.EndLineNumber = int64(in.Int64())
|
|
||||||
case "endColumnNumber":
|
|
||||||
out.EndColumnNumber = int64(in.Int64())
|
|
||||||
case "count":
|
case "count":
|
||||||
out.Count = int64(in.Int64())
|
out.Count = int64(in.Int64())
|
||||||
default:
|
default:
|
||||||
|
@ -1891,37 +1887,21 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpProfiler19(out *jwriter.Writer
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
if in.StartLineNumber != 0 {
|
if in.StartOffset != 0 {
|
||||||
if !first {
|
if !first {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"startLineNumber\":")
|
out.RawString("\"startOffset\":")
|
||||||
out.Int64(int64(in.StartLineNumber))
|
out.Int64(int64(in.StartOffset))
|
||||||
}
|
}
|
||||||
if in.StartColumnNumber != 0 {
|
if in.EndOffset != 0 {
|
||||||
if !first {
|
if !first {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"startColumnNumber\":")
|
out.RawString("\"endOffset\":")
|
||||||
out.Int64(int64(in.StartColumnNumber))
|
out.Int64(int64(in.EndOffset))
|
||||||
}
|
|
||||||
if in.EndLineNumber != 0 {
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"endLineNumber\":")
|
|
||||||
out.Int64(int64(in.EndLineNumber))
|
|
||||||
}
|
|
||||||
if in.EndColumnNumber != 0 {
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"endColumnNumber\":")
|
|
||||||
out.Int64(int64(in.EndColumnNumber))
|
|
||||||
}
|
}
|
||||||
if in.Count != 0 {
|
if in.Count != 0 {
|
||||||
if !first {
|
if !first {
|
||||||
|
|
|
@ -33,10 +33,8 @@ type PositionTickInfo struct {
|
||||||
|
|
||||||
// CoverageRange coverage data for a source range.
|
// CoverageRange coverage data for a source range.
|
||||||
type CoverageRange struct {
|
type CoverageRange struct {
|
||||||
StartLineNumber int64 `json:"startLineNumber,omitempty"` // JavaScript script line number (0-based) for the range start.
|
StartOffset int64 `json:"startOffset,omitempty"` // JavaScript script source offset for the range start.
|
||||||
StartColumnNumber int64 `json:"startColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range start.
|
EndOffset int64 `json:"endOffset,omitempty"` // JavaScript script source offset for the range end.
|
||||||
EndLineNumber int64 `json:"endLineNumber,omitempty"` // JavaScript script line number (0-based) for the range end.
|
|
||||||
EndColumnNumber int64 `json:"endColumnNumber,omitempty"` // JavaScript script column number (0-based) for the range end.
|
|
||||||
Count int64 `json:"count,omitempty"` // Collected execution count of the source range.
|
Count int64 `json:"count,omitempty"` // Collected execution count of the source range.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -902,6 +902,13 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"description": "Compression quality from range [0..100] (jpeg only)."
|
"description": "Compression quality from range [0..100] (jpeg only)."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "fromSurface",
|
||||||
|
"type": "boolean",
|
||||||
|
"optional": true,
|
||||||
|
"description": "Capture the screenshot from the surface, rather than the view. Defaults to false.",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"returns": [
|
"returns": [
|
||||||
|
@ -2601,25 +2608,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "addBlockedURL",
|
"name": "setBlockedURLs",
|
||||||
"description": "Blocks specific URL from loading.",
|
"description": "Blocks specific URL from loading.",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
"name": "url",
|
"name": "urls",
|
||||||
"type": "string",
|
"type": "array",
|
||||||
"description": "URL to block."
|
"items": {
|
||||||
}
|
"type": "string"
|
||||||
],
|
|
||||||
"experimental": true
|
|
||||||
},
|
},
|
||||||
{
|
"description": "URLs to block."
|
||||||
"name": "removeBlockedURL",
|
|
||||||
"description": "Cancels blocking of a specific URL from loading.",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "url",
|
|
||||||
"type": "string",
|
|
||||||
"description": "URL to stop blocking."
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"experimental": true
|
"experimental": true
|
||||||
|
@ -6055,6 +6053,12 @@
|
||||||
"name": "startColumn",
|
"name": "startColumn",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "Column offset of the stylesheet within the resource (zero based)."
|
"description": "Column offset of the stylesheet within the resource (zero based)."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "length",
|
||||||
|
"type": "number",
|
||||||
|
"description": "Size of the content (in characters).",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "CSS stylesheet metainformation."
|
"description": "CSS stylesheet metainformation."
|
||||||
|
@ -6106,9 +6110,14 @@
|
||||||
"description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
|
"description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "range",
|
"name": "startOffset",
|
||||||
"$ref": "SourceRange",
|
"type": "number",
|
||||||
"description": "Style declaration range in the enclosing stylesheet (if available)."
|
"description": "Offset of the start of the rule (including selector) from the beginning of the stylesheet."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "endOffset",
|
||||||
|
"type": "number",
|
||||||
|
"description": "Offset of the end of the rule body from the beginning of the stylesheet."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "used",
|
"name": "used",
|
||||||
|
@ -11407,6 +11416,39 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"experimental": true
|
"experimental": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "BreakLocation",
|
||||||
|
"type": "object",
|
||||||
|
"properties": [
|
||||||
|
{
|
||||||
|
"name": "scriptId",
|
||||||
|
"$ref": "Runtime.ScriptId",
|
||||||
|
"description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lineNumber",
|
||||||
|
"type": "integer",
|
||||||
|
"description": "Line number in the script (0-based)."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "columnNumber",
|
||||||
|
"type": "integer",
|
||||||
|
"optional": true,
|
||||||
|
"description": "Column number in the script (0-based)."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "type",
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"debuggerStatement",
|
||||||
|
"call",
|
||||||
|
"return"
|
||||||
|
],
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"commands": [
|
"commands": [
|
||||||
|
@ -11555,7 +11597,7 @@
|
||||||
"name": "locations",
|
"name": "locations",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "Location"
|
"$ref": "BreakLocation"
|
||||||
},
|
},
|
||||||
"description": "List of the possible breakpoint locations."
|
"description": "List of the possible breakpoint locations."
|
||||||
}
|
}
|
||||||
|
@ -11590,6 +11632,11 @@
|
||||||
"name": "pause",
|
"name": "pause",
|
||||||
"description": "Stops on the next JavaScript statement."
|
"description": "Stops on the next JavaScript statement."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "scheduleStepIntoAsync",
|
||||||
|
"description": "Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.",
|
||||||
|
"experimental": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "resume",
|
"name": "resume",
|
||||||
"description": "Resumes JavaScript execution."
|
"description": "Resumes JavaScript execution."
|
||||||
|
@ -11960,6 +12007,13 @@
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"description": "True, if this script is ES6 module.",
|
"description": "True, if this script is ES6 module.",
|
||||||
"experimental": true
|
"experimental": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "length",
|
||||||
|
"type": "integer",
|
||||||
|
"optional": true,
|
||||||
|
"description": "This script length.",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
|
"description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger."
|
||||||
|
@ -12032,6 +12086,13 @@
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"description": "True, if this script is ES6 module.",
|
"description": "True, if this script is ES6 module.",
|
||||||
"experimental": true
|
"experimental": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "length",
|
||||||
|
"type": "integer",
|
||||||
|
"optional": true,
|
||||||
|
"description": "This script length.",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Fired when virtual machine fails to parse the script."
|
"description": "Fired when virtual machine fails to parse the script."
|
||||||
|
@ -12330,24 +12391,14 @@
|
||||||
"description": "Coverage data for a source range.",
|
"description": "Coverage data for a source range.",
|
||||||
"properties": [
|
"properties": [
|
||||||
{
|
{
|
||||||
"name": "startLineNumber",
|
"name": "startOffset",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "JavaScript script line number (0-based) for the range start."
|
"description": "JavaScript script source offset for the range start."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "startColumnNumber",
|
"name": "endOffset",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "JavaScript script column number (0-based) for the range start."
|
"description": "JavaScript script source offset for the range end."
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "endLineNumber",
|
|
||||||
"type": "integer",
|
|
||||||
"description": "JavaScript script line number (0-based) for the range end."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "endColumnNumber",
|
|
||||||
"type": "integer",
|
|
||||||
"description": "JavaScript script column number (0-based) for the range end."
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "count",
|
"name": "count",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user