class CreateContextParams

Defined at line 672 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

Parameters specifying the configuration for a new [`Context`].

Public Methods

void CreateContextParams ()

Defined at line 674 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

void CreateContextParams (const CreateContextParams & other)

Defined at line 675 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

void CreateContextParams (CreateContextParams && other)

Defined at line 677 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_web::wire::CreateContextParams> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_web::wire::CreateContextParams> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_web::wire::CreateContextParams>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

::fidl::ClientEnd< ::fuchsia_io::Directory> & service_directory ()

Service directory to be used by the context.

The following services must be present in the service directory:

- [`fuchsia.buildinfo/Provider`]

- [`fuchsia.device/NameProvider`]

- [`fuchsia.fonts/Provider`]

- [`fuchsia.hwinfo.Product`]

- [`fuchsia.intl/PropertyProvider`]

- [`fuchsia.kernel/VmexResource`] (unless [`ContextFeatureFlags.DISABLE_DYNAMIC_CODE_GENERATION`] is set)

- [`fuchsia.logger/LogSink`]

- [`fuchsia.memorypressure/Provider`]

- [`fuchsia.process/Launcher`]

- [`fuchsia.sysmem/Allocator`]

The following services are recommended to be present in order to allow CPU scheduling

profiles to be applied to threads to tune their performance, especially for media rendering.

- [`fuchsia.media.ProfileProvider`] (requirement will be removed in 2025)

- [`fuchsia.scheduler.RoleManager`]

The following services must be present in order to render web content in a Scenic view

using [`Frame.CreateView`], [`Frame.CreateViewWithViewRef`] or [`Frame.CreateView2`]]:

- [`fuchsia.accessibility.semantics/SemanticsManager`]

- [`fuchsia.ui.composition/Allocator`]

- [`fuchsia.ui.composition/Flatland`]

- [`fuchsia.ui.scenic/Scenic`]

The following service must be present in order to collect diagnostic tracing data.

- [`fuchsia.tracing.perfetto.ProducerConnector`]

bool has_service_directory ()
::fidl::ClientEnd< ::fuchsia_io::Directory> & data_directory ()

Handle to the directory that will contain the [`Context`]'s persistent data. If it is left

unset, then the created [`Context`] will be stateless, with all of its data discarded upon

[`Context`] destruction.

If set, `data_directory` must not be shared with any other [`Context`].

bool has_data_directory ()
::fidl::StringView & user_agent_product ()

Optional string describing the embedding product to append to the User-Agent string.

See the specification for the

[HTTP User-Agent header](https://tools.ietf.org/html/rfc7231#section-5.5.3).

Requires that `user_agent_version` is also specified.

bool has_user_agent_product ()
::fidl::StringView & user_agent_version ()

Optional version for the embedding product to append to the User-Agent string.

Requires that `user_agent_product` is also specified.

bool has_user_agent_version ()
CreateContextParams & operator= (const CreateContextParams & other)

Defined at line 676 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

CreateContextParams & operator= (CreateContextParams && other)

Defined at line 678 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

uint16_t & remote_debugging_port ()

Enables Frames to be created with remote debugging enabled using the DevTools protocol. If

`port` is 0, then an ephemeral port will be used, which can be queried via the

[`Context.GetRemoteDebuggingPort`] API.

Because remote debugging uses TCP, it is not valid to set a remote

debugging port without having also set [`ContextFeatureFlags.NETWORK`]

for the context.

bool has_remote_debugging_port ()
::fidl::VectorView< ::fuchsia_web::wire::ContentDirectoryProvider> & content_directories ()

List of providers whose contents will be served by `fuchsia-dir://` URLs.

bool has_content_directories ()
::fuchsia_web::wire::ContextFeatureFlags & features ()

Optional features that should be enabled for this context. Some features may also require

additional services in `service_directory`.

bool has_features ()
::fidl::StringView & playready_key_system ()

Enables PlayReady CDM for the Context using the specified string as a key system

string. The string should be a reverse domain name, as required by

[EME API](https://www.w3.org/TR/encrypted-media/#key-system).

- Requires [`fuchsia.media.drm/PlayReady`] service.

- Requires that a `cdm_data_directory` be specified in [`CreateContextParams`].

bool has_playready_key_system ()
::fidl::VectorView< ::fidl::StringView> & unsafely_treat_insecure_origins_as_secure ()

Treat given insecure origins as secure origins. For the definition of secure contexts, see

[Secure Contexts](https://w3c.github.io/webappsec-secure-contexts/) and

[origin trustworthiness](https://www.w3.org/TR/powerful-features/#is-origin-trustworthy).

Example value: `{"http://a.com", "http://b.com"}`.

bool has_unsafely_treat_insecure_origins_as_secure ()
::fidl::VectorView< ::fidl::VectorView<uint8_t>> & cors_exempt_headers ()

Specifies a set of header names for which [Cross-Origin Resource Sharing

(CORS)](https://www.w3.org/TR/cors/) checks should not be enforced.

bool has_cors_exempt_headers ()
::fidl::ClientEnd< ::fuchsia_io::Directory> & cdm_data_directory ()

Specifies the storage to use to persistent content licensing related data (e.g.

provisioning data, persistent session data). By default these data will be placed under the

`data_directory`, if specified.

If neither `data_directory` nor `cdm_data_directory` are specified, then content licensing

features requiring persistent storage (e.g. persistent licensing sessions) will not be

available to the [`Context`].

Note that not all content licensing systems support persistent sessions, regardless of

whether persistent storage is provided.

bool has_cdm_data_directory ()
uint64_t & cdm_data_quota_bytes ()

Specifies a target maximum size for `cdm_data_directory` contents, in bytes. If the amount

of persisted CDM data exceeds this threshold, then the [`Context`] will attempt to purge

some data to meet the specified quota.

bool has_cdm_data_quota_bytes ()
uint64_t & data_quota_bytes ()

Specifies a target maximum size for `data_directory` contents, in bytes.

The [`Context`] will attempt to limit browsing state (e.g. cookies, LocalStorage) to

not exceed the specified size.

bool has_data_quota_bytes ()
void ~CreateContextParams ()

Defined at line 680 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder