28 lines
796 B
C#
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);
|
|
}
|
|
}
|