CefSetCookieCallback.cs 819 B

123456789101112131415161718192021222324252627
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Interface to implement to be notified of asynchronous completion via
  10. /// CefCookieManager::SetCookie().
  11. /// </summary>
  12. public abstract unsafe partial class CefSetCookieCallback
  13. {
  14. private void on_complete(cef_set_cookie_callback_t* self, int success)
  15. {
  16. CheckSelf(self);
  17. OnComplete(success != 0);
  18. }
  19. /// <summary>
  20. /// Method that will be called upon completion. |success| will be true if the
  21. /// cookie was set successfully.
  22. /// </summary>
  23. protected abstract void OnComplete(bool success);
  24. }
  25. }