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

33 lines
1.0 KiB
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cef3.Interop;
/// <summary>
/// Implement this interface to provide handler implementations. The handler
/// instance will not be released until all objects related to the context have
/// been destroyed.
/// </summary>
public abstract unsafe partial class CefRequestContextHandler
{
private cef_cookie_manager_t* get_cookie_manager(cef_request_context_handler_t* self)
{
CheckSelf(self);
var result = GetCookieManager();
return result != null ? result.ToNative() : null;
}
/// <summary>
/// Called on the IO thread to retrieve the cookie manager. If this method
/// returns NULL the default cookie manager retrievable via
/// CefRequestContext::GetDefaultCookieManager() will be used.
/// </summary>
protected abstract CefCookieManager GetCookieManager();
}
}