Files
lserp_cs_5.0/插件库/Cef3.24/Enums/CefContextSafetyImplementation.cs
2026-07-10 15:25:05 +08:00

28 lines
1010 B
C#

namespace Cef3
{
/// <summary>
/// CEF offers two context safety implementations with different performance characteristics.
/// </summary>
public enum CefContextSafetyImplementation : int
{
/// <summary>
/// The default implementation (value of 0) uses a map of hash values and should provide
/// better performance in situations with a small number contexts.
/// </summary>
SafeDefault = 0,
/// <summary>
/// The alternate implementation (value of 1) uses a hidden value attached to each context
/// and should provide better performance in situations with a large number of contexts.
/// </summary>
SafeAlternate = 1,
/// <summary>
/// If you need better performance in the creation of V8 references and you
/// plan to manually track context lifespan you can disable context safety by
/// specifying a value of -1.
/// </summary>
Disabled = -1,
}
}