It derives from <GObject>.
Defines how to handle cookies in a
<WebKitWebContext>.
The WebKitCookieManager defines how to set up and handle cookies. You
can get it from a
<WebKitWebsiteDataManager> with
webkit_website_data_manager_get_cookie_manager(), and use it to
set where to store cookies with cookie-manager:set-persistent-storage, or to
set the acceptance policy, with cookie-manager:get-accept-policy.
Asynchronously add a <SoupCookie> to the
underlying storage.
When the operation is finished, callback will be called. You can
then call cookie-manager:add-cookie-finish? to get the result
of the operation.
Passed: a <WebKitCookieManager>.
Passed: a <SoupCookie>.
the <SoupCookie> to be added
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:add-cookie.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a boolean.
#t if the cookie was added or #f in case of error.
Asynchronously delete a <SoupCookie> from the
current session.
When the operation is finished, callback will be called. You can
then call cookie-manager:delete-cookie-finish? to get the
result of the operation.
Passed: a <WebKitCookieManager>.
Passed: a <SoupCookie>.
the <SoupCookie> to be deleted
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:delete-cookie.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a boolean.
#t if the cookie was deleted or #f in case of error.
Asynchronously get the cookie acceptance policy of self.
Note that when policy was set to
no-third-party and ITP is enabled, this
will return always. See also
webkit_website_data_manager_set_itp_enabled().
When the operation is finished, callback will be called. You can
then call cookie-manager:get-accept-policy-finish to
get the result of the operation.
Passed: a <WebKitCookieManager>.
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:get-accept-policy.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a <WebKitCookieAcceptPolicy>.
the cookie acceptance policy of self as a
<WebKitCookieAcceptPolicy>.
Asynchronously get a list of <SoupCookie> from
self.
When the operation is finished, callback will be called. You can
then call cookie-manager:get-all-cookies-finish to get
the result of the operation.
Passed: a <WebKitCookieManager>.
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
(closure user_data): a
GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:get-all-cookies.
The return value is a GList of
<SoupCookie> instances which should be
released with g_list_free_full() and cookie:free.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a list, each a <SoupCookie>.
A GList of <SoupCookie> instances.
Asynchronously get a list of <SoupCookie> from
self.
Asynchronously get a list of <SoupCookie> from
self associated with uri, which must be either an HTTP or an
HTTPS URL.
When the operation is finished, callback will be called. You can
then call cookie-manager:get-cookies-finish to get the
result of the operation.
Passed: a <WebKitCookieManager>.
Passed: a string.
the URI associated to the cookies to be retrieved
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
a GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:get-cookies.
The return value is a GList of
<SoupCookie> instances which should be
released with g_list_free_full() and cookie:free.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a list, each a <SoupCookie>.
A GList of <SoupCookie> instances.
Asynchronously replace all cookies in self with the given list of cookies.
When the operation is finished, callback will be called. You can
then call cookie-manager:replace-cookies-finish? to get
the result of the operation.
Passed: a <WebKitCookieManager>.
Passed: a list, each a <SoupCookie>.
a GList of <SoupCookie> to be added
Passed, or left out: a <GCancellable>, or
#f.
a <GCancellable> or #f to ignore
Passed, or left out: a procedure, or #f.
(closure user_data): a
GAsyncReadyCallback to call when
the request is satisfied
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
the data to pass to callback function
Finish an asynchronous operation started with cookie-manager:replace-cookies.
Passed: a <WebKitCookieManager>.
Passed: a <GAsyncResult>.
Returned: a boolean.
#t if the cookies were added or #f in case of error.
Set the cookie acceptance policy of self as policy.
Note that ITP has its own way to handle third-party cookies, so when
it’s enabled, and policy is set to
no-third-party,
always will be used instead. Once
disabled, the policy will be set back to
no-third-party. See also
webkit_website_data_manager_set_itp_enabled().
Passed: a <WebKitCookieManager>.
Passed: a <WebKitCookieAcceptPolicy>,
or one of its symbols.
Set non-session cookies.
Set the filename where non-session cookies are stored persistently using storage as the format to read/write the cookies. Cookies are initially read from filename to create an initial set of cookies. Then, non-session cookies will be written to filename when the WebKitCookieManager::changed signal is emitted. By default, self doesn’t store the cookies persistently, so you need to call this method to keep cookies saved across sessions.
This method should never be called on a
<WebKitCookieManager> associated to an
ephemeral <WebKitWebsiteDataManager>.
Passed: a <WebKitCookieManager>.
Passed: a string.
the filename to read to/write from
Passed: a
<WebKitCookiePersistentStorage>,
or one of its symbols.
Connect a handler with (connect object cookie-manager:changed
handler). It is called as (handler self).
This signal is emitted when cookies are added, removed or modified.
Passed: a <WebKitCookieManager>.