cef_cookie_manager_t

Structure used for managing cookies. The functions of this structure may be called on any thread unless otherwise indicated.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

delete_cookies
int function(cef_cookie_manager_t* self, const(cef_string_t)* url, const(cef_string_t)* cookie_name, cef_delete_cookies_callback_t* callback) nothrow delete_cookies;

Delete all cookies that match the specified parameters. If both |url| and |cookie_name| values are specified all host and domain cookies matching both will be deleted. If only |url| is specified all host cookies (but not domain cookies) irrespective of path will be deleted. If |url| is NULL all cookies for all hosts and domains will be deleted. If |callback| is non- NULL it will be executed asnychronously on the UI thread after the cookies have been deleted. Returns false (0) if a non-NULL invalid URL is specified or if cookies cannot be accessed. Cookies can alternately be deleted using the Visit*Cookies() functions.

flush_store
int function(cef_cookie_manager_t* self, cef_completion_callback_t* callback) nothrow flush_store;

Flush the backing store (if any) to disk. If |callback| is non-NULL it will be executed asnychronously on the UI thread after the flush is complete. Returns false (0) if cookies cannot be accessed.

set_cookie
int function(cef_cookie_manager_t* self, const(cef_string_t)* url, const(cef_cookie_t)* cookie, cef_set_cookie_callback_t* callback) nothrow set_cookie;

Sets a cookie given a valid URL and explicit user-provided cookie attributes. This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie value attribute) and fail without setting the cookie if such characters are found. If |callback| is non-NULL it will be executed asnychronously on the UI thread after the cookie has been set. Returns false (0) if an invalid URL is specified or if cookies cannot be accessed.

visit_url_cookies
int function(cef_cookie_manager_t* self, const(cef_string_t)* url, int includeHttpOnly, cef_cookie_visitor_t* visitor) nothrow visit_url_cookies;

cookies are ordered by longest path, then by earliest creation date. Returns false (0) if cookies cannot be accessed.

Meta