chromedp/cdp/security/events.go

33 lines
1.7 KiB
Go
Raw Normal View History

2017-01-24 15:09:23 +00:00
package security
// AUTOGENERATED. DO NOT EDIT.
import (
2017-01-26 07:28:34 +00:00
cdp "github.com/knq/chromedp/cdp"
2017-01-24 15:09:23 +00:00
)
// EventSecurityStateChanged the security state of the page changed.
type EventSecurityStateChanged struct {
2017-01-26 07:28:34 +00:00
SecurityState State `json:"securityState,omitempty"` // Security state.
SchemeIsCryptographic bool `json:"schemeIsCryptographic,omitempty"` // True if the page was loaded over cryptographic transport such as HTTPS.
Explanations []*StateExplanation `json:"explanations,omitempty"` // List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.
InsecureContentStatus *InsecureContentStatus `json:"insecureContentStatus,omitempty"` // Information about insecure content on the page.
Summary string `json:"summary,omitempty"` // Overrides user-visible description of the state.
2017-01-24 15:09:23 +00:00
}
2017-03-24 22:51:18 +00:00
// EventCertificateError there is a certificate error. If overriding
// certificate errors is enabled, then it should be handled with the
// handleCertificateError command. Note: this event does not fire if the
// certificate error has been allowed internally.
type EventCertificateError struct {
EventID int64 `json:"eventId,omitempty"` // The ID of the event.
ErrorType string `json:"errorType,omitempty"` // The type of the error.
RequestURL string `json:"requestURL,omitempty"` // The url that was requested.
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventSecuritySecurityStateChanged,
2017-03-24 22:51:18 +00:00
cdp.EventSecurityCertificateError,
2017-01-24 15:09:23 +00:00
}