2017-05-06 01:20:24 +00:00
|
|
|
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
package security
|
|
|
|
|
|
|
|
import (
|
|
|
|
json "encoding/json"
|
|
|
|
easyjson "github.com/mailru/easyjson"
|
|
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
|
|
)
|
|
|
|
|
|
|
|
// suppress unused package warning
|
|
|
|
var (
|
|
|
|
_ *json.RawMessage
|
|
|
|
_ *jlexer.Lexer
|
|
|
|
_ *jwriter.Writer
|
|
|
|
_ easyjson.Marshaler
|
|
|
|
)
|
|
|
|
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(in *jlexer.Lexer, out *StateExplanation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 {
|
2017-02-18 03:58:29 +00:00
|
|
|
case "securityState":
|
|
|
|
(out.SecurityState).UnmarshalEasyJSON(in)
|
2017-12-18 00:23:14 +00:00
|
|
|
case "title":
|
|
|
|
out.Title = string(in.String())
|
2017-02-18 03:58:29 +00:00
|
|
|
case "summary":
|
|
|
|
out.Summary = string(in.String())
|
|
|
|
case "description":
|
|
|
|
out.Description = string(in.String())
|
2017-07-09 01:40:29 +00:00
|
|
|
case "mixedContentType":
|
|
|
|
(out.MixedContentType).UnmarshalEasyJSON(in)
|
2017-08-14 00:59:43 +00:00
|
|
|
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(']')
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-02-18 03:58:29 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(out *jwriter.Writer, in StateExplanation) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"securityState\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.SecurityState).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-12-18 00:23:14 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"title\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Title))
|
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"summary\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Summary))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"description\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.String(string(in.Description))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"mixedContentType\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.MixedContentType).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"certificate\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
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))
|
2017-08-14 00:59:43 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-08-14 00:59:43 +00:00
|
|
|
}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StateExplanation) MarshalJSON() ([]byte, error) {
|
2017-01-24 15:09:23 +00:00
|
|
|
w := jwriter.Writer{}
|
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(&w, v)
|
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v StateExplanation) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity(w, v)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StateExplanation) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(&r, v)
|
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-18 03:58:29 +00:00
|
|
|
func (v *StateExplanation) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-01-24 15:09:23 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity(l, v)
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(in *jlexer.Lexer, out *SetIgnoreCertificateErrorsParams) {
|
2017-03-24 22:51:18 +00:00
|
|
|
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 {
|
2017-12-22 03:07:54 +00:00
|
|
|
case "ignore":
|
|
|
|
out.Ignore = bool(in.Bool())
|
2017-03-24 22:51:18 +00:00
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(out *jwriter.Writer, in SetIgnoreCertificateErrorsParams) {
|
2017-03-24 22:51:18 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
2017-12-22 03:07:54 +00:00
|
|
|
const prefix string = ",\"ignore\":"
|
2017-11-22 05:01:27 +00:00
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
out.Bool(bool(in.Ignore))
|
2017-03-24 22:51:18 +00:00
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
2017-12-22 03:07:54 +00:00
|
|
|
func (v SetIgnoreCertificateErrorsParams) MarshalJSON() ([]byte, error) {
|
2017-03-24 22:51:18 +00:00
|
|
|
w := jwriter.Writer{}
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(&w, v)
|
2017-03-24 22:51:18 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-12-22 03:07:54 +00:00
|
|
|
func (v SetIgnoreCertificateErrorsParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity1(w, v)
|
2017-03-24 22:51:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-12-22 03:07:54 +00:00
|
|
|
func (v *SetIgnoreCertificateErrorsParams) UnmarshalJSON(data []byte) error {
|
2017-03-24 22:51:18 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(&r, v)
|
2017-03-24 22:51:18 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-12-22 03:07:54 +00:00
|
|
|
func (v *SetIgnoreCertificateErrorsParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity1(l, v)
|
2017-03-24 22:51:18 +00:00
|
|
|
}
|
2017-08-14 00:59:43 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(in *jlexer.Lexer, out *InsecureContentStatus) {
|
2017-01-24 15:09:23 +00:00
|
|
|
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 "ranMixedContent":
|
|
|
|
out.RanMixedContent = bool(in.Bool())
|
|
|
|
case "displayedMixedContent":
|
|
|
|
out.DisplayedMixedContent = bool(in.Bool())
|
2017-04-04 08:44:57 +00:00
|
|
|
case "containedMixedForm":
|
|
|
|
out.ContainedMixedForm = bool(in.Bool())
|
2017-01-24 15:09:23 +00:00
|
|
|
case "ranContentWithCertErrors":
|
|
|
|
out.RanContentWithCertErrors = bool(in.Bool())
|
|
|
|
case "displayedContentWithCertErrors":
|
|
|
|
out.DisplayedContentWithCertErrors = bool(in.Bool())
|
|
|
|
case "ranInsecureContentStyle":
|
|
|
|
(out.RanInsecureContentStyle).UnmarshalEasyJSON(in)
|
|
|
|
case "displayedInsecureContentStyle":
|
|
|
|
(out.DisplayedInsecureContentStyle).UnmarshalEasyJSON(in)
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-08-14 00:59:43 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(out *jwriter.Writer, in InsecureContentStatus) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"ranMixedContent\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.RanMixedContent))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"displayedMixedContent\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.DisplayedMixedContent))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"containedMixedForm\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.ContainedMixedForm))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"ranContentWithCertErrors\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.RanContentWithCertErrors))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"displayedContentWithCertErrors\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.DisplayedContentWithCertErrors))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"ranInsecureContentStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.RanInsecureContentStyle).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"displayedInsecureContentStyle\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.DisplayedInsecureContentStyle).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v InsecureContentStatus) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v InsecureContentStatus) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity2(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *InsecureContentStatus) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *InsecureContentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-08-14 00:59:43 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity2(l, v)
|
2017-02-14 08:41:23 +00:00
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(in *jlexer.Lexer, out *EventSecurityStateChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
isTopLevel := in.IsStart()
|
|
|
|
if in.IsNull() {
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
in.Skip()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
in.Delim('{')
|
|
|
|
for !in.IsDelim('}') {
|
|
|
|
key := in.UnsafeString()
|
|
|
|
in.WantColon()
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
in.WantComma()
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
switch key {
|
|
|
|
case "securityState":
|
|
|
|
(out.SecurityState).UnmarshalEasyJSON(in)
|
|
|
|
case "schemeIsCryptographic":
|
|
|
|
out.SchemeIsCryptographic = bool(in.Bool())
|
|
|
|
case "explanations":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.Explanations = nil
|
|
|
|
} else {
|
|
|
|
in.Delim('[')
|
2017-02-18 03:58:29 +00:00
|
|
|
if out.Explanations == nil {
|
|
|
|
if !in.IsDelim(']') {
|
|
|
|
out.Explanations = make([]*StateExplanation, 0, 8)
|
|
|
|
} else {
|
|
|
|
out.Explanations = []*StateExplanation{}
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.Explanations = (out.Explanations)[:0]
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
for !in.IsDelim(']') {
|
2017-08-14 00:59:43 +00:00
|
|
|
var v4 *StateExplanation
|
2017-01-24 15:09:23 +00:00
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
2017-08-14 00:59:43 +00:00
|
|
|
v4 = nil
|
2017-01-24 15:09:23 +00:00
|
|
|
} else {
|
2017-08-14 00:59:43 +00:00
|
|
|
if v4 == nil {
|
|
|
|
v4 = new(StateExplanation)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-14 00:59:43 +00:00
|
|
|
(*v4).UnmarshalEasyJSON(in)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-08-14 00:59:43 +00:00
|
|
|
out.Explanations = append(out.Explanations, v4)
|
2017-01-24 15:09:23 +00:00
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim(']')
|
|
|
|
}
|
|
|
|
case "insecureContentStatus":
|
|
|
|
if in.IsNull() {
|
|
|
|
in.Skip()
|
|
|
|
out.InsecureContentStatus = nil
|
|
|
|
} else {
|
|
|
|
if out.InsecureContentStatus == nil {
|
|
|
|
out.InsecureContentStatus = new(InsecureContentStatus)
|
|
|
|
}
|
|
|
|
(*out.InsecureContentStatus).UnmarshalEasyJSON(in)
|
|
|
|
}
|
|
|
|
case "summary":
|
|
|
|
out.Summary = string(in.String())
|
|
|
|
default:
|
|
|
|
in.SkipRecursive()
|
|
|
|
}
|
|
|
|
in.WantComma()
|
|
|
|
}
|
|
|
|
in.Delim('}')
|
|
|
|
if isTopLevel {
|
|
|
|
in.Consumed()
|
|
|
|
}
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(out *jwriter.Writer, in EventSecurityStateChanged) {
|
2017-01-24 15:09:23 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"securityState\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
(in.SecurityState).MarshalEasyJSON(out)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"schemeIsCryptographic\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
out.Bool(bool(in.SchemeIsCryptographic))
|
|
|
|
}
|
|
|
|
{
|
|
|
|
const prefix string = ",\"explanations\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.Explanations == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
out.RawByte('[')
|
|
|
|
for v5, v6 := range in.Explanations {
|
|
|
|
if v5 > 0 {
|
|
|
|
out.RawByte(',')
|
|
|
|
}
|
|
|
|
if v6 == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*v6).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
out.RawByte(']')
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
2017-07-02 11:44:34 +00:00
|
|
|
}
|
2017-11-22 05:01:27 +00:00
|
|
|
{
|
|
|
|
const prefix string = ",\"insecureContentStatus\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
|
|
|
}
|
|
|
|
if in.InsecureContentStatus == nil {
|
|
|
|
out.RawString("null")
|
|
|
|
} else {
|
|
|
|
(*in.InsecureContentStatus).MarshalEasyJSON(out)
|
|
|
|
}
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
if in.Summary != "" {
|
2017-11-22 05:01:27 +00:00
|
|
|
const prefix string = ",\"summary\":"
|
|
|
|
if first {
|
|
|
|
first = false
|
|
|
|
out.RawString(prefix[1:])
|
|
|
|
} else {
|
|
|
|
out.RawString(prefix)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
out.String(string(in.Summary))
|
|
|
|
}
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EventSecurityStateChanged) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(&w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v EventSecurityStateChanged) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity3(w, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventSecurityStateChanged) UnmarshalJSON(data []byte) error {
|
2017-01-24 15:09:23 +00:00
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(&r, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
2017-02-14 08:41:23 +00:00
|
|
|
func (v *EventSecurityStateChanged) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity3(l, v)
|
2017-03-24 22:51:18 +00:00
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(in *jlexer.Lexer, out *EnableParams) {
|
2017-03-24 22:51:18 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(out *jwriter.Writer, in EnableParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v EnableParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity4(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *EnableParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity4(l, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(in *jlexer.Lexer, out *DisableParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
2017-12-22 03:07:54 +00:00
|
|
|
func easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(out *jwriter.Writer, in DisableParams) {
|
2017-02-18 03:58:29 +00:00
|
|
|
out.RawByte('{')
|
|
|
|
first := true
|
|
|
|
_ = first
|
|
|
|
out.RawByte('}')
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
|
|
func (v DisableParams) MarshalJSON() ([]byte, error) {
|
|
|
|
w := jwriter.Writer{}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(&w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
|
|
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bEncodeGithubComKnqChromedpCdpSecurity5(w, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
|
|
func (v *DisableParams) UnmarshalJSON(data []byte) error {
|
|
|
|
r := jlexer.Lexer{Data: data}
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(&r, v)
|
2017-02-18 03:58:29 +00:00
|
|
|
return r.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
|
|
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
2017-12-22 03:07:54 +00:00
|
|
|
easyjsonC5a4559bDecodeGithubComKnqChromedpCdpSecurity5(l, v)
|
2017-01-24 15:09:23 +00:00
|
|
|
}
|