mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add the ability to persist session cookies (issue #881).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1098 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -106,11 +106,23 @@ typedef struct _cef_cookie_manager_t {
|
||||
|
||||
///
|
||||
// Sets the directory path that will be used for storing cookie data. If
|
||||
// |path| is NULL data will be stored in memory only. Returns false (0) if
|
||||
// cookies cannot be accessed.
|
||||
// |path| is NULL 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
|
||||
// (1). Session cookies are generally intended to be transient and most Web
|
||||
// browsers do not persist them. Returns false (0) if cookies cannot be
|
||||
// accessed.
|
||||
///
|
||||
int (CEF_CALLBACK *set_storage_path)(struct _cef_cookie_manager_t* self,
|
||||
const cef_string_t* path);
|
||||
const cef_string_t* path, int persist_session_cookies);
|
||||
|
||||
///
|
||||
// Flush the backing store (if any) to disk and execute the specified
|
||||
// |handler| on the IO thread when done. Returns false (0) if cookies cannot
|
||||
// be accessed.
|
||||
///
|
||||
int (CEF_CALLBACK *flush_store)(struct _cef_cookie_manager_t* self,
|
||||
struct _cef_completion_handler_t* handler);
|
||||
} cef_cookie_manager_t;
|
||||
|
||||
|
||||
@@ -122,10 +134,14 @@ CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_get_global_manager();
|
||||
|
||||
///
|
||||
// Creates a new cookie manager. If |path| is NULL data will be stored in memory
|
||||
// only. Returns NULL if creation fails.
|
||||
// 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 (1). Session cookies are generally intended
|
||||
// to be transient and most Web browsers do not persist them. Returns NULL if
|
||||
// creation fails.
|
||||
///
|
||||
CEF_EXPORT cef_cookie_manager_t* cef_cookie_manager_create_manager(
|
||||
const cef_string_t* path);
|
||||
const cef_string_t* path, int persist_session_cookies);
|
||||
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user