From 45ac05fa88b446306d6b56cf70a409b798fc151d Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sun, 29 Jan 2017 08:47:54 +0700 Subject: [PATCH] Updating to latest chrome protocol.json --- cdp/network/types.go | 9 ++++++--- cmd/chromedp-gen/protocol.json | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cdp/network/types.go b/cdp/network/types.go index c436bc5..24fa630 100644 --- a/cdp/network/types.go +++ b/cdp/network/types.go @@ -482,9 +482,10 @@ func (t InitiatorType) String() string { // InitiatorType values. const ( - InitiatorTypeParser InitiatorType = "parser" - InitiatorTypeScript InitiatorType = "script" - InitiatorTypeOther InitiatorType = "other" + InitiatorTypeParser InitiatorType = "parser" + InitiatorTypeScript InitiatorType = "script" + InitiatorTypePreload InitiatorType = "preload" + InitiatorTypeOther InitiatorType = "other" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -504,6 +505,8 @@ func (t *InitiatorType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = InitiatorTypeParser case InitiatorTypeScript: *t = InitiatorTypeScript + case InitiatorTypePreload: + *t = InitiatorTypePreload case InitiatorTypeOther: *t = InitiatorTypeOther diff --git a/cmd/chromedp-gen/protocol.json b/cmd/chromedp-gen/protocol.json index 009ed6c..b201788 100644 --- a/cmd/chromedp-gen/protocol.json +++ b/cmd/chromedp-gen/protocol.json @@ -2405,6 +2405,7 @@ "enum": [ "parser", "script", + "preload", "other" ], "description": "Type of this initiator."