template <>

class WireServer

Defined at line 4364 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::NavigationController>|

and |::fidl::ServerEnd

<

::fuchsia_web::NavigationController>|).

Public Methods

void LoadUrl (::fuchsia_web::wire::NavigationControllerLoadUrlRequest * request, LoadUrlCompleter::Sync & completer)

Tells the [`Frame`] to navigate to a `url`.

- `url`: The address to navigate to.

- `params`: Additional parameters that affect how the resource will be loaded (e.g.

cookies, HTTP headers, etc.)

If an error occurred, the [`NavigationControllerError`] will be set to one of these values:

- `INVALID_URL`: The `url` parameter is invalid.

- `INVALID_HEADER`: At least one of the headers in [`LoadUrlParams.headers`] is invalid.

void GoBack (GoBackCompleter::Sync & completer)

Tells the [`Frame`] to navigate to the previous page in its history, if any.

void GoForward (GoForwardCompleter::Sync & completer)

Tells the [`Frame`] to navigate to the next page in its history, if any.

void Stop (StopCompleter::Sync & completer)

Tells the [`Frame`] to stop the current navigation if a navigation is ongoing.

void Reload (::fuchsia_web::wire::NavigationControllerReloadRequest * request, ReloadCompleter::Sync & completer)

Tells the [`Frame`] to reload the current page.

void WireServer ()

Defined at line 4367 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 4368 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_messaging.h