示例#1
0
        /// <summary>
        /// Visit a subset of cookies on the UI 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>
        public unsafe virtual bool VisitUrlCookies(string url, bool includeHttpOnly, CefCookieVisitor visitor)
        {
            fixed(char *s0 = url)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = url != null ? url.Length : 0
                };

                return(SafeCall(NativeInstance->VisitUrlCookies(&cstr0, includeHttpOnly ? 1 : 0, (visitor != null) ? visitor.GetNativeInstance() : null) != 0));
            }
        }
示例#2
0
 /// <summary>
 /// Visit all cookies on the UI thread. The returned cookies are ordered by
 /// longest path, then by earliest creation date. Returns false (0) if cookies
 /// cannot be accessed.
 /// </summary>
 public unsafe virtual bool VisitAllCookies(CefCookieVisitor visitor)
 {
     return(SafeCall(NativeInstance->VisitAllCookies((visitor != null) ? visitor.GetNativeInstance() : null) != 0));
 }