template <>

class Server

Defined at line 1911 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_messaging.h

Public Methods

void LoadUrl (LoadUrlRequest & 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 Server ()

Defined at line 1914 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_messaging.h

void Stop (StopCompleter::Sync & completer)

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

void Reload (ReloadRequest & request, ReloadCompleter::Sync & completer)

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

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 ~Server ()

Defined at line 1915 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_messaging.h