UserMessage

Message that can be sent between the UI process and web process extensions.

A WebKitUserMessage is a message that can be used for the communication between the UI process and web process extensions. A WebKitUserMessage always has a name, and it can also include parameters and UNIX file descriptors. Messages can be sent from a #WebKitWebContext to all web process extensions, from a web process extension to its corresponding #WebKitWebContext, and from a #WebKitWebView to its corresponding #WebKitWebPage (and vice versa). One to one messages can be replied to directly with webkitwebprocessextension.user_message.UserMessage.sendReply.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string name, glib.variant.VariantG parameters)

Create a new #WebKitUserMessage with name.

Members

Functions

getFdList
gio.unix_fdlist.UnixFDList getFdList()

Get the message list of file descritpor.

getName
string getName()

Get the message name.

getParameters
glib.variant.VariantG getParameters()

Get the message parameters.

self
UserMessage self()

Returns this, for use in with statements.

sendReply
void sendReply(webkitwebprocessextension.user_message.UserMessage reply)

Send a reply to an user message.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()
newWithFdList
webkitwebprocessextension.user_message.UserMessage newWithFdList(string name, glib.variant.VariantG parameters, gio.unix_fdlist.UnixFDList fdList)

Create a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.

Inherited Members

From InitiallyUnowned

getGType
GType getGType()
gType
GType gType [@property getter]
self
InitiallyUnowned self()

Returns this, for use in with statements.