public static bool CookieExists(Cookie cookie) { throw new NotImplementedException("CookieExists requires specifying origin"); var unused = JsVal.FromDouble(0); return(_cookieManager.Instance.CookieExists(cookie._cookie, ref unused, IntPtr.Zero, 0)); }
public static void Remove(string host, string name, string path, bool blocked) { var unused = JsVal.FromDouble(0); _cookieManager.Instance.Remove(new nsAUTF8String(host), new nsACString(name), new nsAUTF8String(path), blocked, ref unused, IntPtr.Zero, 4); }
public static IEnumerator <Cookie> GetCookiesFromHost(string host) { var unused = JsVal.FromDouble(0); return (new Collections.GeckoEnumerator <Cookie, nsICookie2>( _cookieManager.Instance.GetCookiesFromHost(new nsAUTF8String(host), ref unused, IntPtr.Zero, 0), x => x != null ? new Cookie(x) : null)); }
public static void Add(string host, string path, string name, string value, bool isSecure, bool isHttpOnly, bool isSession, long expiry) { var unused = JsVal.FromDouble(0); _cookieManager.Instance.Add( new nsAUTF8String(host), new nsAUTF8String(path), new nsACString(name), new nsACString(value), isSecure, isHttpOnly, isSession, expiry, ref unused, 0, IntPtr.Zero, 0); }