WebKit.WebViewSessionState

Fields

None

Methods

class

new (data)

ref ()

serialize ()

unref ()

Details

class WebKit.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 WebKit.WebViewSessionState, or None if data doesn’t contain a valid serialized WebKit.WebViewSessionState.

Return type:

WebKit.WebViewSessionState

Creates a new WebKit.WebViewSessionState from serialized data.

New in version 2.12.

ref()
Returns:

The passed in WebKit.WebViewSessionState

Return type:

WebKit.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 WebKit.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 WebKit.WebViewSessionState is released. This function is MT-safe and may be called from any thread.

New in version 2.12.