// Copyright © 2017 The CefSharp Authors. All rights reserved.
//
// 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 OnBeforeResourceLoadEventArgs : BaseRequestEventArgs
{
public OnBeforeResourceLoadEventArgs(IWebBrowser browserControl, IBrowser browser, IFrame frame, IRequest request, IRequestCallback callback)
: base(browserControl, browser)
{
Frame = frame;
Request = request;
Callback = callback;
ContinuationHandling = CefReturnValue.Continue; // default
}
public IFrame Frame { get; private set; }
public IRequest Request { get; private set; }
///
/// Callback interface used for asynchronous continuation of url requests.
///
public IRequestCallback Callback { get; private set; }
///
/// To cancel loading of the resource return
/// or to allow the resource to load normally. For async
/// return and use
/// to handle continuation.
///
public CefReturnValue ContinuationHandling { get; set; }
}
}