/// <summary>
 /// Visit a subset of cookies. The results are filtered by the given url
 /// scheme, host, domain and path. If |includeHttpOnly| is true 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 if
 /// cookies cannot be accessed.
 /// </summary>
 public bool VisitUrlCookies(string url, bool includeHttpOnly, CefCookieVisitor visitor)
 {
     fixed (char* url_str = url)
     {
         var m_url = new cef_string_t(url_str, url != null ? url.Length : 0);
         return cef_cookie_manager_t.invoke_visit_url_cookies(this.ptr, &m_url, includeHttpOnly ? 1 : 0, visitor.GetNativePointerAndAddRef()) != 0;
     }
 }
示例#2
0
        /// <summary>
        /// Visit a subset of cookies. The results are filtered by the given url
        /// scheme, host, domain and path. If |includeHttpOnly| is true 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 if
        /// cookies cannot be accessed.
        /// </summary>
        public bool VisitUrlCookies(string url, bool includeHttpOnly, CefCookieVisitor visitor)
        {
            fixed(char *url_str = url)
            {
                var m_url = new cef_string_t(url_str, url != null ? url.Length : 0);

                return(cef_cookie_manager_t.invoke_visit_url_cookies(this.ptr, &m_url, includeHttpOnly ? 1 : 0, visitor.GetNativePointerAndAddRef()) != 0);
            }
        }
 /// <summary>
 /// Visit all cookies. The returned cookies are ordered by longest path, then
 /// by earliest creation date. Returns false if cookies cannot be accessed.
 /// </summary>
 public bool VisitAllCookies(CefCookieVisitor visitor)
 {
     return cef_cookie_manager_t.invoke_visit_all_cookies(this.ptr, visitor.GetNativePointerAndAddRef()) != 0;
 }
示例#4
0
 /// <summary>
 /// Visit all cookies. The returned cookies are ordered by longest path, then
 /// by earliest creation date. Returns false if cookies cannot be accessed.
 /// </summary>
 public bool VisitAllCookies(CefCookieVisitor visitor)
 {
     return(cef_cookie_manager_t.invoke_visit_all_cookies(this.ptr, visitor.GetNativePointerAndAddRef()) != 0);
 }