Files
cefsharp/CefSharp.Example/RequestEventHandler/EventArgs/OnBeforeResourceLoadEventArgs.cs
T
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00

36 lines
1.5 KiB
C#

// 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; }
/// <summary>
/// Callback interface used for asynchronous continuation of url requests.
/// </summary>
public IRequestCallback Callback { get; private set; }
/// <summary>
/// To cancel loading of the resource return <see cref="F:CefSharp.CefReturnValue.Cancel" />
/// or <see cref="F:CefSharp.CefReturnValue.Continue" /> to allow the resource to load normally. For async
/// return <see cref="F:CefSharp.CefReturnValue.ContinueAsync" /> and use
/// <see cref="OnBeforeResourceLoadEventArgs.Callback" /> to handle continuation.
/// </summary>
public CefReturnValue ContinuationHandling { get; set; }
}
}