CookieManager
Object Hierarchy:
Description:
public class CookieManager : Object
Content:
Methods:
- public async bool add_cookie (Cookie cookie, Cancellable? cancellable = null) throws Error
- public async List<Cookie> get_all_cookies (Cancellable? cancellable = null) throws Error
Every cookie in the session profile (WebKitGTK-shaped
get_all_cookies). Persist TEXT jar when set; else WebView2 GetCookies with a null URI.
- public async List<Cookie> get_cookies (string uri, Cancellable? cancellable = null) throws Error
- public async bool replace_cookies (List<Cookie> cookies, Cancellable? cancellable = null) throws Error
Replace the session jar with cookies (clear then add). Empty list
clears all cookies under the profile.
- public void set_accept_policy (CookieAcceptPolicy policy)
- public void set_persistent_storage (string filename, CookiePersistentStorage storage)
Signals:
- public signal void changed ()
WebKitGTK-shaped — emitted after successful
add_cookie /
replace_cookies. Page Set-Cookie / host jar mutations are
not observed (WebView2 exposes no cookie-change COM event here).
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref