Пример #1
0
        public static cef_string_userfree *get_first_party_for_cookies(cef_request_t *self)
        {
            get_first_party_for_cookies_delegate d;
            var p = self->_get_first_party_for_cookies;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_first_party_for_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_first_party_for_cookies_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
Пример #2
0
 public static cef_string_userfree* get_first_party_for_cookies(cef_request_t* self)
 {
     get_first_party_for_cookies_delegate d;
     var p = self->_get_first_party_for_cookies;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_first_party_for_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_first_party_for_cookies_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self);
 }