CefDeleteCookiesCallback.cs 840 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::DeleteCookies().
  11. /// </summary>
  12. public abstract unsafe partial class CefDeleteCookiesCallback
  13. {
  14. private void on_complete(cef_delete_cookies_callback_t* self, int num_deleted)
  15. {
  16. CheckSelf(self);
  17. OnComplete(num_deleted);
  18. }
  19. /// <summary>
  20. /// Method that will be called upon completion. |num_deleted| will be the
  21. /// number of cookies that were deleted.
  22. /// </summary>
  23. protected abstract void OnComplete(int numDeleted);
  24. }
  25. }