Updating to latest protocol.json
This commit is contained in:
parent
28f0ea8563
commit
7123283c3e
|
@ -55,6 +55,43 @@ func (p *GetWindowForTargetParams) Do(ctxt context.Context, h cdp.Handler) (wind
|
||||||
return res.WindowID, res.Bounds, nil
|
return res.WindowID, res.Bounds, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetVersionParams returns version information.
|
||||||
|
type GetVersionParams struct{}
|
||||||
|
|
||||||
|
// GetVersion returns version information.
|
||||||
|
func GetVersion() *GetVersionParams {
|
||||||
|
return &GetVersionParams{}
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetVersionReturns return values.
|
||||||
|
type GetVersionReturns struct {
|
||||||
|
ProtocolVersion string `json:"protocolVersion,omitempty"` // Protocol version.
|
||||||
|
Product string `json:"product,omitempty"` // Product name.
|
||||||
|
Revision string `json:"revision,omitempty"` // Product revision.
|
||||||
|
UserAgent string `json:"userAgent,omitempty"` // User-Agent.
|
||||||
|
JsVersion string `json:"jsVersion,omitempty"` // V8 version.
|
||||||
|
}
|
||||||
|
|
||||||
|
// Do executes Browser.getVersion against the provided context and
|
||||||
|
// target handler.
|
||||||
|
//
|
||||||
|
// returns:
|
||||||
|
// protocolVersion - Protocol version.
|
||||||
|
// product - Product name.
|
||||||
|
// revision - Product revision.
|
||||||
|
// userAgent - User-Agent.
|
||||||
|
// jsVersion - V8 version.
|
||||||
|
func (p *GetVersionParams) Do(ctxt context.Context, h cdp.Handler) (protocolVersion string, product string, revision string, userAgent string, jsVersion string, err error) {
|
||||||
|
// execute
|
||||||
|
var res GetVersionReturns
|
||||||
|
err = h.Execute(ctxt, cdp.CommandBrowserGetVersion, nil, &res)
|
||||||
|
if err != nil {
|
||||||
|
return "", "", "", "", "", err
|
||||||
|
}
|
||||||
|
|
||||||
|
return res.ProtocolVersion, res.Product, res.Revision, res.UserAgent, res.JsVersion, nil
|
||||||
|
}
|
||||||
|
|
||||||
// SetWindowBoundsParams set position and/or size of the browser window.
|
// SetWindowBoundsParams set position and/or size of the browser window.
|
||||||
type SetWindowBoundsParams struct {
|
type SetWindowBoundsParams struct {
|
||||||
WindowID WindowID `json:"windowId"` // Browser window id.
|
WindowID WindowID `json:"windowId"` // Browser window id.
|
||||||
|
|
|
@ -411,7 +411,175 @@ func (v *GetWindowBoundsParams) UnmarshalJSON(data []byte) error {
|
||||||
func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *GetWindowBoundsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser4(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser4(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(in *jlexer.Lexer, out *Bounds) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(in *jlexer.Lexer, out *GetVersionReturns) {
|
||||||
|
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 "protocolVersion":
|
||||||
|
out.ProtocolVersion = string(in.String())
|
||||||
|
case "product":
|
||||||
|
out.Product = string(in.String())
|
||||||
|
case "revision":
|
||||||
|
out.Revision = string(in.String())
|
||||||
|
case "userAgent":
|
||||||
|
out.UserAgent = string(in.String())
|
||||||
|
case "jsVersion":
|
||||||
|
out.JsVersion = string(in.String())
|
||||||
|
default:
|
||||||
|
in.SkipRecursive()
|
||||||
|
}
|
||||||
|
in.WantComma()
|
||||||
|
}
|
||||||
|
in.Delim('}')
|
||||||
|
if isTopLevel {
|
||||||
|
in.Consumed()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(out *jwriter.Writer, in GetVersionReturns) {
|
||||||
|
out.RawByte('{')
|
||||||
|
first := true
|
||||||
|
_ = first
|
||||||
|
if in.ProtocolVersion != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"protocolVersion\":")
|
||||||
|
out.String(string(in.ProtocolVersion))
|
||||||
|
}
|
||||||
|
if in.Product != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"product\":")
|
||||||
|
out.String(string(in.Product))
|
||||||
|
}
|
||||||
|
if in.Revision != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"revision\":")
|
||||||
|
out.String(string(in.Revision))
|
||||||
|
}
|
||||||
|
if in.UserAgent != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"userAgent\":")
|
||||||
|
out.String(string(in.UserAgent))
|
||||||
|
}
|
||||||
|
if in.JsVersion != "" {
|
||||||
|
if !first {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
first = false
|
||||||
|
out.RawString("\"jsVersion\":")
|
||||||
|
out.String(string(in.JsVersion))
|
||||||
|
}
|
||||||
|
out.RawByte('}')
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalJSON supports json.Marshaler interface
|
||||||
|
func (v GetVersionReturns) MarshalJSON() ([]byte, error) {
|
||||||
|
w := jwriter.Writer{}
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(&w, v)
|
||||||
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
|
func (v GetVersionReturns) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(w, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
|
func (v *GetVersionReturns) UnmarshalJSON(data []byte) error {
|
||||||
|
r := jlexer.Lexer{Data: data}
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(&r, v)
|
||||||
|
return r.Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
|
func (v *GetVersionReturns) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(l, v)
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser6(in *jlexer.Lexer, out *GetVersionParams) {
|
||||||
|
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 {
|
||||||
|
default:
|
||||||
|
in.SkipRecursive()
|
||||||
|
}
|
||||||
|
in.WantComma()
|
||||||
|
}
|
||||||
|
in.Delim('}')
|
||||||
|
if isTopLevel {
|
||||||
|
in.Consumed()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser6(out *jwriter.Writer, in GetVersionParams) {
|
||||||
|
out.RawByte('{')
|
||||||
|
first := true
|
||||||
|
_ = first
|
||||||
|
out.RawByte('}')
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalJSON supports json.Marshaler interface
|
||||||
|
func (v GetVersionParams) MarshalJSON() ([]byte, error) {
|
||||||
|
w := jwriter.Writer{}
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser6(&w, v)
|
||||||
|
return w.Buffer.BuildBytes(), w.Error
|
||||||
|
}
|
||||||
|
|
||||||
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||||
|
func (v GetVersionParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser6(w, v)
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
|
func (v *GetVersionParams) UnmarshalJSON(data []byte) error {
|
||||||
|
r := jlexer.Lexer{Data: data}
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser6(&r, v)
|
||||||
|
return r.Error()
|
||||||
|
}
|
||||||
|
|
||||||
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
|
func (v *GetVersionParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser6(l, v)
|
||||||
|
}
|
||||||
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser7(in *jlexer.Lexer, out *Bounds) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -450,7 +618,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(in *jlexer.Lexer, out
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(out *jwriter.Writer, in Bounds) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser7(out *jwriter.Writer, in Bounds) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -500,23 +668,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v Bounds) MarshalJSON() ([]byte, error) {
|
func (v Bounds) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser7(&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 Bounds) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v Bounds) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser5(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpBrowser7(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *Bounds) UnmarshalJSON(data []byte) error {
|
func (v *Bounds) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser7(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *Bounds) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser5(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpBrowser7(l, v)
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,6 @@ const (
|
||||||
EventSecurityCertificateError MethodType = "Security.certificateError"
|
EventSecurityCertificateError MethodType = "Security.certificateError"
|
||||||
CommandSecurityEnable MethodType = "Security.enable"
|
CommandSecurityEnable MethodType = "Security.enable"
|
||||||
CommandSecurityDisable MethodType = "Security.disable"
|
CommandSecurityDisable MethodType = "Security.disable"
|
||||||
CommandSecurityShowCertificateViewer MethodType = "Security.showCertificateViewer"
|
|
||||||
CommandSecurityHandleCertificateError MethodType = "Security.handleCertificateError"
|
CommandSecurityHandleCertificateError MethodType = "Security.handleCertificateError"
|
||||||
CommandSecuritySetOverrideCertificateErrors MethodType = "Security.setOverrideCertificateErrors"
|
CommandSecuritySetOverrideCertificateErrors MethodType = "Security.setOverrideCertificateErrors"
|
||||||
EventNetworkResourceChangedPriority MethodType = "Network.resourceChangedPriority"
|
EventNetworkResourceChangedPriority MethodType = "Network.resourceChangedPriority"
|
||||||
|
@ -393,6 +392,7 @@ const (
|
||||||
CommandTetheringBind MethodType = "Tethering.bind"
|
CommandTetheringBind MethodType = "Tethering.bind"
|
||||||
CommandTetheringUnbind MethodType = "Tethering.unbind"
|
CommandTetheringUnbind MethodType = "Tethering.unbind"
|
||||||
CommandBrowserGetWindowForTarget MethodType = "Browser.getWindowForTarget"
|
CommandBrowserGetWindowForTarget MethodType = "Browser.getWindowForTarget"
|
||||||
|
CommandBrowserGetVersion MethodType = "Browser.getVersion"
|
||||||
CommandBrowserSetWindowBounds MethodType = "Browser.setWindowBounds"
|
CommandBrowserSetWindowBounds MethodType = "Browser.setWindowBounds"
|
||||||
CommandBrowserGetWindowBounds MethodType = "Browser.getWindowBounds"
|
CommandBrowserGetWindowBounds MethodType = "Browser.getWindowBounds"
|
||||||
CommandSchemaGetDomains MethodType = "Schema.getDomains"
|
CommandSchemaGetDomains MethodType = "Schema.getDomains"
|
||||||
|
@ -668,8 +668,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = CommandSecurityEnable
|
*t = CommandSecurityEnable
|
||||||
case CommandSecurityDisable:
|
case CommandSecurityDisable:
|
||||||
*t = CommandSecurityDisable
|
*t = CommandSecurityDisable
|
||||||
case CommandSecurityShowCertificateViewer:
|
|
||||||
*t = CommandSecurityShowCertificateViewer
|
|
||||||
case CommandSecurityHandleCertificateError:
|
case CommandSecurityHandleCertificateError:
|
||||||
*t = CommandSecurityHandleCertificateError
|
*t = CommandSecurityHandleCertificateError
|
||||||
case CommandSecuritySetOverrideCertificateErrors:
|
case CommandSecuritySetOverrideCertificateErrors:
|
||||||
|
@ -1176,6 +1174,8 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = CommandTetheringUnbind
|
*t = CommandTetheringUnbind
|
||||||
case CommandBrowserGetWindowForTarget:
|
case CommandBrowserGetWindowForTarget:
|
||||||
*t = CommandBrowserGetWindowForTarget
|
*t = CommandBrowserGetWindowForTarget
|
||||||
|
case CommandBrowserGetVersion:
|
||||||
|
*t = CommandBrowserGetVersion
|
||||||
case CommandBrowserSetWindowBounds:
|
case CommandBrowserSetWindowBounds:
|
||||||
*t = CommandBrowserSetWindowBounds
|
*t = CommandBrowserSetWindowBounds
|
||||||
case CommandBrowserGetWindowBounds:
|
case CommandBrowserGetWindowBounds:
|
||||||
|
|
|
@ -315,9 +315,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.CommandSecurityDisable:
|
case cdp.CommandSecurityDisable:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
case cdp.CommandSecurityShowCertificateViewer:
|
|
||||||
return emptyVal, nil
|
|
||||||
|
|
||||||
case cdp.CommandSecurityHandleCertificateError:
|
case cdp.CommandSecurityHandleCertificateError:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
|
@ -1083,6 +1080,9 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.CommandBrowserGetWindowForTarget:
|
case cdp.CommandBrowserGetWindowForTarget:
|
||||||
v = new(browser.GetWindowForTargetReturns)
|
v = new(browser.GetWindowForTargetReturns)
|
||||||
|
|
||||||
|
case cdp.CommandBrowserGetVersion:
|
||||||
|
v = new(browser.GetVersionReturns)
|
||||||
|
|
||||||
case cdp.CommandBrowserSetWindowBounds:
|
case cdp.CommandBrowserSetWindowBounds:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,31 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(in *jlexer.Lexer, out
|
||||||
out.Summary = string(in.String())
|
out.Summary = string(in.String())
|
||||||
case "description":
|
case "description":
|
||||||
out.Description = string(in.String())
|
out.Description = string(in.String())
|
||||||
case "hasCertificate":
|
|
||||||
out.HasCertificate = bool(in.Bool())
|
|
||||||
case "mixedContentType":
|
case "mixedContentType":
|
||||||
(out.MixedContentType).UnmarshalEasyJSON(in)
|
(out.MixedContentType).UnmarshalEasyJSON(in)
|
||||||
|
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 v1 string
|
||||||
|
v1 = string(in.String())
|
||||||
|
out.Certificate = append(out.Certificate, v1)
|
||||||
|
in.WantComma()
|
||||||
|
}
|
||||||
|
in.Delim(']')
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
in.SkipRecursive()
|
in.SkipRecursive()
|
||||||
}
|
}
|
||||||
|
@ -82,14 +103,25 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer,
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"hasCertificate\":")
|
out.RawString("\"mixedContentType\":")
|
||||||
out.Bool(bool(in.HasCertificate))
|
(in.MixedContentType).MarshalEasyJSON(out)
|
||||||
if !first {
|
if !first {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
first = false
|
first = false
|
||||||
out.RawString("\"mixedContentType\":")
|
out.RawString("\"certificate\":")
|
||||||
(in.MixedContentType).MarshalEasyJSON(out)
|
if in.Certificate == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
||||||
|
out.RawString("null")
|
||||||
|
} else {
|
||||||
|
out.RawByte('[')
|
||||||
|
for v2, v3 := range in.Certificate {
|
||||||
|
if v2 > 0 {
|
||||||
|
out.RawByte(',')
|
||||||
|
}
|
||||||
|
out.String(string(v3))
|
||||||
|
}
|
||||||
|
out.RawByte(']')
|
||||||
|
}
|
||||||
out.RawByte('}')
|
out.RawByte('}')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,66 +148,7 @@ func (v *StateExplanation) UnmarshalJSON(data []byte) error {
|
||||||
func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(in *jlexer.Lexer, out *ShowCertificateViewerParams) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(in *jlexer.Lexer, out *SetOverrideCertificateErrorsParams) {
|
||||||
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 {
|
|
||||||
default:
|
|
||||||
in.SkipRecursive()
|
|
||||||
}
|
|
||||||
in.WantComma()
|
|
||||||
}
|
|
||||||
in.Delim('}')
|
|
||||||
if isTopLevel {
|
|
||||||
in.Consumed()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(out *jwriter.Writer, in ShowCertificateViewerParams) {
|
|
||||||
out.RawByte('{')
|
|
||||||
first := true
|
|
||||||
_ = first
|
|
||||||
out.RawByte('}')
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalJSON supports json.Marshaler interface
|
|
||||||
func (v ShowCertificateViewerParams) MarshalJSON() ([]byte, error) {
|
|
||||||
w := jwriter.Writer{}
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(&w, v)
|
|
||||||
return w.Buffer.BuildBytes(), w.Error
|
|
||||||
}
|
|
||||||
|
|
||||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
||||||
func (v ShowCertificateViewerParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(w, v)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
|
||||||
func (v *ShowCertificateViewerParams) UnmarshalJSON(data []byte) error {
|
|
||||||
r := jlexer.Lexer{Data: data}
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(&r, v)
|
|
||||||
return r.Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
||||||
func (v *ShowCertificateViewerParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(l, v)
|
|
||||||
}
|
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(in *jlexer.Lexer, out *SetOverrideCertificateErrorsParams) {
|
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -206,7 +179,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer, in SetOverrideCertificateErrorsParams) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(out *jwriter.Writer, in SetOverrideCertificateErrorsParams) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -222,27 +195,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v SetOverrideCertificateErrorsParams) MarshalJSON() ([]byte, error) {
|
func (v SetOverrideCertificateErrorsParams) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(&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 SetOverrideCertificateErrorsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v SetOverrideCertificateErrorsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *SetOverrideCertificateErrorsParams) UnmarshalJSON(data []byte) error {
|
func (v *SetOverrideCertificateErrorsParams) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *SetOverrideCertificateErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *SetOverrideCertificateErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, out *InsecureContentStatus) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(in *jlexer.Lexer, out *InsecureContentStatus) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -285,7 +258,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, in InsecureContentStatus) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer, in InsecureContentStatus) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -337,27 +310,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v InsecureContentStatus) MarshalJSON() ([]byte, error) {
|
func (v InsecureContentStatus) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(&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 InsecureContentStatus) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v InsecureContentStatus) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *InsecureContentStatus) UnmarshalJSON(data []byte) error {
|
func (v *InsecureContentStatus) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *InsecureContentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *InsecureContentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(in *jlexer.Lexer, out *HandleCertificateErrorParams) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, out *HandleCertificateErrorParams) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -390,7 +363,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer, in HandleCertificateErrorParams) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, in HandleCertificateErrorParams) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -412,27 +385,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v HandleCertificateErrorParams) MarshalJSON() ([]byte, error) {
|
func (v HandleCertificateErrorParams) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(&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 HandleCertificateErrorParams) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v HandleCertificateErrorParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *HandleCertificateErrorParams) UnmarshalJSON(data []byte) error {
|
func (v *HandleCertificateErrorParams) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *HandleCertificateErrorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *HandleCertificateErrorParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, out *EventSecurityStateChanged) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(in *jlexer.Lexer, out *EventSecurityStateChanged) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -471,17 +444,17 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, ou
|
||||||
out.Explanations = (out.Explanations)[:0]
|
out.Explanations = (out.Explanations)[:0]
|
||||||
}
|
}
|
||||||
for !in.IsDelim(']') {
|
for !in.IsDelim(']') {
|
||||||
var v1 *StateExplanation
|
var v4 *StateExplanation
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
in.Skip()
|
in.Skip()
|
||||||
v1 = nil
|
v4 = nil
|
||||||
} else {
|
} else {
|
||||||
if v1 == nil {
|
if v4 == nil {
|
||||||
v1 = new(StateExplanation)
|
v4 = new(StateExplanation)
|
||||||
}
|
}
|
||||||
(*v1).UnmarshalEasyJSON(in)
|
(*v4).UnmarshalEasyJSON(in)
|
||||||
}
|
}
|
||||||
out.Explanations = append(out.Explanations, v1)
|
out.Explanations = append(out.Explanations, v4)
|
||||||
in.WantComma()
|
in.WantComma()
|
||||||
}
|
}
|
||||||
in.Delim(']')
|
in.Delim(']')
|
||||||
|
@ -508,7 +481,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer, in EventSecurityStateChanged) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer, in EventSecurityStateChanged) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -533,14 +506,14 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer,
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
out.RawByte('[')
|
out.RawByte('[')
|
||||||
for v2, v3 := range in.Explanations {
|
for v5, v6 := range in.Explanations {
|
||||||
if v2 > 0 {
|
if v5 > 0 {
|
||||||
out.RawByte(',')
|
out.RawByte(',')
|
||||||
}
|
}
|
||||||
if v3 == nil {
|
if v6 == nil {
|
||||||
out.RawString("null")
|
out.RawString("null")
|
||||||
} else {
|
} else {
|
||||||
(*v3).MarshalEasyJSON(out)
|
(*v6).MarshalEasyJSON(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out.RawByte(']')
|
out.RawByte(']')
|
||||||
|
@ -569,27 +542,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error) {
|
func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(&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 EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error {
|
func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(in *jlexer.Lexer, out *EventCertificateError) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, out *EventCertificateError) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -624,7 +597,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(out *jwriter.Writer, in EventCertificateError) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer, in EventCertificateError) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -652,27 +625,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v EventCertificateError) MarshalJSON() ([]byte, error) {
|
func (v EventCertificateError) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(&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 EventCertificateError) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v EventCertificateError) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *EventCertificateError) UnmarshalJSON(data []byte) error {
|
func (v *EventCertificateError) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *EventCertificateError) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *EventCertificateError) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(in *jlexer.Lexer, out *EnableParams) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(in *jlexer.Lexer, out *EnableParams) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -701,7 +674,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(out *jwriter.Writer, in EnableParams) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(out *jwriter.Writer, in EnableParams) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -711,27 +684,27 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(&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 EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity6(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity6(l, v)
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity8(in *jlexer.Lexer, out *DisableParams) {
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(in *jlexer.Lexer, out *DisableParams) {
|
||||||
isTopLevel := in.IsStart()
|
isTopLevel := in.IsStart()
|
||||||
if in.IsNull() {
|
if in.IsNull() {
|
||||||
if isTopLevel {
|
if isTopLevel {
|
||||||
|
@ -760,7 +733,7 @@ func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity8(in *jlexer.Lexer, ou
|
||||||
in.Consumed()
|
in.Consumed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity8(out *jwriter.Writer, in DisableParams) {
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(out *jwriter.Writer, in DisableParams) {
|
||||||
out.RawByte('{')
|
out.RawByte('{')
|
||||||
first := true
|
first := true
|
||||||
_ = first
|
_ = first
|
||||||
|
@ -770,23 +743,23 @@ func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity8(out *jwriter.Writer,
|
||||||
// MarshalJSON supports json.Marshaler interface
|
// MarshalJSON supports json.Marshaler interface
|
||||||
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
||||||
w := jwriter.Writer{}
|
w := jwriter.Writer{}
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity8(&w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(&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 DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
||||||
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity8(w, v)
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity7(w, v)
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalJSON supports json.Unmarshaler interface
|
// UnmarshalJSON supports json.Unmarshaler interface
|
||||||
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
||||||
r := jlexer.Lexer{Data: data}
|
r := jlexer.Lexer{Data: data}
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity8(&r, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(&r, v)
|
||||||
return r.Error()
|
return r.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||||
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||||
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity8(l, v)
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity7(l, v)
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,21 +42,6 @@ func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||||
return h.Execute(ctxt, cdp.CommandSecurityDisable, nil, nil)
|
return h.Execute(ctxt, cdp.CommandSecurityDisable, nil, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ShowCertificateViewerParams displays native dialog with the certificate
|
|
||||||
// details.
|
|
||||||
type ShowCertificateViewerParams struct{}
|
|
||||||
|
|
||||||
// ShowCertificateViewer displays native dialog with the certificate details.
|
|
||||||
func ShowCertificateViewer() *ShowCertificateViewerParams {
|
|
||||||
return &ShowCertificateViewerParams{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do executes Security.showCertificateViewer against the provided context and
|
|
||||||
// target handler.
|
|
||||||
func (p *ShowCertificateViewerParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
|
||||||
return h.Execute(ctxt, cdp.CommandSecurityShowCertificateViewer, nil, nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
// HandleCertificateErrorParams handles a certificate error that fired a
|
// HandleCertificateErrorParams handles a certificate error that fired a
|
||||||
// certificateError event.
|
// certificateError event.
|
||||||
type HandleCertificateErrorParams struct {
|
type HandleCertificateErrorParams struct {
|
||||||
|
|
|
@ -124,8 +124,8 @@ type StateExplanation struct {
|
||||||
SecurityState State `json:"securityState"` // Security state representing the severity of the factor being explained.
|
SecurityState State `json:"securityState"` // Security state representing the severity of the factor being explained.
|
||||||
Summary string `json:"summary"` // Short phrase describing the type of factor.
|
Summary string `json:"summary"` // Short phrase describing the type of factor.
|
||||||
Description string `json:"description"` // Full text explanation of the factor.
|
Description string `json:"description"` // Full text explanation of the factor.
|
||||||
HasCertificate bool `json:"hasCertificate"` // True if the page has a certificate.
|
|
||||||
MixedContentType MixedContentType `json:"mixedContentType"` // The type of mixed content described by the explanation.
|
MixedContentType MixedContentType `json:"mixedContentType"` // The type of mixed content described by the explanation.
|
||||||
|
Certificate []string `json:"certificate"` // Page certificate.
|
||||||
}
|
}
|
||||||
|
|
||||||
// InsecureContentStatus information about insecure content on the page.
|
// InsecureContentStatus information about insecure content on the page.
|
||||||
|
|
|
@ -2293,15 +2293,18 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Full text explanation of the factor."
|
"description": "Full text explanation of the factor."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "hasCertificate",
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "True if the page has a certificate."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "mixedContentType",
|
"name": "mixedContentType",
|
||||||
"$ref": "MixedContentType",
|
"$ref": "MixedContentType",
|
||||||
"description": "The type of mixed content described by the explanation."
|
"description": "The type of mixed content described by the explanation."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "certificate",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "Page certificate."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "An explanation of an factor contributing to the security state."
|
"description": "An explanation of an factor contributing to the security state."
|
||||||
|
@ -2367,10 +2370,6 @@
|
||||||
"name": "disable",
|
"name": "disable",
|
||||||
"description": "Disables tracking security state changes."
|
"description": "Disables tracking security state changes."
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "showCertificateViewer",
|
|
||||||
"description": "Displays native dialog with the certificate details."
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "handleCertificateError",
|
"name": "handleCertificateError",
|
||||||
"description": "Handles a certificate error that fired a certificateError event.",
|
"description": "Handles a certificate error that fired a certificateError event.",
|
||||||
|
@ -11258,6 +11257,37 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "getVersion",
|
||||||
|
"description": "Returns version information.",
|
||||||
|
"returns": [
|
||||||
|
{
|
||||||
|
"name": "protocolVersion",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Protocol version."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "product",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Product name."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "revision",
|
||||||
|
"type": "string",
|
||||||
|
"description": "Product revision."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "userAgent",
|
||||||
|
"type": "string",
|
||||||
|
"description": "User-Agent."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "jsVersion",
|
||||||
|
"type": "string",
|
||||||
|
"description": "V8 version."
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "setWindowBounds",
|
"name": "setWindowBounds",
|
||||||
"description": "Set position and/or size of the browser window.",
|
"description": "Set position and/or size of the browser window.",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user