Files
lserp_cs_5.0/插件库/CommonLib/Cef3.24/Classes.Proxies/CefRequestCallback.cs
T
2026-07-10 15:25:05 +08:00

32 lines
849 B
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
/// <summary>
/// Callback interface used for asynchronous continuation of url requests.
/// </summary>
public sealed unsafe partial class CefRequestCallback
{
/// <summary>
/// Continue the url request. If |allow| is true the request will be continued.
/// Otherwise, the request will be canceled.
/// </summary>
public void Continue(bool allow)
{
cef_request_callback_t.cont(_self, allow ? 1 : 0);
}
/// <summary>
/// Cancel the url request.
/// </summary>
public void Cancel()
{
cef_request_callback_t.cancel(_self);
}
}
}