Updating to latest protocol.json
This commit is contained in:
parent
ccdd204500
commit
57826bddb1
|
@ -3853,8 +3853,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, ou
|
||||||
switch key {
|
switch key {
|
||||||
case "requestId":
|
case "requestId":
|
||||||
out.RequestID = RequestID(in.String())
|
out.RequestID = RequestID(in.String())
|
||||||
case "frameId":
|
|
||||||
(out.FrameID).UnmarshalEasyJSON(in)
|
|
||||||
case "loaderId":
|
case "loaderId":
|
||||||
out.LoaderID = cdp.LoaderID(in.String())
|
out.LoaderID = cdp.LoaderID(in.String())
|
||||||
case "timestamp":
|
case "timestamp":
|
||||||
|
@ -3879,6 +3877,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork33(in *jlexer.Lexer, ou
|
||||||
}
|
}
|
||||||
(*out.Response).UnmarshalEasyJSON(in)
|
(*out.Response).UnmarshalEasyJSON(in)
|
||||||
}
|
}
|
||||||
|
case "frameId":
|
||||||
|
(out.FrameID).UnmarshalEasyJSON(in)
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -3903,12 +3903,6 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer,
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"frameId\":")
|
|
||||||
out.String(string(in.FrameID))
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"loaderId\":")
|
out.RawString("\"loaderId\":")
|
||||||
out.String(string(in.LoaderID))
|
out.String(string(in.LoaderID))
|
||||||
if !first {
|
if !first {
|
||||||
|
@ -3937,6 +3931,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork33(out *jwriter.Writer,
|
||||||
} else {
|
} else {
|
||||||
(*in.Response).MarshalEasyJSON(out)
|
(*in.Response).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
|
if in.FrameID != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"frameId\":")
|
||||||
|
out.String(string(in.FrameID))
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4079,8 +4081,6 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, ou
|
||||||
switch key {
|
switch key {
|
||||||
case "requestId":
|
case "requestId":
|
||||||
out.RequestID = RequestID(in.String())
|
out.RequestID = RequestID(in.String())
|
||||||
case "frameId":
|
|
||||||
(out.FrameID).UnmarshalEasyJSON(in)
|
|
||||||
case "loaderId":
|
case "loaderId":
|
||||||
out.LoaderID = cdp.LoaderID(in.String())
|
out.LoaderID = cdp.LoaderID(in.String())
|
||||||
case "documentURL":
|
case "documentURL":
|
||||||
|
@ -4137,6 +4137,8 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpNetwork35(in *jlexer.Lexer, ou
|
||||||
}
|
}
|
||||||
case "type":
|
case "type":
|
||||||
(out.Type).UnmarshalEasyJSON(in)
|
(out.Type).UnmarshalEasyJSON(in)
|
||||||
|
case "frameId":
|
||||||
|
(out.FrameID).UnmarshalEasyJSON(in)
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -4161,12 +4163,6 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer,
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"frameId\":")
|
|
||||||
out.String(string(in.FrameID))
|
|
||||||
if !first {
|
|
||||||
out.RawByte(',')
|
|
||||||
}
|
|
||||||
first = false
|
|
||||||
out.RawString("\"loaderId\":")
|
out.RawString("\"loaderId\":")
|
||||||
out.String(string(in.LoaderID))
|
out.String(string(in.LoaderID))
|
||||||
if !first {
|
if !first {
|
||||||
|
@ -4235,6 +4231,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpNetwork35(out *jwriter.Writer,
|
||||||
out.RawString("\"type\":")
|
out.RawString("\"type\":")
|
||||||
(in.Type).MarshalEasyJSON(out)
|
(in.Type).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
|
if in.FrameID != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"frameId\":")
|
||||||
|
out.String(string(in.FrameID))
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,7 @@ type EventResourceChangedPriority struct {
|
||||||
// EventRequestWillBeSent fired when page is about to send HTTP request.
|
// EventRequestWillBeSent fired when page is about to send HTTP request.
|
||||||
type EventRequestWillBeSent struct {
|
type EventRequestWillBeSent struct {
|
||||||
RequestID RequestID `json:"requestId"` // Request identifier.
|
RequestID RequestID `json:"requestId"` // Request identifier.
|
||||||
FrameID cdp.FrameID `json:"frameId"` // Frame identifier.
|
LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched form worker.
|
||||||
LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier.
|
|
||||||
DocumentURL string `json:"documentURL"` // URL of the document this request is loaded for.
|
DocumentURL string `json:"documentURL"` // URL of the document this request is loaded for.
|
||||||
Request *Request `json:"request"` // Request data.
|
Request *Request `json:"request"` // Request data.
|
||||||
Timestamp *cdp.Timestamp `json:"timestamp"` // Timestamp.
|
Timestamp *cdp.Timestamp `json:"timestamp"` // Timestamp.
|
||||||
|
@ -27,6 +26,7 @@ type EventRequestWillBeSent struct {
|
||||||
Initiator *Initiator `json:"initiator"` // Request initiator.
|
Initiator *Initiator `json:"initiator"` // Request initiator.
|
||||||
RedirectResponse *Response `json:"redirectResponse,omitempty"` // Redirect response data.
|
RedirectResponse *Response `json:"redirectResponse,omitempty"` // Redirect response data.
|
||||||
Type page.ResourceType `json:"type,omitempty"` // Type of this resource.
|
Type page.ResourceType `json:"type,omitempty"` // Type of this resource.
|
||||||
|
FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame identifier.
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventRequestServedFromCache fired if request ended up loading from cache.
|
// EventRequestServedFromCache fired if request ended up loading from cache.
|
||||||
|
@ -37,11 +37,11 @@ type EventRequestServedFromCache struct {
|
||||||
// EventResponseReceived fired when HTTP response is available.
|
// EventResponseReceived fired when HTTP response is available.
|
||||||
type EventResponseReceived struct {
|
type EventResponseReceived struct {
|
||||||
RequestID RequestID `json:"requestId"` // Request identifier.
|
RequestID RequestID `json:"requestId"` // Request identifier.
|
||||||
FrameID cdp.FrameID `json:"frameId"` // Frame identifier.
|
LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched form worker.
|
||||||
LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier.
|
|
||||||
Timestamp *cdp.Timestamp `json:"timestamp"` // Timestamp.
|
Timestamp *cdp.Timestamp `json:"timestamp"` // Timestamp.
|
||||||
Type page.ResourceType `json:"type"` // Resource type.
|
Type page.ResourceType `json:"type"` // Resource type.
|
||||||
Response *Response `json:"response"` // Response data.
|
Response *Response `json:"response"` // Response data.
|
||||||
|
FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame identifier.
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventDataReceived fired when data chunk was received over the network.
|
// EventDataReceived fired when data chunk was received over the network.
|
||||||
|
|
|
@ -3544,16 +3544,10 @@
|
||||||
"$ref": "RequestId",
|
"$ref": "RequestId",
|
||||||
"description": "Request identifier."
|
"description": "Request identifier."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "frameId",
|
|
||||||
"$ref": "Page.FrameId",
|
|
||||||
"description": "Frame identifier.",
|
|
||||||
"experimental": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "loaderId",
|
"name": "loaderId",
|
||||||
"$ref": "LoaderId",
|
"$ref": "LoaderId",
|
||||||
"description": "Loader identifier."
|
"description": "Loader identifier. Empty string if the request is fetched form worker."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "documentURL",
|
"name": "documentURL",
|
||||||
|
@ -3593,6 +3587,13 @@
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"experimental": true,
|
"experimental": true,
|
||||||
"description": "Type of this resource."
|
"description": "Type of this resource."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "frameId",
|
||||||
|
"optional": true,
|
||||||
|
"$ref": "Page.FrameId",
|
||||||
|
"description": "Frame identifier.",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -3616,16 +3617,10 @@
|
||||||
"$ref": "RequestId",
|
"$ref": "RequestId",
|
||||||
"description": "Request identifier."
|
"description": "Request identifier."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "frameId",
|
|
||||||
"$ref": "Page.FrameId",
|
|
||||||
"description": "Frame identifier.",
|
|
||||||
"experimental": true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "loaderId",
|
"name": "loaderId",
|
||||||
"$ref": "LoaderId",
|
"$ref": "LoaderId",
|
||||||
"description": "Loader identifier."
|
"description": "Loader identifier. Empty string if the request is fetched form worker."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "timestamp",
|
"name": "timestamp",
|
||||||
|
@ -3641,6 +3636,13 @@
|
||||||
"name": "response",
|
"name": "response",
|
||||||
"$ref": "Response",
|
"$ref": "Response",
|
||||||
"description": "Response data."
|
"description": "Response data."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "frameId",
|
||||||
|
"optional": true,
|
||||||
|
"$ref": "Page.FrameId",
|
||||||
|
"description": "Frame identifier.",
|
||||||
|
"experimental": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user