Exemplo n.º 1
0
 public static void Clear(cef_cookie_t* self)
 {
     cef_string_t.Clear(&self->name);
     cef_string_t.Clear(&self->value);
     cef_string_t.Clear(&self->domain);
     cef_string_t.Clear(&self->path);
 }
        /// <summary>
        /// Method that will be called once for each cookie. |count| is the
        /// 0-based index for the current cookie. |total| is the total number of
        /// cookies. Set |deleteCookie| to true to delete the cookie currently
        /// being visited. Return false to stop visiting cookies. This method may
        /// never be called if no cookies are found.
        /// </summary>
        private int visit(cef_cookie_visitor_t* self, /*const*/ cef_cookie_t* cookie, int count, int total, int* deleteCookie)
        {
            ThrowIfObjectDisposed();

            var m_cookie = CefCookie.From(cookie);
            bool m_deleteCookie;

            var handled = this.Visit(m_cookie, count, total, out m_deleteCookie);

            m_cookie.Dispose();

            *deleteCookie = m_deleteCookie ? 1 : 0;

            return handled ? 1 : 0;
        }
Exemplo n.º 3
0
 private CefCookie(cef_cookie_t* ptr)
 {
     this.ptr = ptr;
     this.owner = false;
 }
Exemplo n.º 4
0
 // TODO: cookie can be writable
 internal static CefCookie From(cef_cookie_t* ptr)
 {
     return new CefCookie(ptr);
 }