[This is preliminary documentation and is subject to change.]
The CefCookieManager type exposes the following members.Methods
Name | Description | |
---|---|---|
Create |
Creates a new cookie manager. If |path| is empty data will be stored in
memory only. Otherwise, data will be stored at the specified |path|. To
persist session cookies (cookies without an expiry date or validity
interval) set |persist_session_cookies| to true. Session cookies are
generally intended to be transient and most Web browsers do not persist
them. Returns NULL if creation fails.
| |
DeleteCookies |
Delete all cookies that match the specified parameters. If both |url| and
values |cookie_name| 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 empty all
cookies for all hosts and domains will be deleted. Returns false if a non-
empty invalid URL is specified or if cookies cannot be accessed. This
method must be called on the IO thread.
| |
Dispose | ||
Equals | (Inherited from Object.) | |
Finalize | (Overrides Object Finalize .) | |
FlushStore |
Flush the backing store (if any) to disk and execute the specified
|callback| on the IO thread when done. Returns false if cookies cannot be
accessed.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
SetCookie |
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 will return false without setting
the cookie if such characters are found. This method must be called on the
IO thread.
| |
SetStoragePath |
Sets the directory path that will be used for storing cookie data. If
|path| is empty data will be stored in memory only. Otherwise, data will be
stored at the specified |path|. To persist session cookies (cookies without
an expiry date or validity interval) set |persist_session_cookies| to true.
Session cookies are generally intended to be transient and most Web browsers
do not persist them. Returns false if cookies cannot be accessed.
| |
SetSupportedSchemes |
Set the schemes supported by this manager. By default only "http" and
"https" schemes are supported. Must be called before any cookies are
accessed.
| |
ToString | (Inherited from Object.) | |
VisitAllCookies |
Visit all cookies. The returned cookies are ordered by longest path, then
by earliest creation date. Returns false if cookies cannot be accessed.
| |
VisitUrlCookies |
Visit a subset of cookies. The results are filtered by the given url
scheme, host, domain and path. If |includeHttpOnly| is true 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 if
cookies cannot be accessed.
|
See Also