123456789101112131415161718192021222324252627 |
- namespace Xilium.CefGlue
- {
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Runtime.InteropServices;
- using Xilium.CefGlue.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);
- }
- }
|