Ultralight C++ API 1.4.0
|
#include <Ultralight/Session.h>
Storage for a browsing session (cookies, local storage, etc.).
This class stores data for a unique browsing session (cookies, local storage, application cache, indexed db. etc.). You can create multiple sessions to isolate data between different browsing contexts.
The Renderer has a default session named "default" that is used if no session is specified when when creating a View.
Sessions can be either temporary (in-memory only) or persistent (backed to disk).
Public Member Functions | |
virtual bool | is_persistent () const =0 |
Whether or not this session is written to disk. | |
virtual String | name () const =0 |
A unique name identifying this session. | |
virtual uint64_t | id () const =0 |
A unique numeric ID identifying this session. | |
virtual String | disk_path () const =0 |
The disk path of this session (only valid for persistent sessions). | |
Public Member Functions inherited from RefCounted | |
virtual void | AddRef () const =0 |
virtual void | Release () const =0 |
virtual int | ref_count () const =0 |
Protected Member Functions | |
virtual | ~Session () |
Protected Member Functions inherited from RefCounted | |
virtual | ~RefCounted () |
|
protectedvirtual |
|
pure virtual |
The disk path of this session (only valid for persistent sessions).
|
pure virtual |
A unique numeric ID identifying this session.
|
pure virtual |
Whether or not this session is written to disk.
|
pure virtual |
A unique name identifying this session.