protected virtual void Dispose(bool disposing) { if (_self != null) { cef_cookie_visitor_t.Free(_self); _self = null; } }
protected CefCookieVisitor() { _self = cef_cookie_visitor_t.Alloc(); _ds0 = new cef_cookie_visitor_t.add_ref_delegate(add_ref); _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0); _ds1 = new cef_cookie_visitor_t.release_delegate(release); _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1); _ds2 = new cef_cookie_visitor_t.get_refct_delegate(get_refct); _self->_base._get_refct = Marshal.GetFunctionPointerForDelegate(_ds2); _ds3 = new cef_cookie_visitor_t.visit_delegate(visit); _self->_visit = Marshal.GetFunctionPointerForDelegate(_ds3); }
internal static void Free(cef_cookie_visitor_t *ptr) { Marshal.FreeHGlobal((IntPtr)ptr); }
public unsafe extern int VisitUrlCookies([Immutable] cef_string_t *url, int includeHttpOnly, cef_cookie_visitor_t *visitor);
public static int visit_url_cookies(cef_cookie_manager_t *self, cef_string_t *url, int includeHttpOnly, cef_cookie_visitor_t *visitor) { visit_url_cookies_delegate d; var p = self->_visit_url_cookies; if (p == _p5) { d = _d5; } else { d = (visit_url_cookies_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(visit_url_cookies_delegate)); if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; } } return(d(self, url, includeHttpOnly, visitor)); }
public unsafe extern int VisitAllCookies(cef_cookie_visitor_t *visitor);
private int has_at_least_one_ref(cef_cookie_visitor_t *self) { lock (SyncRoot) { return(_refct != 0 ? 1 : 0); } }
private int has_one_ref(cef_cookie_visitor_t *self) { lock (SyncRoot) { return(_refct == 1 ? 1 : 0); } }
public CefCookieVisitor(cef_cookie_visitor_t *instance) : base((cef_base_ref_counted_t *)instance) { }
public CefCookieVisitor() { cef_cookie_visitor_t *self = this.NativeInstance; self->visit = (void *)Marshal.GetFunctionPointerForDelegate(fnVisit); }