template <>

class WireServer

Defined at line 922 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_web::Context>|

and |::fidl::ServerEnd

<

::fuchsia_web::Context>|).

Public Methods

void CreateFrame (::fuchsia_web::wire::ContextCreateFrameRequest * request, CreateFrameCompleter::Sync & completer)

Creates a new [`Frame`] under this [`Context`]. Destruction of a [`Context`] triggers the

destruction of all of its associated [`Frame`]. [`Frame`] can be transferred to another

component but cannot be shared across multiple components.

- `frame`: An interface request that will be bound to the created [`Frame`].

void CreateFrameWithParams (::fuchsia_web::wire::ContextCreateFrameWithParamsRequest * request, CreateFrameWithParamsCompleter::Sync & completer)

Similar to [`Context.CreateFrame`], with extra parameters.

- `params`: The configuration used to create the [`Frame`].

This method will fail with `ZX_ERR_INVALID_ARGS` if the table is not clonable.

- `frame`: An interface request that will be bound to the created [`Frame`].

void GetCookieManager (::fuchsia_web::wire::ContextGetCookieManagerRequest * request, GetCookieManagerCompleter::Sync & completer)

Used to observe cookies for sites hosted under this Context.

void GetRemoteDebuggingPort (GetRemoteDebuggingPortCompleter::Sync & completer)

Waits until debugging is available on one or more Frames, and returns the DevTools port

number. Multiple calls may be queued to received the port number.

If an error occurred, the [`ContextError`] will be set to this value:

- `REMOTE_DEBUGGING_PORT_NOT_OPENED`: `remote_debugging_port` was not set in

[`CreateContextParams`] or the remote debugging service failed to start.

void WireServer ()

Defined at line 925 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 926 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_messaging.h