/// <summary> /// Visit a subset of cookies on the IO thread. The results are filtered by the /// given url scheme, host, domain and path. If |includeHttpOnly| is true (1) /// HTTP-only cookies will also be included in the results. The returned /// cookies are ordered by longest path, then by earliest creation date. /// Returns false (0) if cookies cannot be accessed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_cookie_capi.h">cef/include/capi/cef_cookie_capi.h</see>. /// </remarks> public bool VisitUrlCookies(string url, bool includeHttpOnly, CfxCookieVisitor visitor) { var url_pinned = new PinnedString(url); var __retval = CfxApi.CookieManager.cfx_cookie_manager_visit_url_cookies(NativePtr, url_pinned.Obj.PinnedPtr, url_pinned.Length, includeHttpOnly ? 1 : 0, CfxCookieVisitor.Unwrap(visitor)); url_pinned.Obj.Free(); return(0 != __retval); }
/// <summary> /// Visit a subset of cookies on the IO thread. The results are filtered by the /// given url scheme, host, domain and path. If |includeHttpOnly| is true (1) /// HTTP-only cookies will also be included in the results. The returned /// cookies are ordered by longest path, then by earliest creation date. /// Returns false (0) if cookies cannot be accessed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_cookie_capi.h">cef/include/capi/cef_cookie_capi.h</see>. /// </remarks> public bool VisitUrlCookies(string url, bool includeHttpOnly, CfxCookieVisitor visitor) { var url_pinned = new PinnedString(url); var __retval = CfxApi.cfx_cookie_manager_visit_url_cookies(NativePtr, url_pinned.Obj.PinnedPtr, url_pinned.Length, includeHttpOnly ? 1 : 0, CfxCookieVisitor.Unwrap(visitor)); url_pinned.Obj.Free(); return 0 != __retval; }
/// <summary> /// Visit all cookies on the IO thread. The returned cookies are ordered by /// longest path, then by earliest creation date. Returns false (0) if cookies /// cannot be accessed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_cookie_capi.h">cef/include/capi/cef_cookie_capi.h</see>. /// </remarks> public bool VisitAllCookies(CfxCookieVisitor visitor) { return 0 != CfxApi.cfx_cookie_manager_visit_all_cookies(NativePtr, CfxCookieVisitor.Unwrap(visitor)); }
/// <summary> /// Visit all cookies on the IO thread. The returned cookies are ordered by /// longest path, then by earliest creation date. Returns false (0) if cookies /// cannot be accessed. /// </summary> /// <remarks> /// See also the original CEF documentation in /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_cookie_capi.h">cef/include/capi/cef_cookie_capi.h</see>. /// </remarks> public bool VisitAllCookies(CfxCookieVisitor visitor) { return(0 != CfxApi.CookieManager.cfx_cookie_manager_visit_all_cookies(NativePtr, CfxCookieVisitor.Unwrap(visitor))); }