public static int delete_cookies(cef_cookie_manager_t *self, cef_string_t *url, cef_string_t *cookie_name, cef_delete_cookies_callback_t *callback)
        {
            delete_cookies_delegate d;
            var p = self->_delete_cookies;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (delete_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(delete_cookies_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self, url, cookie_name, callback));
        }
Exemplo n.º 2
0
 public static int delete_cookies(cef_cookie_manager_t* self, cef_string_t* url, cef_string_t* cookie_name)
 {
     delete_cookies_delegate d;
     var p = self->_delete_cookies;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (delete_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(delete_cookies_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self, url, cookie_name);
 }