WebKit2.WebViewSessionState

Fields

None

Methods

class

new (data)

ref ()

serialize ()

unref ()

Details

class WebKit2.WebViewSessionState

Handles serialization of a web view’s browsing state.

New in version 2.12.

classmethod new(data)
Parameters:

data (GLib.Bytes) – a GLib.Bytes

Returns:

a new WebKit2.WebViewSessionState, or None if data doesn’t contain a valid serialized WebKit2.WebViewSessionState.

Return type:

WebKit2.WebViewSessionState

Creates a new WebKit2.WebViewSessionState from serialized data.

New in version 2.12.

ref()
Returns:

The passed in WebKit2.WebViewSessionState

Return type:

WebKit2.WebViewSessionState

Atomically increments the reference count of self by one.

This function is MT-safe and may be called from any thread.

New in version 2.12.

serialize()
Returns:

a GLib.Bytes containing the self serialized.

Return type:

GLib.Bytes

Serializes a WebKit2.WebViewSessionState.

New in version 2.12.

unref()

Atomically decrements the reference count of self by one.

If the reference count drops to 0, all memory allocated by the WebKit2.WebViewSessionState is released. This function is MT-safe and may be called from any thread.

New in version 2.12.