2018-09-10 02:41:13 +02:00
|
|
|
// Copyright © 2017 The CefSharp Authors. All rights reserved.
|
2017-02-10 00:23:37 +01:00
|
|
|
//
|
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
namespace CefSharp.Example.RequestEventHandler
|
|
|
|
|
{
|
|
|
|
|
public class OnCertificateErrorEventArgs : BaseRequestEventArgs
|
|
|
|
|
{
|
2019-07-20 16:26:25 +10:00
|
|
|
public OnCertificateErrorEventArgs(IWebBrowser chromiumWebBrowser, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback)
|
|
|
|
|
: base(chromiumWebBrowser, browser)
|
2017-02-10 00:23:37 +01:00
|
|
|
{
|
|
|
|
|
ErrorCode = errorCode;
|
|
|
|
|
RequestUrl = requestUrl;
|
|
|
|
|
SSLInfo = sslInfo;
|
|
|
|
|
Callback = callback;
|
|
|
|
|
|
|
|
|
|
ContinueAsync = false; // default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public CefErrorCode ErrorCode { get; private set; }
|
|
|
|
|
public string RequestUrl { get; private set; }
|
|
|
|
|
public ISslInfo SSLInfo { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Callback interface used for asynchronous continuation of url requests.
|
|
|
|
|
/// If empty the error cannot be recovered from and the request will be canceled automatically.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IRequestCallback Callback { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set to false to cancel the request immediately. Set to true and use <see cref="T:CefSharp.IRequestCallback" /> to
|
|
|
|
|
/// execute in an async fashion.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool ContinueAsync { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|