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

28 lines
796 B
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
/// <summary>
/// Interface to implement to be notified of asynchronous completion via
/// CefCookieManager::SetCookie().
/// </summary>
public abstract unsafe partial class CefSetCookieCallback
{
private void on_complete(cef_set_cookie_callback_t* self, int success)
{
CheckSelf(self);
OnComplete(success != 0);
}
/// <summary>
/// Method that will be called upon completion. |success| will be true if the
/// cookie was set successfully.
/// </summary>
protected abstract void OnComplete(bool success);
}
}