mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-03 23:12:42 +00:00
bef5dd37c4
* Applied formatting * Fixed file encoding + Updated copyright year * Updated License * Fixed more file encoding * Copyright notice now shows the year the file was created
36 lines
1.5 KiB
C#
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; }
|
|
}
|
|
}
|