#[repr(C)]pub struct _cef_cookie_manager_t {
pub base: cef_base_ref_counted_t,
pub visit_all_cookies: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, visitor: *mut _cef_cookie_visitor_t) -> c_int>,
pub visit_url_cookies: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, url: *const cef_string_t, includeHttpOnly: c_int, visitor: *mut _cef_cookie_visitor_t) -> c_int>,
pub set_cookie: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, url: *const cef_string_t, cookie: *const _cef_cookie_t, callback: *mut _cef_set_cookie_callback_t) -> c_int>,
pub delete_cookies: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, url: *const cef_string_t, cookie_name: *const cef_string_t, callback: *mut _cef_delete_cookies_callback_t) -> c_int>,
pub flush_store: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, callback: *mut _cef_completion_callback_t) -> c_int>,
}Expand description
Structure used for managing cookies. The functions of this structure may be called on any thread unless otherwise indicated.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
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.
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.
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.
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: Option<unsafe extern "C" fn(self_: *mut _cef_cookie_manager_t, callback: *mut _cef_completion_callback_t) -> c_int>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.
Trait Implementations§
Source§fn clone(&self) -> _cef_cookie_manager_t
fn clone(&self) -> _cef_cookie_manager_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more